forked from ontoportal/ontoportal_web_ui
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature: Update login page design (#142)
* add new login style * import the new login style * update login template * put colors variables in one globale file * convert login file from .erb to .haml * Remove the replaceable classes by bootstrap classes & use css variables instead of fixed values * import variables file * Update application.css.scss.erb * Update application.css.scss.erb * Update application.css.scss.erb * Update and rename variables_stage.scss to variables.scss.erb * Update bioportal.scss * Update login.scss * Rename variables.scss.erb to theme-variables.scss.erb * Update application.css.scss.erb --------- Co-authored-by: Syphax Bouazzouni <[email protected]>
- Loading branch information
1 parent
bd78633
commit eb9bb78
Showing
6 changed files
with
143 additions
and
36 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,64 @@ | ||
.login-form{ | ||
margin-top: 30px; | ||
padding: 37px 41px; | ||
box-shadow: rgba(0, 0, 0, 0.08) 0px 20px 50px; | ||
border-radius: 14px; | ||
} | ||
|
||
.login-input{ | ||
box-sizing: border-box; | ||
outline: none; | ||
padding: 19px; | ||
font-size: 16px; | ||
border: 1px solid #BDBDBD; | ||
border-radius: 9px; | ||
width: 357px; | ||
} | ||
|
||
.login-input:focus{ | ||
border: 1px solid var(--primary-color); | ||
} | ||
.login-input::placeholder{ | ||
font-weight: 300; | ||
color: #C1C1C1; | ||
} | ||
|
||
.login-input-title{ | ||
font-size: 13px; | ||
margin-bottom: 5px; | ||
font-weight: 600; | ||
color: #666666; | ||
} | ||
.email-input{ | ||
margin-bottom: 20px; | ||
} | ||
.password-input{ | ||
margin-bottom: 8px; | ||
} | ||
.login-forgot-password{ | ||
font-weight: 500 ; | ||
text-align: end; | ||
text-decoration:none; | ||
font-size: 13px; | ||
} | ||
.login-button{ | ||
margin-top: 10px; | ||
width: 357px; | ||
font-size: 16px; | ||
color: white; | ||
padding: 17px; | ||
background-color: var(--primary-color); | ||
border: none; | ||
border-radius: 9px; | ||
margin-bottom: 20px; | ||
} | ||
.login-button:hover{ | ||
background-color: var(--hover-color); | ||
cursor: pointer; | ||
} | ||
|
||
.dont-have-account{ | ||
font-size: 15px; | ||
font-weight: 600; | ||
text-align: center; | ||
} |
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,30 @@ | ||
<%# This file contains all the color themes of ontoportal alliance%> | ||
<% if (ui_theme = $UI_THEME.to_s.parameterize).present? && File.exists?(Rails.root.join('app', 'assets', 'stylesheets', 'themes', ui_theme)) | ||
case ui_theme | ||
when "agroportal" %> | ||
:root{ | ||
--primary-color: #31B404; | ||
--hover-color: #40C811; | ||
--secondary-color: #ffc107; | ||
} | ||
<% when "stageportal" %> | ||
:root{ | ||
--primary-color: #76A7CC; | ||
--hover-color: #6B96B7; | ||
--secondary-color: #ffc107; | ||
} | ||
<% when "bioportal" %> | ||
:root{ | ||
--primary-color: #76A7CC; | ||
--hover-color: #31B404; | ||
--secondary-color: #ffc107; | ||
} | ||
<% when "ontoportal" %> | ||
:root{ | ||
--primary-color: #6E98A2; | ||
--hover-color: #7BABB6; | ||
--secondary-color: #ffc107; | ||
} | ||
<%# Here to add a new theme ... %> | ||
<% end %> | ||
<% end %> |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
- @title = "Login" | ||
= form_for(:user, :url => {:controller => 'login',:action=>'create'}) do |f| | ||
- unless @errors.nil? | ||
%div{:style => "color:red;"} | ||
Errors On Form | ||
%ul | ||
- for error in @errors | ||
%li= error | ||
.d-flex.justify-content-center | ||
.login-form | ||
%p.login-input-title Username or Email | ||
= text_field 'user', 'username', class: "login-input email-input", placeholder: "Enter your password" | ||
%p.login-input-title Password | ||
= password_field 'user','password', :autocomplete => "off", class: "login-input password-input", placeholder: "Enter your password" | ||
%a.login-forgot-password{:href => "/lost_pass"} | ||
%p Forgot password? | ||
%input.login-button{"data-disable-with" => "Login", :name => "commit", :type => "submit", :value => "Login"}/ | ||
%p.dont-have-account | ||
Don't have an account? | ||
%a.text-decoration-none{:href => new_user_path} Register |