forked from ceph/ceph
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from rhcs-dashboard/branding-4.0-login
Adds branding for login screen
- Loading branch information
Showing
10 changed files
with
189 additions
and
110 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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<cd-navigation *ngIf="!isLoginActive()"></cd-navigation> | ||
<div class="container-fluid" | ||
[ngClass]="{'full-height':isLoginActive(), 'dashboard':isDashboardPage()} "> | ||
[ngClass]="{'dashboard':isDashboardPage()} "> | ||
<cd-breadcrumbs></cd-breadcrumbs> | ||
<router-outlet></router-outlet> | ||
</div> |
154 changes: 90 additions & 64 deletions
154
src/pybind/mgr/dashboard/frontend/src/app/core/auth/login/login.component.html
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,69 +1,95 @@ | ||
<div class="login" | ||
*ngIf="isLoginActive"> | ||
<div class="row full-height vertical-align"> | ||
<div class="col-sm-6 hidden-xs"> | ||
<img src="assets/Ceph_Logo_Stacked_RGB_White_120411_fa_256x256.png" | ||
alt="Ceph" | ||
class="pull-right"> | ||
</div> | ||
<div class="col-xs-10 col-sm-4 col-lg-3 col-xs-offset-1 col-sm-offset-0 col-md-offset-0 col-lg-offset-0"> | ||
<h1 i18n="The welcome message on the login page">Welcome to Ceph!</h1> | ||
<form name="loginForm" | ||
(ngSubmit)="login()" | ||
#loginForm="ngForm" | ||
novalidate> | ||
|
||
<!-- I18N --> | ||
<div class="form-group has-feedback"> | ||
<cd-language-selector [isDropdown]="false"></cd-language-selector> | ||
</div> | ||
|
||
<!-- Username --> | ||
<div class="form-group has-feedback" | ||
[ngClass]="{'has-error': (loginForm.submitted || username.dirty) && username.invalid}"> | ||
<input name="username" | ||
[(ngModel)]="model.username" | ||
#username="ngModel" | ||
type="text" | ||
placeholder="Enter your username..." | ||
class="form-control" | ||
required | ||
autofocus> | ||
<div class="help-block" | ||
*ngIf="(loginForm.submitted || username.dirty) && username.invalid" | ||
i18n>Username is required</div> | ||
</div> | ||
|
||
<!-- Password --> | ||
<div class="form-group has-feedback" | ||
[ngClass]="{'has-error': (loginForm.submitted || password.dirty) && password.invalid}"> | ||
<div class="input-group"> | ||
<input id="password" | ||
name="password" | ||
[(ngModel)]="model.password" | ||
#password="ngModel" | ||
type="password" | ||
placeholder="Enter your password..." | ||
class="form-control" | ||
required> | ||
<span class="input-group-btn"> | ||
<button type="button" | ||
class="btn btn-default btn-password" | ||
cdPasswordButton="password"> | ||
</button> | ||
</span> | ||
<div class="login" *ngIf="isLoginActive"> | ||
<div class="login-pf-page"> | ||
<div class="container-fluid"> | ||
<div class="row"> | ||
<div class="col-sm-8 col-sm-offset-2 col-md-6 col-md-offset-3 col-lg-6 col-lg-offset-3"> | ||
<header class="login-pf-page-header"> | ||
<img class="login-pf-brand" src="branding/assets/RHCSD-Login-Logo.svg" alt="RHCS" /> | ||
</header> | ||
<div class="row"> | ||
<div class="col-sm-10 col-sm-offset-1 col-md-8 col-md-offset-2 col-lg-6 col-lg-offset-3"> | ||
<div class="card-pf"> | ||
<form name="loginForm" | ||
(ngSubmit)="login()" | ||
#loginForm="ngForm" | ||
novalidate> | ||
<header class="login-pf-header"> | ||
<div class="form-group has-feedback selectpicker"> | ||
<cd-language-selector [isDropdown]="false"></cd-language-selector> | ||
</div> | ||
<h1 i18n="The welcome message on the login page">Log In to Your Account</h1> | ||
</header> | ||
<div class="form-group form-group has-feedback" | ||
[ngClass]="{'has-error': (loginForm.submitted || username.dirty) && username.invalid}"> | ||
<label class="sr-only" for="email">Email address</label> | ||
<input name="username" | ||
[(ngModel)]="model.username" | ||
#username="ngModel" | ||
type="text" | ||
placeholder="Username" | ||
class="form-control" | ||
required | ||
autofocus> | ||
<div class="help-block" *ngIf="(loginForm.submitted || username.dirty) && username.invalid"> | ||
Username is required | ||
</div> | ||
</div> | ||
<div class="form-group has-feedback" | ||
[ngClass]="{'has-error': (loginForm.submitted || password.dirty) && password.invalid}"> | ||
<label class="sr-only" for="password">Password | ||
</label> | ||
<input id="password" | ||
name="password" | ||
[(ngModel)]="model.password" | ||
#password="ngModel" | ||
type="password" | ||
placeholder="Password" | ||
class="form-control" | ||
required> | ||
<div class="help-block" | ||
*ngIf="(loginForm.submitted || password.dirty) && password.invalid"> | ||
Password is required | ||
</div> | ||
</div> | ||
<button type="submit" class="btn btn-primary btn-block btn-lg" value="Login">Login</button> | ||
</form> | ||
<p class="login-pf-signup"></p> | ||
</div> | ||
<div class="login-logo"> | ||
<img src="branding/assets/Logo_RH_RGB_Reverse.png" class="redhat_logo" alt="Redhat"> | ||
</div> | ||
</div> | ||
<footer class="login-pf-page-footer"> | ||
<ul class="login-pf-page-footer-links list-unstyled"> | ||
<li> | ||
<a class="login-pf-page-footer-link" | ||
href="https://www.redhat.com/en/about/all-policies-guidelines"> | ||
Terms of Use | ||
</a> | ||
</li> | ||
<li> | ||
<a class="login-pf-page-footer-link" | ||
href="https://access.redhat.com/documentation/en-us/red_hat_ceph_storage/"> | ||
Help | ||
</a> | ||
</li> | ||
<li> | ||
<a class="login-pf-page-footer-link" | ||
href="https://www.redhat.com/en/about/privacy-policy"> | ||
Privacy Policy | ||
</a> | ||
</li> | ||
</ul> | ||
</footer> | ||
</div> | ||
<div class="help-block" | ||
*ngIf="(loginForm.submitted || password.dirty) && password.invalid" | ||
i18n>Password is required</div> | ||
<!-- row --> | ||
</div> | ||
|
||
<input type="submit" | ||
class="btn btn-primary btn-block" | ||
[disabled]="loginForm.invalid" | ||
value="Login" | ||
i18n-value> | ||
</form> | ||
<!-- col --> | ||
</div> | ||
<!-- row --> | ||
</div> | ||
<!-- container --> | ||
</div> | ||
<!-- login-pf-page --> | ||
<!-- login-pf-page --> | ||
</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
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,15 @@ | ||
@import '../../../../branding/branding.scss'; | ||
|
||
.form-control { | ||
width: 22%; | ||
float: right; | ||
border: 0; | ||
padding: 0; | ||
box-shadow: none; | ||
color: $color-selected-language; | ||
font-weight: lighter; | ||
} | ||
|
||
.form-control option { | ||
color: $color-languages; | ||
} |
Binary file added
BIN
+8.24 KB
src/pybind/mgr/dashboard/frontend/src/branding/assets/Logo_RH_RGB_Reverse.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.