style: Format code for readability and consistency
Some checks failed
Some checks failed
This commit is contained in:
parent
775205b54c
commit
7bec17dd52
3 changed files with 67 additions and 26 deletions
|
@ -13,28 +13,35 @@ import { GameState } from '../../enum/gameState';
|
|||
<h2 class="modal-heading" [class]="getResultClass()">{{ getResultTitle() }}</h2>
|
||||
<p class="py-2 text-text-secondary mb-4">{{ getResultMessage() }}</p>
|
||||
|
||||
<div class="bg-deep-blue-light/50 rounded-lg p-5 mb-6 shadow-inner border border-deep-blue-light/30">
|
||||
<div
|
||||
class="bg-deep-blue-light/50 rounded-lg p-5 mb-6 shadow-inner border border-deep-blue-light/30"
|
||||
>
|
||||
<div class="grid grid-cols-2 gap-4">
|
||||
<div class="text-text-secondary">Einsatz:</div>
|
||||
<div class="font-medium text-right">{{ amount | currency:'EUR' }}</div>
|
||||
<div class="font-medium text-right">{{ amount | currency: 'EUR' }}</div>
|
||||
|
||||
<div class="text-text-secondary">
|
||||
{{ isDraw ? 'Zurückgegeben:' : isWin ? 'Gewonnen:' : 'Verloren:' }}
|
||||
</div>
|
||||
<div class="font-medium text-right" [ngClass]="{
|
||||
'text-emerald': isWin,
|
||||
'text-accent-red': isLoss,
|
||||
'text-yellow-400': isDraw
|
||||
}">
|
||||
{{ isLoss ? '-' : '+' }}{{ isWin ? (amount * 2) : amount | currency:'EUR' }}
|
||||
<div
|
||||
class="font-medium text-right"
|
||||
[ngClass]="{
|
||||
'text-emerald': isWin,
|
||||
'text-accent-red': isLoss,
|
||||
'text-yellow-400': isDraw,
|
||||
}"
|
||||
>
|
||||
{{ isLoss ? '-' : '+' }}{{ isWin ? amount * 2 : (amount | currency: 'EUR') }}
|
||||
<div *ngIf="isWin" class="text-xs text-text-secondary">
|
||||
(Einsatz {{ amount | currency:'EUR' }} × 2)
|
||||
(Einsatz {{ amount | currency: 'EUR' }} × 2)
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="text-text-secondary border-t border-text-secondary/20 pt-3 font-medium">Kontostand:</div>
|
||||
<div class="text-text-secondary border-t border-text-secondary/20 pt-3 font-medium">
|
||||
Kontostand:
|
||||
</div>
|
||||
<div class="font-medium text-right border-t border-text-secondary/20 pt-3">
|
||||
{{ balance | currency:'EUR' }}
|
||||
{{ balance | currency: 'EUR' }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue