Browse files

dry up views and center buttons

  • Loading branch information...
1 parent b31f217 commit 5e9fd29147f87786fbc5aa24b8c046222d04ae0c David Lee committed Sep 24, 2012
View
4 app/views/layouts/_shim.html.erb
@@ -0,0 +1,4 @@
+ <!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
+ <!--[if lt IE 9]>
+ <script src="http://html5shim.googlecode.com/svn/trunk/html5.js" type="text/javascript"></script>
+ <![endif]-->
View
32 app/views/layouts/application.html.erb
@@ -7,11 +7,7 @@
<title><%= content_for?(:title) ? yield(:title) : "Tithe" %></title>
<%= csrf_meta_tags %>
<%= tag :meta, :name => "stripe-key", :content => ENV['STRIPE_PUBLIC_TEST_KEY'] %>
- <!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
- <!--[if lt IE 9]>
- <script src="http://html5shim.googlecode.com/svn/trunk/html5.js" type="text/javascript"></script>
- <![endif]-->
-
+ <%= render 'layouts/shim' %>
<%= stylesheet_link_tag "application", :media => "all" %>
</head>
<body>
@@ -27,31 +23,7 @@
</div><!--/row-->
</div><!--/content-->
</br></br>
- <div class="row">
- <div class="span1">
- <%= image_tag("icon.png") %>
- </div>
- <div class="span3">
- <h3>Step 1</h3>
- <p>Find the organizations and agencies that you want to support. Our extensive database offers unique insights into each organization's services.</p>
- </div>
- <div class="span1">
- <%= image_tag("icon.png") %>
- </div>
- <div class="span3">
- <h3>Step 2</h3>
- <p>Tithe's easy-to-use interface allows you to make a one-time contribution or a monthly payment. Cancel at anytime.</p>
- </div>
-
- <div class="span1">
- <%= image_tag("icon.png") %>
- </div>
- <div class="span3">
- <h3>Step 3</h3>
- <p>Receive regular updates on how your supported organizations are doing. Meet and communicate with others who share similar interests.</p>
- </div>
- </div>
- <p></p>
+
<%= render 'layouts/footer' %>
</div> <!-- /container -->
View
2 app/views/organizations/index.html.erb
@@ -1,5 +1,5 @@
<h1>All Organizations</h1>
-<h3><%= link_to 'Add New Organization', new_organization_path %></h3>
+<h3><div class="center"><%= link_to 'Add New Organization', new_organization_path, class: "btn btn-primary btn-large" %></div></h3>
<table>
<tr>
<th>Organization Name</th>
View
25 app/views/pages/_steps.html.erb
@@ -0,0 +1,25 @@
+ <div class="row">
+ <div class="span1">
+ <%= image_tag("icon.png") %>
+ </div>
+ <div class="span3">
+ <h3>Step 1</h3>
+ <p>Find the organizations and agencies that you want to support. Our extensive database offers unique insights into each organization's services.</p>
+ </div>
+ <div class="span1">
+ <%= image_tag("icon.png") %>
+ </div>
+ <div class="span3">
+ <h3>Step 2</h3>
+ <p>Tithe's easy-to-use interface allows you to make a one-time contribution or a monthly payment. Cancel at anytime.</p>
+ </div>
+
+ <div class="span1">
+ <%= image_tag("icon.png") %>
+ </div>
+ <div class="span3">
+ <h3>Step 3</h3>
+ <p>Receive regular updates on how your supported organizations are doing. Meet and communicate with others who share similar interests.</p>
+ </div>
+ </div>
+ <p></p>
View
6 app/views/pages/home.html.erb
@@ -3,6 +3,8 @@
<h2>Welcome to Tithe.</h2>
<h3>We help citizens support the governmental agencies they care most about. </h3>
<p>The government--whether federal, state, or local--provides many vital services that we depend on. These services include everything from the streets we drive on, the schools our children are educated in, and the public transportation that help us get to work. </p>
-<p> Public spending has been drastically reduced in many key areas over the last few years due to the economic recession. These reductions have meant fewer afterschool programs, fewer operating hours for local libraries, fewer police officers keeping our neighborhoods safe, and fewer services in every manner.</p>
+<p> Public spending has been drastically reduced in many key areas over the last few years due to the economic recession. These reductions have meant <strong>fewer afterschool programs</strong>, <strong>fewer operating hours for local libraries</strong>, <strong>fewer police officers keeping our neighborhoods safe</strong>, and <strong>fewer services in every manner</strong>.</p>
<p> Tithe exists to connect citizens with the governmental agencies you support most. Through Tithe, you can easily make a donation to help support the government service. </p>
-<%= link_to "Join today!", sign_up_path, class: "center btn btn-primary btn-large", :method => :get %> <%= link_to "Log in!", login_path, class: "center btn btn-primary btn-large", :method => :get %>
+<div class="center"><%= link_to "Join today!", sign_up_path, class: "btn btn-primary btn-large", :method => :get %> <%= link_to "Log in!", login_path, class: "btn btn-primary btn-large", :method => :get %></div>
+<br><br><br><br>
+<%= render 'pages/steps' %>
View
2 app/views/users/new.html.haml
@@ -9,11 +9,9 @@
%li= message
%p
= f.label :first_name
- %br
= f.text_field :first_name
%p
= f.label :last_name
- %br
= f.text_field :last_name
%p
= f.label :email

0 comments on commit 5e9fd29

Please sign in to comment.