diff --git a/src/app/app.module.ts b/src/app/app.module.ts index fe1940b..9cfc493 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -78,6 +78,7 @@ import { QuizEffects } from './state/quiz/quiz.effects'; import { PictureEffects } from './state/picture/picture.effects'; import { DeletionEffects } from './state/deletion/deletion.effects'; import { MAT_DATE_LOCALE } from '@angular/material/core'; +import { MatTabsModule } from '@angular/material/tabs'; registerLocaleData(localeDeCh); @@ -205,6 +206,7 @@ export function MSALGuardConfigFactory(): MsalGuardConfiguration { MatInputModule, MatProgressBarModule, NgOptimizedImage, + MatTabsModule, ], providers: [ { diff --git a/src/app/components/dashboard/dashboard.component.html b/src/app/components/dashboard/dashboard.component.html index 5d08a5a..2e0e8be 100644 --- a/src/app/components/dashboard/dashboard.component.html +++ b/src/app/components/dashboard/dashboard.component.html @@ -4,73 +4,83 @@ - -
- Chärtli -
-
-
Meine Chärtli
-
- {{ dashboard.myUniqueCardsCount }} / - {{ dashboard.allCardsCount }} + + +
+
+
+
Meine Chärtli
+
+ {{ dashboard.myUniqueCardsCount }} / + {{ dashboard.allCardsCount }} +
+
+ +
-
- +
+
Mein Rang
+
+ {{ myRank$ | async }} / {{ totalUsers$ | async }} +
-
Mein Rang
-
- {{ myRank$ | async }} / {{ totalUsers$ | async }} -
+
Top 10
+
    +
  1. + {{ ranking.displayName }} + [{{ ranking.uniqueCardsCount }}] +
  2. +
-
-
-
Top 10
-
    -
  1. - {{ ranking.displayName }} - [{{ ranking.uniqueCardsCount }}] -
  2. -
-
-
-
Total ausgeschüttete Chärtli
-
{{ dashboard.totalCardQuantity | number }}
-
-
-
Jüngste Ausschüttung
-
- {{ dashboard.lastDistribution | date: 'dd. LLLL yyyy, HH:mm' }} Uhr +
+
Total ausgeschüttete Chärtli
+
{{ dashboard.totalCardQuantity | number }}
+
+
+
Jüngste Ausschüttung
+
+ {{ dashboard.lastDistribution | date: 'dd. LLLL yyyy, HH:mm' }} Uhr +
- Quiz -
-
-
Meine Punkte
-
- {{ (userRankingQuiz$ | async)?.quizScore }} + + +
+
+
+
Meine Punkte
+
+ {{ (userRankingQuiz$ | async)?.quizScore }} +
+
+
+
Mein Rang
+
+ {{ (userRankingQuiz$ | async)?.rank }} / {{ totalUsers$ | async }} +
-
Mein Rang
-
- {{ (userRankingQuiz$ | async)?.rank }} / {{ totalUsers$ | async }} -
+
Top 10
+
    +
  1. + {{ ranking.displayName }} + [{{ ranking.quizScore }}] +
  2. +
-
-
Top 10
-
    -
  1. - {{ ranking.displayName }} - [{{ ranking.quizScore }}] -
  2. -
-
-
- + + diff --git a/src/styles/_overrides.scss b/src/styles/_overrides.scss index 1462bae..8d6a8dd 100644 --- a/src/styles/_overrides.scss +++ b/src/styles/_overrides.scss @@ -45,3 +45,12 @@ .mat-mdc-dialog-container .mat-mdc-dialog-content { padding: 16px !important; } + +// Button toggle +.mat-button-toggle-appearance-standard { + background-color: #1e1e1e !important; + + &.mat-button-toggle-checked { + background-color: #0093d9 !important; + } +}