feat(blackjack): add animated number component and usage
This commit is contained in:
parent
a2f1a40931
commit
4b70a4ac4a
11 changed files with 127 additions and 63 deletions
|
@ -6,19 +6,6 @@
|
|||
<app-dealer-hand [cards]="dealerCards()"></app-dealer-hand>
|
||||
<app-player-hand [cards]="playerCards()"></app-player-hand>
|
||||
|
||||
@if (isActionInProgress()) {
|
||||
<div class="flex justify-center">
|
||||
<div
|
||||
class="card p-4 flex items-center gap-3 animate-pulse bg-deep-blue-light border border-deep-blue-light/50"
|
||||
>
|
||||
<div
|
||||
class="w-5 h-5 rounded-full border-2 border-white border-t-transparent animate-spin"
|
||||
></div>
|
||||
<span>{{ currentAction() }}</span>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
|
||||
@if (gameInProgress()) {
|
||||
<app-game-controls
|
||||
[playerCards]="playerCards()"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue