diff --git a/app/assets/stylesheets/_shared.sass b/app/assets/stylesheets/_shared.sass index e0f6352..1013205 100644 --- a/app/assets/stylesheets/_shared.sass +++ b/app/assets/stylesheets/_shared.sass @@ -2,5 +2,14 @@ $main-color: #3377aa $main-color: #d95525 $main-color-light: lighten($main-color, 25) +=clearfix + &:after + visibility: hidden + display: block + font-size: 0 + content: " " + clear: both + height: 0 + =font font-family: Overpass, "Lucida Grande", Tahoma, Verdana, sans-serif diff --git a/app/assets/stylesheets/asciicasts.css.sass b/app/assets/stylesheets/asciicasts.css.sass index a802085..698d839 100644 --- a/app/assets/stylesheets/asciicasts.css.sass +++ b/app/assets/stylesheets/asciicasts.css.sass @@ -89,7 +89,7 @@ div.presentation margin-right: 0 .presentations - clear: both + @include clearfix .other-asciicasts margin-top: 70px diff --git a/app/views/home/show.html.erb b/app/views/home/show.html.erb deleted file mode 100644 index ead21d8..0000000 --- a/app/views/home/show.html.erb +++ /dev/null @@ -1,37 +0,0 @@ -
-
-
-

- Record Your Terminal - Share it with no fuss -

- -

ASCII.IO is the simplest way to record your terminal and share - the recordings with your fellow geeks. Simply record and upload your - terminal session with <%= link_to 'a single command', docs_path(:record) %>, and - ASCII.IO will play it back in your browser.

- -

- <%= link_to '» Start Recording'.html_safe, docs_path(:record) %> -

-
- -
- <%= player @asciicast, :speed => 2.0, :hud => false if @asciicast %> -
-
-
- -
-
-
-

Recent asciicasts

- <%= render :partial => 'asciicasts/previews', - :locals => { :asciicasts => @asciicasts } %> -
- -
- <%= render :partial => 'shared/browse_categories' %> -
-
-
diff --git a/app/views/home/show.html.slim b/app/views/home/show.html.slim new file mode 100644 index 0000000..61ae027 --- /dev/null +++ b/app/views/home/show.html.slim @@ -0,0 +1,29 @@ +section#about.feature + .wrapper + .primary_info + h1 + em Record Your Terminal + | Share it with no fuss + p + ' ASCII.IO is the simplest way to record your terminal and share the + recordings with your fellow geeks. Simply record and upload your + terminal session with + #{link_to 'a single command', docs_path(:record)}, and ASCII.IO will + play it back in your browser. + p + = link_to '» Start Recording'.html_safe, docs_path(:record) + + .secondary_info + = player @asciicast, :speed => 2.0, :hud => false if @asciicast + +section.supplimental + .wrapper + .main + h1 Recent asciicasts + .presentations + = render :partial => 'asciicasts/previews', :locals => { :asciicasts => @asciicasts } + p + = link_to 'See more »'.html_safe, browse_path + + .extras + = render :partial => 'shared/browse_categories'