-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added header, footer, logo and styling
- Loading branch information
Showing
9 changed files
with
151 additions
and
13 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
.container { | ||
width: 710px; | ||
} | ||
|
||
body { | ||
background: #cff; | ||
} | ||
|
||
header { | ||
padding-top: 20px; | ||
} | ||
|
||
header img { | ||
padding: 1em; | ||
background: white; | ||
} | ||
|
||
section { | ||
margin-top: 1em; | ||
font-size: 120%; | ||
padding: 20px; | ||
background-color: white; | ||
} | ||
|
||
section h1 { | ||
font-size: 200%; | ||
} | ||
|
||
/* Links */ | ||
|
||
a { | ||
color: #09c; | ||
text-decoration: none; | ||
} | ||
|
||
a:hover { | ||
color: #069; | ||
text-decoration: underline; | ||
} | ||
|
||
a:visited { | ||
color: #069; | ||
} | ||
|
||
/* Navigation */ | ||
|
||
nav { | ||
float: right; | ||
background-color: white; | ||
padding: 0 0.7em; | ||
white-space: nowrap; | ||
} | ||
|
||
nav ul { | ||
margin: 0; | ||
padding: 0; | ||
} | ||
|
||
nav ul li { | ||
list-style-type: none; | ||
display: inline-block; | ||
padding: 0.2em 0; | ||
} | ||
|
||
nav ul li a { | ||
padding: 0 5px; | ||
font-weight: bold; | ||
} | ||
|
||
nav ul li a:visited { | ||
color: #09c; | ||
} | ||
|
||
nav ul li a:hover { | ||
text-decoration: underline; | ||
} | ||
|
||
/* Sign up button */ | ||
|
||
a.signup_button { | ||
margin-left: auto; | ||
margin-right: auto; | ||
display: block; | ||
text-align: center; | ||
width: 190px; | ||
color: white; | ||
background: #006400; | ||
font-size: 150%; | ||
font-weight: bold; | ||
padding: 20px; | ||
} | ||
|
||
/* Round corners */ | ||
|
||
.round { | ||
-moz-border-radius: 10px; | ||
-webkit-border-radius: 10px; | ||
border-radius: 10px; | ||
} | ||
|
||
footer { | ||
text-align: center; | ||
margin-top: 10px; | ||
width: 710px; | ||
margin-left: auto; | ||
margin-right: auto; | ||
} | ||
|
||
footer nav { | ||
float: none; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,2 @@ | ||
module StaticPagesHelper | ||
def static_page_path(page) | ||
"pages/" + page | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<footer> | ||
<nav class="round"> | ||
<ul> | ||
<li><%= link_to "About", static_page_path('about') %></li> | ||
<li><%= link_to "Contact", static_page_path('about') %></li> | ||
<li><a href="http://news.railstutorial.org/">News</a></li> | ||
<li><a href="http://railstutorial.org/">Rails Tutorial</a></li> | ||
</ul> | ||
</nav> | ||
</footer> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<header> | ||
<%= image_tag("logo.png", alt: "Sample App", class: "round") %> | ||
<nav class="round"> | ||
<ul> | ||
<li><%= link_to "Home", '#' %></li> | ||
<li><%= link_to "Help", '#' %></li> | ||
<li><%= link_to "Sign In", '#' %></li> | ||
</ul> | ||
</nav> | ||
</header> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<!--[if lt IE 9]> | ||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> | ||
<![endif]--> | ||
<%= stylesheet_link_tag 'blueprint/screen', :media => 'screen' %> | ||
<%= stylesheet_link_tag 'blueprint/print', :media => 'print' %> | ||
<!--[if lt IE 8]><%= stylesheet_link_tag 'blueprint/ie' %><![endif]--> | ||
<%= stylesheet_link_tag "application", :media => "all" %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters