-
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.
Merge branch 'main' into feature/eatdrink
- Loading branch information
Showing
42 changed files
with
475 additions
and
169 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,30 @@ | ||
{ | ||
"$schema": "./node_modules/@angular/service-worker/config/schema.json", | ||
"index": "/index.html", | ||
"assetGroups": [ | ||
{ | ||
"name": "app", | ||
"installMode": "prefetch", | ||
"resources": { | ||
"files": [ | ||
"/favicon.ico", | ||
"/index.html", | ||
"/manifest.webmanifest", | ||
"/*.css", | ||
"/*.js" | ||
] | ||
} | ||
}, | ||
{ | ||
"name": "assets", | ||
"installMode": "lazy", | ||
"updateMode": "prefetch", | ||
"resources": { | ||
"files": [ | ||
"/assets/**", | ||
"/*.(svg|cur|jpg|jpeg|png|apng|webp|avif|gif|otf|ttf|woff|woff2)" | ||
] | ||
} | ||
} | ||
] | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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,2 +1,5 @@ | ||
<app-header></app-header> | ||
<main> | ||
<router-outlet></router-outlet> | ||
</main> | ||
<app-footer></app-footer> |
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,4 @@ | ||
main { | ||
margin-top: 5rem; | ||
min-height: calc(100vh - 45px - 275px); | ||
} |
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,58 +1,44 @@ | ||
<div class="container"> | ||
<div class="container"> | ||
<div class="row justify-content-center"> | ||
<div class="col-sm-8 col-md-6 col-lg-4"> | ||
<div class="auth-form"> | ||
<app-logo class="logo"></app-logo> | ||
<div class="form-content"> | ||
<form [formGroup]="authForm"> | ||
<div class="form-group"> | ||
<form [formGroup]="authForm" class="row g-3"> | ||
<div class="form-group col-12"> | ||
<label for="username">Benutzername: </label> | ||
<input id="username" type="text" class="form-control" formControlName="username" pattern="[A-Za-z0-9-_]{3,}"> | ||
<input id="username" type="text" class="form-control" formControlName="username"> | ||
</div> | ||
<div class="form-group pw-field"> | ||
<div class="form-group col-12"> | ||
<label for="password">Passwort: </label> | ||
<input id="password" type="password" class="form-control" minlength="8" formControlName="password"> | ||
<input id="password" type="password" class="form-control" formControlName="password"> | ||
</div> | ||
<div *ngIf="isRegistration" class="form-group pw-field"> | ||
<div *ngIf="isRegistration" class="form-group col-12"> | ||
<label for="confirmPassword">Passwort wiederholen: </label> | ||
<input id="confirmPassword" type="password" minlength="8" class="form-control" formControlName="confirmPassword"> | ||
</div> | ||
</form> | ||
|
||
<div *ngIf="isRegistration; else isLogin" class="text-center"> | ||
<p class="password-error-message" *ngIf="showError">{{ errorMessage }}</p> | ||
<button (click)="register()" class="btn btn-primary submit-button" [disabled]="authForm.invalid">Account erstellen</button> | ||
<div class="change"> | ||
<p>Du hast schon einen Sygotchi-Account? | ||
<button (click)="changeView()" class="btn btn-link">Zurück zum Login</button> | ||
</p> | ||
<a style="margin-right: 5px;" routerLink="/impressum"> | ||
<span>Impressum</span> | ||
</a> | ||
<a style="margin-right: 5px;" routerLink="/dsgvo"> | ||
<span>Datenschutz</span> | ||
</a> | ||
<input id="confirmPassword" type="password" class="form-control" formControlName="confirmPassword"> | ||
</div> | ||
</div> | ||
<ng-template #isLogin> | ||
<div class="text-center"> | ||
<p class="password-error-message" *ngIf="showError">{{ errorMessage }}</p> | ||
<button (click)="login()" class="btn btn-primary submit-button">Login</button> | ||
<div class="change"> | ||
<p>Noch keinen Sygotchi-Account? | ||
<button (click)="changeView()" class="btn btn-link">Account erstellen</button> | ||
</p> | ||
<a style="margin-right: 5px;" routerLink="/impressum"> | ||
<span>Impressum</span> | ||
</a> | ||
<a style="margin-right: 5px;" routerLink="/dsgvo"> | ||
<span>Datenschutz</span> | ||
</a> | ||
</div> | ||
|
||
<div *ngIf="isRegistration; else isLogin" class="text-center col-12"> | ||
<p class="text-danger" *ngIf="showError">{{ errorMessage }}</p> | ||
<button (click)="register()" class="btn btn-primary submit-button " type="submit" [disabled]="authForm.invalid">Account erstellen</button> | ||
<div class="change"> | ||
<span>Du hast schon einen Sygotchi-Account?</span><br> | ||
<button (click)="changeView()" class="btn btn-link">Zurück zum Login</button> | ||
</div> | ||
</div> | ||
</ng-template> | ||
<ng-template #isLogin> | ||
<div class="text-center col-12"> | ||
<p class="text-danger" *ngIf="showError">{{ errorMessage }}</p> | ||
<button (click)="login()" class="btn btn-primary submit-button " type="submit">Login</button> | ||
<div class="change"> | ||
<span>Noch keinen Sygotchi-Account?</span><br> | ||
<button (click)="changeView()" class="btn btn-link">Account erstellen</button> | ||
</div> | ||
</div> | ||
</ng-template> | ||
</form> | ||
</div> | ||
</div> | ||
</div> | ||
</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,32 +1,3 @@ | ||
.auth-form { | ||
margin-top: 50px; | ||
} | ||
|
||
.form-content { | ||
margin-top: 30px; | ||
} | ||
|
||
input { | ||
width: 100%; | ||
} | ||
|
||
.pw-field { | ||
margin-top: 15px; | ||
} | ||
|
||
.submit-button { | ||
margin-top: 15px; | ||
} | ||
|
||
.change { | ||
bottom: 0; | ||
position: absolute; | ||
|
||
& button { | ||
width: 100%; | ||
} | ||
} | ||
|
||
.password-error-message { | ||
color: red; | ||
padding-top: 20px; | ||
} |
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.