Browse Source

home page tweaks

pull/1/head
Nicolae Claudius 11 years ago
parent
commit
f4a38838ff
  1. 1
      app/assets/stylesheets/application.css.scss
  2. 13
      app/assets/stylesheets/pages/home.css.scss
  3. 31
      app/views/public/pages/home.html.erb
  4. 21
      app/views/users/registrations/_new.html.erb

1
app/assets/stylesheets/application.css.scss

@ -14,7 +14,6 @@ $carousel-indicator-active-bg: #333;
@import "bootstrap"; @import "bootstrap";
@import "bootstrap/theme"; @import "bootstrap/theme";
@import 'font-awesome';
@import "active_scaffold"; @import "active_scaffold";
@import "theme/*"; @import "theme/*";
@import "pages/*"; @import "pages/*";

13
app/assets/stylesheets/pages/home.css.scss

@ -1,13 +1,12 @@
@import "compass/css3/images"; @import "compass/css3/images";
@import "compass/css3/border-radius"; @import "compass/css3/border-radius";
.contour { .home-sign-up {
border: 2px solid $text-color; h3 {
padding: 1em; margin-top: 0;
@include border-radius($border-radius-large); }
br.hide { .actions {
display: block !important; margin-top: 2em;
visibility: visible !important;
} }
} }

31
app/views/public/pages/home.html.erb

@ -12,32 +12,15 @@
<div class="container"> <div class="container">
<div class="row"> <div class="row">
<div class="col-lg-4"> <div class="col-lg-4 home-sign-up">
<div class="contour"> <h3>Use it yourself, it's free!</h3>
<h3 class="text-center animated tada">Use it yourself, it's free!</h3> <p>In a few seconds you're done!</p>
<p class="text-center">In a few seconds you're done!</p> <br>
<br> <%= render 'users/registrations/new', wrapper: :inlabel,
<%= simple_form_for(resource, resource_name: :user, resource: User.new %>
as: resource_name,
url: registration_path(resource_name),
wrapper: :inlabel
) do |f| %>
<%= devise_error_messages! %>
<%= honeypot %>
<%= f.input :full_name, required: true %>
<%= f.input :email, required: true %>
<%= f.input :password, required: true %>
<br>
<%= f.submit "Sign up", class: 'btn btn-primary' %>
<small>
or <%= link_to 'Sign in', new_user_session_path %>
/ <%= link_to 'Forgot your password?', new_password_path(resource_name) %>
</small>
<% end %>
</div>
<br class="hidden-lg"> <br class="hidden-lg">
</div> </div>
<div class="col-lg-8"> <div class="col-lg-7 col-lg-offset-1">
<%= render 'public/pages/home/slides' %> <%= render 'public/pages/home/slides' %>
</div> </div>

21
app/views/users/registrations/_new.html.erb

@ -1,7 +1,12 @@
<%= simple_form_for(resource, <%
options = {
as: resource_name, as: resource_name,
url: registration_path(resource_name) url: registration_path(resource_name)
) do |f| %> }
options[:wrapper] = wrapper if defined? wrapper
%>
<%= simple_form_for(resource, options) do |f| %>
<%= devise_error_messages! %> <%= devise_error_messages! %>
@ -9,9 +14,11 @@
<%= f.input :full_name, required: true %> <%= f.input :full_name, required: true %>
<%= f.input :email, required: true %> <%= f.input :email, required: true %>
<%= f.input :password, required: true %> <%= f.input :password, required: true %>
<%= f.submit "Sign up", class: 'btn btn-primary' %> <div class="actions">
<small> <%= f.submit "Sign up", class: 'btn btn-primary' %>
or <%= link_to 'Sign in', new_user_session_path %> <small>
/ <%= link_to 'Forgot your password?', new_password_path(resource_name) %> or <%= link_to 'Sign in', new_user_session_path %>
</small> / <%= link_to 'Forgot your password?', new_password_path(resource_name) %>
</small>
</div>
<% end %> <% end %>
Loading…
Cancel
Save