Skip to content
Browse files

Added footer and partials

  • Loading branch information...
1 parent 88bed0a commit 12d763d25160d6fdcc7febedf8754a0d7424cf80 @iscott committed Jul 18, 2011
View
10 app/views/layouts/_footer.html.erb
@@ -0,0 +1,10 @@
+ <footer>
+ <nav class="round">
+ <ul>
+ <li><%= link_to "About", "#" %> </li>
+ <li><%= link_to "Contact", "#" %> </li>
+ <li><%= link_to "Logic", "http://logicitc.com" %></li>
+ <li><%= link_to "News", "http://news.railstutorial.org" %></li>
+ </ul>
+ </nav>
+ </footer>
View
10 app/views/layouts/_header.html.erb
@@ -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>
View
11 app/views/layouts/_stylesheets.html.erb
@@ -0,0 +1,11 @@
+ <%= stylesheet_link_tag 'blueprint/screen', :media => "screen" %>
+ <%= stylesheet_link_tag 'blueprint/print', :media => "print" %>
+ <%= stylesheet_link_tag 'custom', :media => "screen" %>
+ <%= javascript_include_tag :defaults %>
+ <%= csrf_meta_tag %>
+ <!--[if lt IE 9]>
+ <script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
+ <![endif]-->
+ <!--[if lt IE 8]>
+ <%= stylesheet_link_tag 'blueprint/ie' %>
+ <![endif]-->
View
30 app/views/layouts/application.html.erb
@@ -2,33 +2,15 @@
<html>
<head>
<title><%= title%></title>
- <%= stylesheet_link_tag 'blueprint/screen', :media => "screen" %>
- <%= stylesheet_link_tag 'blueprint/print', :media => "print" %>
- <%= stylesheet_link_tag 'custom', :media => "screen" %>
- <%= javascript_include_tag :defaults %>
- <%= csrf_meta_tag %>
- <!--[if lt IE 9]>
- <script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
- <![endif]-->
- <!--[if lt IE 8]>
- <%= stylesheet_link_tag 'blueprint/ie' %>
- <![endif]-->
+ <%= render 'layouts/stylesheets' %>
</head>
<body>
<div class="container">
- <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>
- <section class="round">
- <%= yield %>
- </section>
- </header>
+ <%= render 'layouts/header' %>
+ <section class="round">
+ <%= yield %>
+ </section>
+ <%= render 'layouts/footer' %>
</div>
</body>
</html>
View
14 public/stylesheets/custom.css
@@ -108,4 +108,18 @@ a.signup_button {
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
+}
+
+/* Footer Nav */
+
+footer {
+ text-align: center;
+ margin-top: 10px;
+ width: 710px;
+ margin-left: auto;
+ margin-right: auto;
+}
+
+footer nav {
+ float: none;
}

0 comments on commit 12d763d

Please sign in to comment.
Something went wrong with that request. Please try again.