From 396b06b88ac6a3afaf816fe29bce239269c3511e Mon Sep 17 00:00:00 2001 From: Ben Beltran Date: Wed, 1 Dec 2010 15:58:21 -0700 Subject: Cambio de Layout + Favicon MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Agregué el favicon nuevo y cambié un poco el layout para darle más enfasis al texto. --- views/layout.haml | 4 +++- views/layoutmini.haml | 21 +++++++++++++++++++++ views/style.css | 9 +++++++++ views/style.less | 11 ++++++++++- 4 files changed, 43 insertions(+), 2 deletions(-) create mode 100644 views/layoutmini.haml (limited to 'views') diff --git a/views/layout.haml b/views/layout.haml index 6fed808..160b858 100644 --- a/views/layout.haml +++ b/views/layout.haml @@ -6,7 +6,9 @@ %title= "#{@grito.title} - ¡Grita!" -else %title ¡Grita! - %link{:rel => 'stylesheet', :type => 'text/css', :href => '/style.css', :title => 'default'} + %link{:rel => 'stylesheet', :type => 'text/css', :href => '/style.css', :title => 'default'} + %link{:rel => "icon", :href => "/images/favicon.ico", :type => "image/x-icon"} + %link{:rel => "icon", :href => "/images/favicon.png", :type => "image/png"} %meta{'http-equiv' => 'Contet-Type', :content => 'text/html; charset=utf-8' }/ %body #wrapper diff --git a/views/layoutmini.haml b/views/layoutmini.haml new file mode 100644 index 0000000..23fbe14 --- /dev/null +++ b/views/layoutmini.haml @@ -0,0 +1,21 @@ +!!! 5 +%html + %head + -unless @grito.nil? + -if @grito.errors.empty? + %title= "#{@grito.title} - ¡Grita!" + -else + %title ¡Grita! + %link{:rel => 'stylesheet', :type => 'text/css', :href => '/style.css', :title => 'default'} + %link{:rel => "icon", :href => "/images/favicon.ico", :type => "image/x-icon"} + %link{:rel => "icon", :href => "/images/favicon.png", :type => "image/png"} + %meta{'http-equiv' => 'Contet-Type', :content => 'text/html; charset=utf-8' }/ + %body + #wrapper + #header + %a{:id => 'logomini', :href=> '/'}< + %span Grita! + %hr/ + #body + =yield + #footer \ No newline at end of file diff --git a/views/style.css b/views/style.css index 3a1f6e7..7582af3 100644 --- a/views/style.css +++ b/views/style.css @@ -23,7 +23,16 @@ body { display: block; margin: 10px 250px; } +#header #logomini { + background-image: url(/images/logomini.png); + background-repeat: no-repeat; + width: 140px; + height: 65px; + display: block; + margin: 10px 380px; +} #header #logo span { display: none; } +#header #logomini span { display: none; } #header #description p { font-size: 1.4em; line-height: 1.8em; diff --git a/views/style.less b/views/style.less index 972269c..516cbbc 100644 --- a/views/style.less +++ b/views/style.less @@ -41,7 +41,16 @@ body{ margin: 10px 250px; } -#header #logo span{ +#header #logomini{ + background-image: url(/images/logomini.png); + background-repeat: no-repeat; + width: 140px; + height: 65px; + display: block; + margin: 10px 380px; +} + +#header #logo span, #header #logomini span{ display: none; } -- cgit