Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
204 additions
and
291 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
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,3 @@ | ||
# Place all the behaviors and hooks related to the matching controller here. | ||
# All this logic will automatically be available in application.js. | ||
# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/ |
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,97 @@ | ||
@import 'bootstrap'; | ||
|
||
/* mixins, variables, etc */ | ||
|
||
$grayMediumLight: #eaeaea; | ||
|
||
/* universal */ | ||
|
||
html { overflow-y: scroll; } | ||
body { padding-top: 60px; } | ||
section { overflow: auto; } | ||
textarea { resize: vertical; } | ||
|
||
.center { | ||
text-align: center; | ||
|
||
h1 { | ||
margin-bottom: 10px; | ||
} | ||
} | ||
|
||
/* typography */ | ||
|
||
h1, h2, h3, h4, h5, h6 { | ||
line-height: 1; | ||
} | ||
|
||
h1 { | ||
font-size: 3em; | ||
letter-spacing: -2px; | ||
margin-bottom: 30px; | ||
text-align: center; | ||
} | ||
|
||
h2 { | ||
font-size: 1.7em; | ||
letter-spacing: -1px; | ||
margin-bottom: 30px; | ||
text-align: center; | ||
font-weight: normal; | ||
color: $grayLight; | ||
} | ||
|
||
p { | ||
font-size: 1.1em; | ||
line-height: 1.7em; | ||
} | ||
|
||
/* header */ | ||
|
||
#logo { | ||
float: left; | ||
margin-right: 10px; | ||
font-size: 1.7em; | ||
color: white; | ||
text-transform: uppercase; | ||
letter-spacing: -1px; | ||
padding-top: 9px; | ||
font-weight: bold; | ||
line-height: 1; | ||
|
||
&:hover { | ||
color: white; | ||
text-decoration: none; | ||
} | ||
} | ||
|
||
/* footer */ | ||
|
||
footer { | ||
margin-top: 45px; | ||
padding-top: 5px; | ||
border-top: 1px solid $grayMediumLight; | ||
color: $grayLight; | ||
|
||
a { | ||
color: $gray; | ||
|
||
&:hover { | ||
color: $grayDarker; | ||
} | ||
} | ||
|
||
small { | ||
float: left; | ||
} | ||
|
||
ul { | ||
float: right; | ||
list-style: none; | ||
|
||
li { | ||
float: left; | ||
margin-left: 10px; | ||
} | ||
} | ||
} |
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,3 @@ | ||
// Place all the styles related to the Users controller here. | ||
// They will automatically be included in application.css. | ||
// You can use Sass (SCSS) here: http://sass-lang.com/ |
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 @@ | ||
class UsersController < ApplicationController | ||
def new | ||
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,2 @@ | ||
module UsersHelper | ||
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,13 @@ | ||
<footer class="footer"> | ||
<small> | ||
<a href="http://railstutorial.org/">Rails Tutorial</a> | ||
by Michael Hartl | ||
</small> | ||
<nav> | ||
<ul> | ||
<li><%= link_to "About", about_path %></li> | ||
<li><%= link_to "Contact", contact_path %></li> | ||
<li><a href="http://news.railstutorial.org/">News</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,14 @@ | ||
<header class='navbar navbar-fixed-top'> | ||
<div class='navbar-inner'> | ||
<div class='container'> | ||
<%= link_to "sample app", root_path, id: "logo" %> | ||
<nav> | ||
<ul class='nav pull-right'> | ||
<li><%= link_to "Home", root_path %></li> | ||
<li><%= link_to "Help", help_path %></li> | ||
<li><%= link_to "Sign in", '#' %></li> | ||
</ul> | ||
</nav> | ||
</div> | ||
</div> | ||
</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,3 @@ | ||
<!--[if lt IE 9]> | ||
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> | ||
<![endif]--> |
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,12 @@ | ||
<h1>Sample App</h1> | ||
<p> | ||
This is the home page for the <a href="http://reailstutorial.org/">Ruby on Rails Tutorial</a> | ||
sample application. | ||
</p> | ||
<div class='center hero-unit'> | ||
<h1>Welcome to the Sample App</h1> | ||
|
||
<h2> | ||
This is the home page for the <%= link_to "Ruby on Rails Tutorial", "http://railstutorial.org/" %> | ||
sample application. | ||
</h2> | ||
|
||
<%= link_to "Sign up now!", '#', class: 'btn btn-large btn-primary' %> | ||
</div> | ||
|
||
<%= link_to image_tag('rails.png', alt: 'Ruby on Rails'), 'http://rubyonrails.org/' %> |
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,3 @@ | ||
<%- provide :title, 'Sign up' -%> | ||
<h1>Sign up</h1> | ||
<p>Find me in app/views/users/new.html.erb</p> |
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
Oops, something went wrong.