forked from halimkhaldi/project1-scootwee
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' of https://github.com/SF-WDI/project1-scootwee int…
…o dev latest update on index
- Loading branch information
Showing
12 changed files
with
147 additions
and
20 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
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,3 +1,14 @@ | ||
// Place all the styles related to the session controller here. | ||
// They will automatically be included in application.css. | ||
// You can use Sass (SCSS) here: http://sass-lang.com/ | ||
|
||
h2, h4, .date, .day{ | ||
text-align: center; | ||
} | ||
|
||
.listandmap{ | ||
display: flex; | ||
justify-content: center; | ||
justify-content: space-around; | ||
} | ||
|
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,3 +1,36 @@ | ||
// 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/ | ||
|
||
.logo{ | ||
text-align: center; | ||
} | ||
|
||
.logsession{ | ||
margin-top: 10%; | ||
} | ||
|
||
.login{ | ||
margin-top: 5%; | ||
} | ||
|
||
.line { | ||
border-left: 2px solid black; | ||
height: 600px; | ||
} | ||
|
||
.signup{ | ||
margin-top: 19%; | ||
} | ||
|
||
.everything{ | ||
display: flex; | ||
justify-content: center; | ||
justify-content: space-around; | ||
} | ||
|
||
input{ | ||
height: 40px; | ||
width: 300px; | ||
border-radius: 5px; | ||
} |
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 |
---|---|---|
@@ -1,10 +1,31 @@ | ||
<h1>Login</h1> | ||
<%= form_with mode:@user , id:'login' do |t|%> | ||
|
||
<div class= 'everything'> | ||
<div class= 'logsession'> | ||
|
||
<h1>Login</h1> | ||
|
||
<div> | ||
<%= t.label :email , 'Email' %> | ||
<br> | ||
<%= t.text_field :email , placeholder:'Email here' %> | ||
</div> | ||
|
||
<div> | ||
<%= t.label :password, 'Password' %> | ||
<br> | ||
<%= t.password_field :password , placeholder:'Password' %> | ||
</div> | ||
|
||
<%= t.hidden_field :lat %> | ||
<%= t.hidden_field :lng %> | ||
<br> | ||
<%= t.submit 'Login' %> | ||
<% end %> | ||
</div> | ||
|
||
</div> | ||
|
||
|
||
|
||
|
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,42 +1,77 @@ | ||
<h1>Users#new</h1> | ||
<div class='container'> | ||
<%= form_with url:user_login_path, id:'login' do |l|%> | ||
|
||
|
||
<div class= 'logo'> | ||
<%= image_tag "ScootweeLogo.png" %> | ||
</div> | ||
|
||
<div class = 'everything'> | ||
|
||
<div class = 'login'> | ||
<h1>LOGIN</h1> | ||
<div> | ||
<%= l.label :email %> | ||
<br> | ||
<%= l.text_field :email, placeholder: "Email" %> | ||
</div> | ||
<div> | ||
<%= l.label :password %> | ||
<br> | ||
<%= l.password_field :password, placeholder: "Password" %> | ||
</div> | ||
<%= l.hidden_field :lat%> | ||
<%= l.hidden_field :lng%> | ||
<br> | ||
<%= l.submit "Login" %> | ||
|
||
|
||
<% end %> | ||
</div> | ||
|
||
<div class= 'line'> | ||
</div> | ||
|
||
|
||
<div> | ||
<% if(flash[:user_error]) %> | ||
<% flash[:user_error].each do |e| %> | ||
<div class='bg-info'><p class='text-danger'><%= e %></p></div> | ||
<% end %> | ||
<% end %> | ||
<%= form_with model:@user , id:'signup' ,class:'form col-lg-12' do |f|%> | ||
<div class='form-group'> | ||
<%= form_with model:@user , id:'signup' do |f|%> | ||
|
||
<div class= 'signup'> | ||
<h1> SIGN UP </h1> | ||
|
||
<%= f.label :first_name %> | ||
<br> | ||
<%= f.text_field :first_name, placeholder: "First Name", class:'form-control' %> | ||
<%= f.text_field :first_name, placeholder: "First Name" %> | ||
</div> | ||
|
||
<div class='form-group'> | ||
<div> | ||
<%= f.label :last_name %> | ||
<br> | ||
<%= f.text_field :last_name, placeholder: "Last Name" , class:'form-control' %> | ||
<%= f.text_field :last_name, placeholder: "Last Name" %> | ||
</div> | ||
|
||
<div> | ||
<%= f.label :email %> | ||
<br> | ||
<%= f.text_field :email, placeholder: "Email" %> | ||
</div> | ||
|
||
<div> | ||
<%= f.label :password %> | ||
<br> | ||
<%= f.password_field :password, placeholder: "Password" %> | ||
</div> | ||
<%= f.hidden_field :lat%> | ||
<%= f.hidden_field :lng%> | ||
|
||
|
||
|
||
<br> | ||
<%= f.submit "Sign Up" %> | ||
|
||
<% end %> | ||
|
||
<p>Find me in app/views/users/new.html.erb</p> | ||
|
||
</div> | ||
|
||
|
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