~rbdr/grita

396b06b88ac6a3afaf816fe29bce239269c3511e — Ben Beltran 13 years ago 787621c
Cambio de Layout + Favicon

Agregué el favicon nuevo y cambié un poco el layout para darle más enfasis al texto.
M grita.rb => grita.rb +1 -1
@@ 47,7 47,7 @@ get '/:grito' do
    
    @markdown = RDiscount.new(@grito.text)
    
    haml :grito
    haml :grito, :layout => :layoutmini
end

error do

A public/images/favicon.ico => public/images/favicon.ico +0 -0
A public/images/favicon.png => public/images/favicon.png +0 -0
A public/images/logomini.png => public/images/logomini.png +0 -0
M views/layout.haml => views/layout.haml +3 -1
@@ 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

A views/layoutmini.haml => views/layoutmini.haml +21 -0
@@ 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

M views/style.css => views/style.css +9 -0
@@ 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;

M views/style.less => views/style.less +10 -1
@@ 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;
}