-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate to latest Play version - addresses #92
Integrates the language switcher on the main and login pages
- Loading branch information
Showing
12 changed files
with
91 additions
and
68 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
1 change: 0 additions & 1 deletion
1
ui/apps/translatr/src/app/modules/pages/main-page/main-page.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
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
1 change: 0 additions & 1 deletion
1
...b/modules/nav/navbar/auth-bar-language-switcher/auth-bar-language-switcher.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,5 +1,4 @@ | ||
<button | ||
*ngIf="active" | ||
[mat-menu-trigger-for]="languageSelector" | ||
mat-icon-button | ||
> | ||
|
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 |
---|---|---|
|
@@ -19,6 +19,10 @@ | |
|
||
.mat-toolbar { | ||
z-index: 2; | ||
|
||
.mat-toolbar-row { | ||
color: white; | ||
} | ||
} | ||
|
||
.elevated .mat-toolbar-row { | ||
|
51 changes: 32 additions & 19 deletions
51
ui/libs/translatr-components/src/lib/modules/pages/login-page/login-page.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,24 +1,37 @@ | ||
<ng-container *transloco="let t"> | ||
<app-navbar [page]="t('login.title')"></app-navbar> | ||
<app-navbar [page]="t('login.title')" [overlay]="true" [elevated]="false"> | ||
<app-auth-bar-language-switcher></app-auth-bar-language-switcher> | ||
</app-navbar> | ||
|
||
<div class="wrapper"> | ||
<mat-card class="login"> | ||
<div class="info"> | ||
<mat-icon>account_circle</mat-icon> | ||
<span transloco="login.text">Sign in with any of the given providers</span> | ||
<div class="main-container"> | ||
<header class="header header-graphic"> | ||
<div class="container title"> | ||
<div class="content"> | ||
<mat-icon class="image">account_circle</mat-icon> | ||
<div class="text"> | ||
<h1 class="page" transloco="login.title">Login Page</h1> | ||
<p class="description" transloco="login.text">Sign in with any of the given providers</p> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="options"> | ||
<a | ||
*ngFor="let provider of providers$ | async" | ||
[ngClass]="'client-' + provider.key" | ||
href="{{endpointUrl}}{{provider.url}}{{redirectUri$ | async}}" | ||
mat-button | ||
class="client" | ||
> | ||
<fa-icon [icon]="icons[provider.key]"></fa-icon> | ||
{{names[provider.key]}} | ||
</a> | ||
</div> | ||
</mat-card> | ||
</header> | ||
|
||
<div class="wrapper"> | ||
<mat-card class="login"> | ||
<mat-card-title transloco="authclients.title">Identity Providers</mat-card-title> | ||
<mat-card-content class="options"> | ||
<a | ||
*ngFor="let provider of providers$ | async" | ||
[ngClass]="'client-' + provider.key" | ||
href="{{endpointUrl}}{{provider.url}}{{redirectUri$ | async}}" | ||
mat-button | ||
class="client" | ||
> | ||
<fa-icon [icon]="icons[provider.key]"></fa-icon> | ||
{{names[provider.key]}} | ||
</a> | ||
</mat-card-content> | ||
</mat-card> | ||
</div> | ||
</div> | ||
</ng-container> |
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