comfirmation modal for deposit and refactoring
This commit is contained in:
parent
63db07b6ae
commit
caf2794489
8 changed files with 74 additions and 32 deletions
|
@ -28,7 +28,7 @@
|
|||
>
|
||||
<div class="absolute bottom-4 left-4 right-4">
|
||||
<h4 class="game-heading">{{ game.name }}</h4>
|
||||
<button class="button-base w-full py-2">Jetzt Spielen</button>
|
||||
<button class="button-primary w-full py-2">Jetzt Spielen</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -47,7 +47,7 @@
|
|||
>
|
||||
<div class="absolute bottom-4 left-4 right-4">
|
||||
<h4 class="game-heading">{{ game.name }}</h4>
|
||||
<button class="button-base w-full py-2">Jetzt Spielen</button>
|
||||
<button class="button-primary w-full py-2">Jetzt Spielen</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -60,7 +60,7 @@
|
|||
<div class="card p-4">
|
||||
<h3 class="section-heading text-xl mb-4">Konto</h3>
|
||||
<div class="space-y-4">
|
||||
<button class="button-base w-full py-2" (click)="openDepositModal()">Einzahlen</button>
|
||||
<button class="button-primary w-full py-2" (click)="openDepositModal()">Einzahlen</button>
|
||||
<app-deposit [isOpen]="isDepositModalOpen" (close)="closeDepositModal()"></app-deposit>
|
||||
<button class="bg-deep-blue-light hover:bg-deep-blue-contrast w-full py-2 rounded">
|
||||
Transaktionen
|
||||
|
@ -71,6 +71,8 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<app-confirmation></app-confirmation>
|
||||
|
||||
<div class="card p-4">
|
||||
<h3 class="section-heading text-xl mb-4">Letzte Transaktionen</h3>
|
||||
<div class="space-y-3">
|
||||
|
|
|
@ -4,11 +4,12 @@ import { CurrencyPipe, NgFor } from '@angular/common';
|
|||
import { Game } from '../../model/Game';
|
||||
import { Transaction } from '../../model/Transaction';
|
||||
import { DepositComponent } from '../deposit/deposit.component';
|
||||
import {ConfirmationComponent} from "../../shared/components/confirmation/confirmation.component";
|
||||
|
||||
@Component({
|
||||
selector: 'app-homepage',
|
||||
standalone: true,
|
||||
imports: [NavbarComponent, CurrencyPipe, NgFor, DepositComponent],
|
||||
imports: [NavbarComponent, CurrencyPipe, NgFor, DepositComponent, ConfirmationComponent],
|
||||
templateUrl: './home.component.html',
|
||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||
})
|
||||
|
|
Reference in a new issue