Permalink
Browse files

rails_apps_composer: front-end framework

  • Loading branch information...
1 parent 6c9193a commit a4696bfa6aee107d420723804fb21e9a1e05ae53 @nahurst committed Mar 17, 2013
@@ -9,6 +9,30 @@
* compiled file, but it's generally better to create a new file per style scope.
*
*= require_self
- *= require_tree .
- */
*= require foundation_and_overrides
+ *= require_tree .
+*/
+.brand {
+ float: left;
+ padding-right: 8px;
+}
+ul.nav {
+ list-style: none;
+ margin: 0 0 2em;
+ padding: 0;
+}
+ul.nav li {
+ display: inline;
+}
+#flash_notice, #flash_alert {
+ padding: 5px 8px;
+ margin: 10px 0;
+}
+#flash_notice {
+ background-color: #CFC;
+ border: solid 1px #6C6;
+}
+#flash_alert {
+ background-color: #FCC;
+ border: solid 1px #C66;
+}
@@ -0,0 +1,5 @@
+<% flash.each do |name, msg| %>
+ <% if msg.is_a?(String) %>
+ <%= content_tag :div, msg, :id => "flash_#{name}" %>
+ <% end %>
+<% end %>
@@ -0,0 +1 @@
+<%= link_to "Happy To", root_path, :class => 'brand' %>
@@ -1,30 +1,25 @@
<!DOCTYPE html>
-<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
-<!--[if lt IE 7 ]> <html class="ie6" lang="en"> <![endif]-->
-<!--[if IE 7 ]> <html class="ie7" lang="en"> <![endif]-->
-<!--[if IE 8 ]> <html class="ie8" lang="en"> <![endif]-->
-<!--[if (gte IE 9)|!(IE)]><!--> <html lang="en"> <!--<![endif]-->
+<html>
<head>
- <meta charset="utf-8" />
-
- <!-- Uncomment to make IE8 render like IE7 -->
- <!-- <meta http-equiv="X-UA-Compatible" content="IE=7" /> -->
-
- <!-- Set the viewport width to device width for mobile -->
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
-
- <title><%= content_for?(:title) ? yield(:title) : "Untitled" %></title>
-
- <%= stylesheet_link_tag "application" %>
- <%= javascript_include_tag "vendor/custom.modernizr" %>
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <title><%= content_for?(:title) ? yield(:title) : "Happy To" %></title>
+ <meta name="description" content="<%= content_for?(:description) ? yield(:description) : "Happy To" %>">
+ <%= stylesheet_link_tag "application", :media => "all" %>
+ <%= javascript_include_tag "application" %>
<%= csrf_meta_tags %>
+ <%= yield(:head) %>
</head>
-
- <body>
-
- <%= yield %>
-
-
- <%= javascript_include_tag "application" %>
+ <body class="<%= controller_name %> <%= action_name %>">
+ <div id="container" class="container">
+ <header>
+ <%= render 'layouts/navigation' %>
+ <%= render 'layouts/messages' %>
+ </header>
+ <div id="main" role="main">
+ <%= yield %>
+ </div>
+ <footer>
+ </footer>
+ </div> <!--! end of #container -->
</body>
</html>

0 comments on commit a4696bf

Please sign in to comment.