diff --git a/frontend/src/app/app.routes.ts b/frontend/src/app/app.routes.ts index 39c5b1c..397d7c9 100644 --- a/frontend/src/app/app.routes.ts +++ b/frontend/src/app/app.routes.ts @@ -61,4 +61,9 @@ export const routes: Routes = [ loadComponent: () => import('./feature/lootboxes/lootbox-opening/lootbox-opening.component'), canActivate: [authGuard], }, + { + path: 'game/dice', + loadComponent: () => import('./feature/game/dice/dice.component').then(m => m.DiceComponent), + canActivate: [authGuard], + }, ]; diff --git a/frontend/src/app/feature/game/dice/dice.component.html b/frontend/src/app/feature/game/dice/dice.component.html new file mode 100644 index 0000000..4278fb1 --- /dev/null +++ b/frontend/src/app/feature/game/dice/dice.component.html @@ -0,0 +1,52 @@ +
Rolled Value: {{ rolledValue() }}
+ @if (win()) { +You Won! Payout: {{ payout() | currency:'EUR':'symbol':'1.2-2' }}
+ } @else { +You Lost.
+ } +