-
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.
style devise views with materialize to match admin. Update devise con…
…trollers and omniauth to work with the new admin
- Loading branch information
1 parent
433aff3
commit b5df29f
Showing
21 changed files
with
308 additions
and
104 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,59 @@ | ||
@import 'login/materialize-social'; | ||
|
||
.nav-wrapper { | ||
background-color: #009688; | ||
box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12); | ||
} | ||
|
||
.title { | ||
padding-left: 24px; | ||
font-family: 'Roboto', sans-serif; | ||
font-size: 20px; | ||
font-weight: 500; | ||
letter-spacing: 0.15px; | ||
} | ||
|
||
.login-container { | ||
display: flex; | ||
height: 75vh; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
|
||
.card-panel { | ||
width: 380px; | ||
max-width: 380px; | ||
} | ||
|
||
.login-form-copy { | ||
font-family: 'Roboto', sans-serif; | ||
font-size: 16px; | ||
font-weight: 400; | ||
letter-spacing: 0.00938em; | ||
} | ||
|
||
.input-field label { | ||
font-family: 'Roboto', sans-serif; | ||
font-size: 16px; | ||
font-weight: 400; | ||
color: rgba(0, 0, 0, 0.54); | ||
} | ||
|
||
.btn-login { | ||
font-family: 'Roboto', sans-serif; | ||
font-size: 14px; | ||
font-weight: 500; | ||
background-color: rgb(0, 150, 136); | ||
box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 3px 1px -2px rgba(0, 0, 0, 0.12); | ||
&:hover { | ||
background-color: #00796b; | ||
} | ||
} | ||
|
||
.btn-flat { | ||
background-color: white; | ||
box-shadow: none; | ||
&:hover { | ||
background-color: #eeeeee; | ||
} | ||
} |
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,49 @@ | ||
/* https://github.com/TerryMooreII/materialize-social */ | ||
|
||
.btn.social > :first-child, | ||
.btn-large.social > :first-child, | ||
.col.social > :first-child { | ||
border-right: 1px solid rgba(0, 0, 0, 0.2); | ||
} | ||
.btn.social, | ||
.btn-large.social, | ||
.col.social { | ||
padding: 0 2rem 0 0; | ||
} | ||
.btn.social i, | ||
.btn-large.social i, | ||
.col.social i { | ||
padding: 0 1rem; | ||
margin-right: 1rem; | ||
} | ||
.btn.social-icon, | ||
.btn-large.social-icon, | ||
.col.social-icon { | ||
padding: 0; | ||
} | ||
.btn.social-icon i, | ||
.btn-large.social-icon i, | ||
.col.social-icon i { | ||
padding: 0 1rem; | ||
margin-right: 0; | ||
} | ||
.btn-large.social-icon { | ||
padding: 0 1rem; | ||
} | ||
.col.social { | ||
width: 100%; | ||
text-align: left; | ||
} | ||
.col.social i.fa-fw { | ||
width: 3.2rem; | ||
} | ||
.google { | ||
background-color: #dd4b39; | ||
color: #fff !important; | ||
} | ||
.google i { | ||
color: #fff !important; | ||
} | ||
.google:hover { | ||
background-color: #e47365 !important; | ||
} |
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 was deleted.
Oops, something went wrong.
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,18 +1,16 @@ | ||
<div class="register-box animated <%= login_animation %>"> | ||
<div class="register-logo"> | ||
Ultimate Tournament | ||
</div> | ||
|
||
<div class="register-subtext"> | ||
<p>Choose tournament</p> | ||
</div> | ||
<div class="login-container"> | ||
<div class="card-panel"> | ||
<span class="login-form-copy"> | ||
Choose tournament: | ||
</span> | ||
|
||
<div class="register-box-body" style="padding-bottom: 5px;"> | ||
<% current_user.tournaments.each do |tournament| %> | ||
<%= form_tag choose_tournament_path, class: 'form-group' do |f| %> | ||
<%= hidden_field_tag :tournament, tournament.handle %> | ||
<%= submit_tag tournament.name, class: 'btn btn-block' %> | ||
<div style="padding-top: 10px"> | ||
<% current_user.tournaments.each do |tournament| %> | ||
<%= form_tag choose_tournament_path do |f| %> | ||
<%= hidden_field_tag :tournament, tournament.handle %> | ||
<%= submit_tag tournament.name, class: 'btn btn-flat' %> | ||
<% end %> | ||
<% end %> | ||
<% end %> | ||
</div> | ||
</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,51 +1,37 @@ | ||
<div class="register-box animated <%= login_animation %>"> | ||
|
||
<% if @tournament %> | ||
<div class="register-logo"> | ||
<%= @tournament.name %> | ||
</div> | ||
<% end %> | ||
|
||
<div class="register-subtext"> | ||
<p>Log in to manage your tournament</p> | ||
</div> | ||
|
||
<%= render 'errors' %> | ||
<%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %> | ||
<div class="register-box-body"> | ||
<div class="form-group"> | ||
<div class="input-group"> | ||
<span class="input-group-addon"><i class="fa fa-fw fa-envelope"></i></span> | ||
<%= f.text_field :email, placeholder: 'Email', class: 'form-control', autofocus: true %> | ||
</div> | ||
<div class="login-container"> | ||
<div class="card-panel"> | ||
<span class="login-form-copy"> | ||
Log in to manage your tournament | ||
</span> | ||
|
||
<%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %> | ||
<div class="input-field"> | ||
<%= f.text_field :email, autocomplete: 'off' %> | ||
<label for="user_email">Username</label> | ||
<% if flash[:alert].present? %> | ||
<span class="helper-text"> | ||
<%= flash[:alert] %> | ||
</span> | ||
<% end %> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<div class="input-group"> | ||
<span class="input-group-addon"><i class="fa fa-fw fa-lock"></i></span> | ||
<%= f.password_field :password, placeholder: '********', class: 'form-control', autocomplete: 'off' %> | ||
</div> | ||
<div class="input-field"> | ||
<%= f.password_field :password, autocomplete: 'off' %> | ||
<label for="user_password">Password</label> | ||
</div> | ||
|
||
<%= f.hidden_field :remember_me, value: true %> | ||
|
||
<div class="form-group text-center" style="margin-bottom: 0px"> | ||
<%= f.submit "Log in", class: 'btn btn-lg btn-block btn-primary' %> | ||
<div class="row"> | ||
<%= link_to "Forgot your password?", new_user_password_path %> | ||
</div> | ||
</div> | ||
<% end %> | ||
|
||
<br> | ||
<div class="text-center"> | ||
<p style="margin-bottom: 15px;">or</p> | ||
</div> | ||
<%= f.submit "Log in", class: 'btn btn-login right' %> | ||
<% end %> | ||
|
||
<div class="social-auth-links text-center"> | ||
<div style="width: 55%; margin: auto;"> | ||
<%= link_to user_google_oauth2_omniauth_authorize_url(subdomain: 'www'), | ||
class: "btn btn-block btn-social btn-google btn-flat", style: 'margin-bottom: 10px;' do %> | ||
<span class="fa fa-google"></span> Sign in with Google | ||
<% end %> | ||
</div> | ||
<%= link_to user_google_oauth2_omniauth_authorize_url(subdomain: 'www'), | ||
class: "waves-effect waves-light btn social google" do %> | ||
<i class="fa fa-google"></i> Sign in with Google | ||
<% 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
Oops, something went wrong.