From cb0a605bfebe96af64fd60b494010b9382ba8a59 Mon Sep 17 00:00:00 2001 From: Marcin Kulik Date: Sun, 11 Mar 2012 15:38:12 +0100 Subject: [PATCH] Homepage improvements --- app/assets/stylesheets/home.css.scss | 8 ++++++-- app/views/home/show.html.erb | 4 +++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/app/assets/stylesheets/home.css.scss b/app/assets/stylesheets/home.css.scss index c8aece5..017737d 100644 --- a/app/assets/stylesheets/home.css.scss +++ b/app/assets/stylesheets/home.css.scss @@ -2,8 +2,12 @@ // They will automatically be included in application.css. // You can use Sass (SCSS) here: http://sass-lang.com/ -.hero-unit { +.hero-unit.home-page { .asciicast { - margin-top: 40px; + margin-top: 10px; + } + + h2 { + margin: 50px 0 10px 0; } } diff --git a/app/views/home/show.html.erb b/app/views/home/show.html.erb index 9f1e9cd..6f4c437 100644 --- a/app/views/home/show.html.erb +++ b/app/views/home/show.html.erb @@ -1,7 +1,9 @@ -
+

ascii.io

No bullshit asciicasting for developers

+

Featured: <%= asciicast_title(@asciicast) %>

+ <%= render :partial => 'asciicasts/asciicast', :object => @asciicast, :locals => { :skip_description => true, :auto_play => false } %>