-
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.
✨ #48: Coming Soon Seite mit dynamischen Punkten definiert
- Loading branch information
1 parent
84ad3d5
commit 4f707ec
Showing
6 changed files
with
110 additions
and
10 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 |
---|---|---|
@@ -1,2 +1,16 @@ | ||
<p>coming-soon works!</p> | ||
<div> | ||
<p>Hier findet ihr bald die Seite des in Ilmenau ansässigen „Buntnis“.</p> | ||
<h3>Fortschritt:</h3> | ||
<mat-progress-bar [value]="currentProgress" mode="determinate"></mat-progress-bar> | ||
<ng-container *ngFor="let stepGroup of progressStepGroups"> | ||
<h4>{{stepGroup.name}}</h4> | ||
<mat-list> | ||
<mat-list-item *ngFor="let step of stepGroup.steps"> | ||
<span matListItemTitle>{{step.schritt}}</span> | ||
<span matListItemMeta>{{step.beschreibung}}</span> | ||
<mat-checkbox [ngModel]="step.erledigt ?? false" disabled></mat-checkbox> | ||
</mat-list-item> | ||
</mat-list> | ||
</ng-container> | ||
</div> | ||
<img ngSrc="assets/2023/huetchen.png" id="huetchen" height="934" width="1209" alt="Ein Buntes Hütchen repräsentiert den Aufbau der Seite"> |
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 |
---|---|---|
|
@@ -11,7 +11,7 @@ | |
|
||
#huetchen { | ||
width: 40%; | ||
height: auto; | ||
height: fit-content; | ||
float: right; | ||
} | ||
} |
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,10 +1,77 @@ | ||
import { Component } from '@angular/core'; | ||
import { ProgressStepGroup } from './types/progress-step.type'; | ||
|
||
@Component({ | ||
selector: 'app-coming-soon', | ||
templateUrl: './coming-soon.component.html', | ||
styleUrls: ['./coming-soon.component.scss'] | ||
styleUrls: ['./coming-soon.component.scss'], | ||
}) | ||
export class ComingSoonComponent { | ||
progressStepGroups: ProgressStepGroup[] = [ | ||
{ | ||
name: 'Inhalte', | ||
steps: [ | ||
{ | ||
schritt: 'Gestaltung der Startseite', | ||
}, | ||
{ | ||
schritt: 'Text für Startseite', | ||
}, | ||
{ | ||
schritt: 'Unterseiten definiert', | ||
}, | ||
{ | ||
schritt: 'Texte für Unterseiten', | ||
}, | ||
{ | ||
schritt: 'Querverlinkungen', | ||
}, | ||
], | ||
}, | ||
{ | ||
name: 'Anwendungsrahmen', | ||
steps: [ | ||
{ | ||
schritt: 'Header', | ||
link: 'https://github.com/Hirschfuchs/buntnis-ilmenau.de/issues/29', | ||
}, | ||
{ | ||
schritt: 'Impressum & Datenschutz', | ||
link: 'https://github.com/Hirschfuchs/buntnis-ilmenau.de/issues/30', | ||
}, | ||
], | ||
}, | ||
{ | ||
name: 'Technisches', | ||
steps: [ | ||
{ | ||
schritt: 'Deployment & Repository', | ||
link: 'https://github.com/Hirschfuchs/buntnis-ilmenau.de/issues/3', | ||
erledigt: true, | ||
}, | ||
{ | ||
schritt: 'Tests', | ||
link: 'https://github.com/Hirschfuchs/buntnis-ilmenau.de/issues/12', | ||
erledigt: true, | ||
}, | ||
{ | ||
schritt: 'E2E-Tests', | ||
link: 'https://github.com/Hirschfuchs/buntnis-ilmenau.de/issues/56', | ||
erledigt: false, | ||
}, | ||
], | ||
}, | ||
]; | ||
|
||
protected get currentProgress(): number { | ||
let erledigte = 0; | ||
let gesamt = 0; | ||
this.progressStepGroups.forEach((group) => | ||
group.steps.forEach((step) => { | ||
if (step.erledigt) erledigte++; | ||
gesamt++; | ||
}), | ||
); | ||
return (erledigte * 100) / gesamt; | ||
} | ||
} |