-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rails_apps_composer: front-end framework
- Loading branch information
1 parent
73f15af
commit 2b023f3
Showing
6 changed files
with
80 additions
and
16 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/* | ||
* Simple CSS stylesheet for a navigation bar and flash messages. | ||
*/ | ||
main { | ||
background-color: #eee; | ||
padding-bottom: 80px; | ||
width: 100%; | ||
} | ||
header { | ||
border: 1px solid #d4d4d4; | ||
background-image: linear-gradient(to bottom, white, #f2f2f2); | ||
background-color: #f9f9f9; | ||
-webkit-box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1); | ||
-moz-box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1); | ||
box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1); | ||
margin-bottom: 20px; | ||
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; | ||
} | ||
ul.nav li { | ||
display: inline; | ||
} | ||
ul.nav li a { | ||
padding: 10px 15px 10px; | ||
color: #777777; | ||
text-decoration: none; | ||
text-shadow: 0 1px 0 white; | ||
} | ||
.flash_notice, .flash_alert { | ||
padding: 8px 35px 8px 14px; | ||
margin-bottom: 20px; | ||
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); | ||
border: 1px solid #fbeed5; | ||
-webkit-border-radius: 4px; | ||
-moz-border-radius: 4px; | ||
border-radius: 4px; | ||
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; | ||
font-size: 14px; | ||
line-height: 20px; | ||
} | ||
.flash_notice { | ||
background-color: #dff0d8; | ||
border-color: #d6e9c6; | ||
color: #468847; | ||
} | ||
.flash_alert { | ||
background-color: #f2dede; | ||
border-color: #eed3d7; | ||
color: #b94a48; | ||
} | ||
|
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,5 @@ | ||
<% flash.each do |name, msg| %> | ||
<% if msg.is_a?(String) %> | ||
<%= content_tag :div, msg, :class => "flash_#{name}" %> | ||
<% 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,4 @@ | ||
<ul class="nav"> | ||
<li><%= link_to 'Home', root_path %></li> | ||
<%= render 'layouts/navigation_links' %> | ||
</ul> |
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 @@ | ||
<%# add navigation links to this file %> |
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,14 +1,20 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>RailsOmniauth</title> | ||
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> | ||
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> | ||
<%= csrf_meta_tags %> | ||
</head> | ||
<body> | ||
|
||
<%= yield %> | ||
|
||
</body> | ||
<head> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title><%= content_for?(:title) ? yield(:title) : "Rails Omniauth" %></title> | ||
<meta name="description" content="<%= content_for?(:description) ? yield(:description) : "Rails Omniauth" %>"> | ||
<%= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true %> | ||
<%= javascript_include_tag "application", "data-turbolinks-track" => true %> | ||
<%= csrf_meta_tags %> | ||
</head> | ||
<body> | ||
<header> | ||
<%= render 'layouts/navigation' %> | ||
</header> | ||
<main role="main"> | ||
<%= render 'layouts/messages' %> | ||
<%= yield %> | ||
</main> | ||
</body> | ||
</html> |