Skip to content
This repository
Browse code

splash

  • Loading branch information...
commit 284d885a0c545cd2b522800e2f0cfec7001c4022 1 parent 2427d25
Jan Krutisch authored March 25, 2012
1  app/assets/stylesheets/application.css.sass
@@ -28,6 +28,7 @@ $standard-font: "C64 User Mono", "Menlo", "Courier New", monospaced
28 28
 @import "partials/buttons"
29 29
 @import "buttons"
30 30
 @import "partials/tracker"
  31
+@import "partials/marketing"
31 32
 
32 33
 #trackerpane
33 34
   +trackerpane-width
27  app/assets/stylesheets/partials/_marketing.css.sass
... ...
@@ -0,0 +1,27 @@
  1
+.marketing
  2
+  font-family: sans-serif
  3
+  width: 900px
  4
+  margin: 1em auto 2em auto
  5
+
  6
+  h1
  7
+    font-size: 3em
  8
+    font-weight: 50
  9
+    margin-bottom: 1em
  10
+
  11
+  h2
  12
+    font-size: 1.5em
  13
+    border-bottom: 1px solid black
  14
+    margin-bottom: 1em
  15
+
  16
+  p
  17
+    margin-bottom: 1em
  18
+
  19
+    &.spaced
  20
+      margin-bottom: 2em
  21
+
  22
+  strong
  23
+    font-weight: bold
  24
+
  25
+  em
  26
+    font-style: italic
  27
+
5  app/controllers/homepage_controller.rb
... ...
@@ -1,5 +1,8 @@
1 1
 class HomepageController < ApplicationController
2 2
 
3  
-  def index; end
  3
+  def index
  4
+    @public_mods = Mod.limit(20).all
  5
+
  6
+  end
4 7
 
5 8
 end
174  app/views/homepage/index.html.haml
... ...
@@ -1,131 +1,45 @@
1  
-#trackerpane
2  
-  #position Pos
3  
-  #insert I
4  
-  #delete D
5  
-  #position_counter 0000
6  
-  .up= up
7  
-  .down= down
8  
-  #play Play
9  
-  #stop Stop
10  
-  #playlist Plist
11  
-  #channel-one 1
  1
+%section.marketing
  2
+  %h1 Cloudtracker 2.0
  3
+
  4
+  %p
  5
+    At one point in time, the fine folks at 
  6
+    %a(href="http://mindmatters.de/") mindmatters
  7
+    built a social media monitoring tool called "Cloudtracker"
  8
+  %p.spaced
  9
+    Unfortunately, that didn't really work out, 
  10
+    %em so we pivoted.
  11
+
  12
+  %p
  13
+    Cloudtracker 2.0 is an experiment in web audio technologies, as well
  14
+    as a celebration of an almost forgotten genre of music software:
  15
+    %strong The Tracker
  16
+  %p
  17
+    Karsten Obarski published his first version of "The Ultimate Soundtracker" almost exactly 25 years ago.
  18
+  %p
  19
+    Five years later, Protracker saw the light of the world, an open source, freely available music editor
  20
+    that quickly became popular in the AMIGA scene.
  21
+  %p
  22
+    Now, 20 years later, we're able to show you a running (albeit incomplete) version of Protracker, running in your browser!
  23
+
  24
+  %h2 Compatibility notes
  25
+
  26
+  %p
  27
+    Cloudtracker needs a new-ish version of Chrome or Firefox, since it uses Audio APIs and other HTML5 technologies only
  28
+    available in these two browsers. That will hopefully change over time.
  29
+
  30
+  %h2 Go!
  31
+
  32
+  %p
  33
+    For several reasons, we cannot offer uploading your own modules so far, but this will change soon. Please take a look at these fine modules, though:
  34
+  %p
  35
+    %em
  36
+      (You can actually edit AND save these mods. Use carefully. This is, so far, only a proof of concept.)
  37
+
  38
+  %ul.modlist
  39
+    - @public_mods.each do |mod|
  40
+      - begin
  41
+        %li
  42
+          = link_to mod.protracker_module.name.snapshot, mod
  43
+          (#{link_to 'download', mod.mod_file_url})
  44
+      - rescue Errno::ENOENT
12 45
 
13  
-  #pattern_length Pattern Length
14  
-  #pattern_in_pos.foo 0000
15  
-  .up= up
16  
-  .down= down
17  
-  #pattern Pattern
18  
-  #clear Clear
19  
-  #preset-editor PSET-ED
20  
-  #channel-two 2
21  
-
22  
-  #num_patterns 0000
23  
-  .up= up
24  
-  .down= down
25  
-  #edit Edit
26  
-  #edit-op Edit Op.
27  
-  #setup Setup
28  
-  #channel-three 3
29  
-
30  
-  #sample_data
31  
-    %ol
32  
-      %li Finetune
33  
-      %li Sample
34  
-      %li Volume
35  
-      %li Length
36  
-      %li Repeat
37  
-      %li Replen
38  
-  #sample_finetune.foo 0000
39  
-  .up= up
40  
-  .down= down
41  
-  #record Record
42  
-  #disk-op Disk Op.
43  
-  #sampler Sampler
44  
-  #channel-four 4
45  
-
46  
-  #sample_number.foo 0000
47  
-  .up= up
48  
-  .down= down
49  
-  #quadrascope Quadrascope
50  
-
51  
-  #finetune-foo-container 
52  
-    #sample_volume.foo 0000
53  
-    .up= up
54  
-    .down= down
55  
-
56  
-    #sample_length.foo 0000
57  
-    .up= up
58  
-    .down= down
59  
-
60  
-    #sample_repeat.foo 0000
61  
-    .up= up
62  
-    .down= down
63  
-
64  
-    #sample_replen.foo 0000
65  
-    .up= up
66  
-    .down= down
67  
-
68  
-  #scope-one.scope-container
69  
-    .scope-no 1
70  
-    .scope-area &nbsp;
71  
-  #scope-two.scope-container
72  
-    .scope-no 2
73  
-    .scope-area &nbsp;
74  
-  #scope-three.scope-container
75  
-    .scope-no 3
76  
-    .scope-area &nbsp;
77  
-  #scope-four.scope-container
78  
-    .scope-no 4
79  
-    .scope-area &nbsp;
80  
-  .scope-no &nbsp;
81  
-
82  
-  #about
83  
-    cloudtracker
84  
-
85  
-  #songname
86  
-    %span#song-number
87  
-    %span.label Songname:
88  
-    %span#name Banana Split________
89  
-    %span#length 00:00
90  
-
91  
-
92  
-  #samplename-container
93  
-    %span.label Samplename:
94  
-    %span#samplename
95  
-
96  
-  #load Load
97  
-
98  
-  #status-and-boxes
99  
-    #status-bar
100  
-      #current_pattern
101  
-        %span 00
102  
-      #tempo
103  
-        #bpm 125
104  
-        #control
105  
-          #control-up &#x25B2;
106  
-          %span.label Tempo
107  
-          #control-down &#x25BC;
108  
-      #status-label Status:
109  
-      #status
110  
-      #whatever
111  
-        .whatever
112  
-          %span.label Tune
113  
-          %span.counter 304558
114  
-        .whatever
115  
-          %span.label Free
116  
-          %span.counter 624358
117  
-    #boxes-and-tracker
118  
-      #boxes
119  
-        #box-one.box.small
120  
-        #box-two.box.normal
121  
-        #box-three.box.normal
122  
-        #box-four.box.normal
123  
-        #box-five.box.normal
124  
-
125  
-%label
126  
-  Load MOD File
127  
-  %input{:id => 'modfile', :type => 'file'}
128  
-
129  
-#debug-out
130  
-
131  
-#cursor

0 notes on commit 284d885

Please sign in to comment.
Something went wrong with that request. Please try again.