summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorBen Beltran <ben@nsovocal.com>2010-12-01 15:58:21 -0700
committerBen Beltran <ben@nsovocal.com>2010-12-01 15:58:21 -0700
commit396b06b88ac6a3afaf816fe29bce239269c3511e (patch)
tree339708bc7b3f5721bbd51af1fc631302b0ef7769 /views
parent787621c343b12bbbb0922cc1faf4cdcaa5f4c245 (diff)
Cambio de Layout + Favicon
Agregué el favicon nuevo y cambié un poco el layout para darle más enfasis al texto.
Diffstat (limited to 'views')
-rw-r--r--views/layout.haml4
-rw-r--r--views/layoutmini.haml21
-rw-r--r--views/style.css9
-rw-r--r--views/style.less11
4 files changed, 43 insertions, 2 deletions
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;
}