design loading dialog component
This commit is contained in:
parent
2898c3ee84
commit
fa4a2c6d04
9 changed files with 82 additions and 11 deletions
|
|
@ -1 +1,13 @@
|
||||||
<p>loading-dialog works!</p>
|
@if (loginService.isBtnDisabled) {
|
||||||
|
<div class="loading-dialog">
|
||||||
|
<div id="loading" class="loader"></div>
|
||||||
|
<div id="loadingText" class="loading-text">
|
||||||
|
<p>
|
||||||
|
{{ "login.loginDialog0" | translate }}
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
{{ "login.loginDialog1" | translate }}
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,49 @@
|
||||||
|
.loading-dialog {
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
width: 100vw;
|
||||||
|
height: 100vh;
|
||||||
|
backdrop-filter: blur(5px);
|
||||||
|
background-color: rgba($color: #000, $alpha: 0.2);
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
z-index: 999;
|
||||||
|
}
|
||||||
|
|
||||||
|
.loader {
|
||||||
|
position: fixed;
|
||||||
|
border: 16px solid #fff;
|
||||||
|
border-top: 16px solid #444df2;
|
||||||
|
border-radius: 50%;
|
||||||
|
width: 50px;
|
||||||
|
height: 50px;
|
||||||
|
animation: spin 2s linear infinite;
|
||||||
|
margin: auto;
|
||||||
|
margin-top: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.loading-text {
|
||||||
|
position: fixed;
|
||||||
|
text-align: center;
|
||||||
|
margin-top: 200px;
|
||||||
|
color: #fff;
|
||||||
|
text-shadow: 3px 3px 3px #000;
|
||||||
|
p {
|
||||||
|
font-size: 21px;
|
||||||
|
font-weight: 400px;
|
||||||
|
margin-bottom: 6px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes spin {
|
||||||
|
0% {
|
||||||
|
transform: rotate(0deg);
|
||||||
|
}
|
||||||
|
100% {
|
||||||
|
transform: rotate(360deg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -1,12 +1,14 @@
|
||||||
import { Component } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
import { loginService } from '../../../service/login.service';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-loading-dialog',
|
selector: 'app-loading-dialog',
|
||||||
standalone: true,
|
standalone: true,
|
||||||
imports: [],
|
imports: [TranslateModule],
|
||||||
templateUrl: './loading-dialog.component.html',
|
templateUrl: './loading-dialog.component.html',
|
||||||
styleUrl: './loading-dialog.component.scss'
|
styleUrl: './loading-dialog.component.scss',
|
||||||
})
|
})
|
||||||
export class LoadingDialogComponent {
|
export class LoadingDialogComponent {
|
||||||
|
constructor(public loginService: loginService) {}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -113,3 +113,4 @@
|
||||||
</div>
|
</div>
|
||||||
<app-footer></app-footer>
|
<app-footer></app-footer>
|
||||||
</section>
|
</section>
|
||||||
|
<app-loading-dialog></app-loading-dialog>
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@ import { FooterComponent } from '../../../shared/components/login/footer/footer.
|
||||||
import { CommonModule } from '@angular/common';
|
import { CommonModule } from '@angular/common';
|
||||||
import { StartHeaderComponent } from '../../../shared/components/login/start-header/start-header.component';
|
import { StartHeaderComponent } from '../../../shared/components/login/start-header/start-header.component';
|
||||||
import { TranslateModule } from '@ngx-translate/core';
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
import { LoadingDialogComponent } from '../loading-dialog/loading-dialog.component';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-login',
|
selector: 'app-login',
|
||||||
|
|
@ -19,6 +20,7 @@ import { TranslateModule } from '@ngx-translate/core';
|
||||||
RouterLink,
|
RouterLink,
|
||||||
StartHeaderComponent,
|
StartHeaderComponent,
|
||||||
TranslateModule,
|
TranslateModule,
|
||||||
|
LoadingDialogComponent,
|
||||||
],
|
],
|
||||||
})
|
})
|
||||||
export class LoginComponent {
|
export class LoginComponent {
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
<app-login></app-login>
|
<app-login></app-login>
|
||||||
<app-register></app-register>
|
<app-register></app-register>
|
||||||
<app-choose-avatar ></app-choose-avatar>
|
<app-choose-avatar></app-choose-avatar>
|
||||||
<app-password-forget></app-password-forget>
|
<app-password-forget></app-password-forget>
|
||||||
<app-password-reset></app-password-reset>
|
<app-password-reset></app-password-reset>
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@ import { PasswordForgetComponent } from './password-forget/password-forget.compo
|
||||||
import { PasswordResetComponent } from './password-reset/password-reset.component';
|
import { PasswordResetComponent } from './password-reset/password-reset.component';
|
||||||
import { CommonModule } from '@angular/common';
|
import { CommonModule } from '@angular/common';
|
||||||
import { RouterLink } from '@angular/router';
|
import { RouterLink } from '@angular/router';
|
||||||
|
import { LoadingDialogComponent } from './loading-dialog/loading-dialog.component';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-main-login',
|
selector: 'app-main-login',
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,9 @@
|
||||||
"errorText3": "*Ungültige Anmeldeinformationen.",
|
"errorText3": "*Ungültige Anmeldeinformationen.",
|
||||||
"errorText4": "*Zuviele fehlgeschlagener Anmeldeversuche.",
|
"errorText4": "*Zuviele fehlgeschlagener Anmeldeversuche.",
|
||||||
"errorText5": "*Bitte Überprüfe deine Eingaben.",
|
"errorText5": "*Bitte Überprüfe deine Eingaben.",
|
||||||
"errorText6": "*Bitte versuchen Sie es später erneut."
|
"errorText6": "*Bitte versuchen Sie es später erneut.",
|
||||||
|
"loginDialog0": "Einloggen",
|
||||||
|
"loginDialog1": "Bitte warten..."
|
||||||
},
|
},
|
||||||
|
|
||||||
"createAccount": {
|
"createAccount": {
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,9 @@
|
||||||
"errorText3": "*Invalid login credentials.",
|
"errorText3": "*Invalid login credentials.",
|
||||||
"errorText4": "*Too many failed login attempts.",
|
"errorText4": "*Too many failed login attempts.",
|
||||||
"errorText5": "*Please check your entries.",
|
"errorText5": "*Please check your entries.",
|
||||||
"errorText6": "*Please try again later."
|
"errorText6": "*Please try again later.",
|
||||||
|
"loginDialog0": "Logging in",
|
||||||
|
"loginDialog1": "Please wait..."
|
||||||
},
|
},
|
||||||
|
|
||||||
"createAccount": {
|
"createAccount": {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue