-
-
Spiel Vorschau
-
Spiel Name
-
Jetzt spielen
-
-
Spiel Vorschau
-
Spiel Name
-
Jetzt spielen
-
-
-
Spiel Vorschau
-
Spiel Name
-
Jetzt spielen
+
+
+
+
+
Beliebte Spiele
+
+
+ chevron_left
+
+
+ chevron_right
+
+
+
+
+
+
+
+
+
+
+
+
{{game.name}}
+ Jetzt Spielen
+
+
+
+
+
+
+
+
+
Alle Spiele
+
+
+
+
+
+
+
{{game.name}}
+ Jetzt Spielen
+
+
+
+
+
+
+
+
+
+
+
Konto
+
+ Transaktionen
+ Kontoeinstellungen
+ Abmelden
+
+
+
+
+
Letzte Transaktionen
+
+
+
+
{{transaction.type}}
+
{{transaction.date}}
+
+
0 ? 'text-emerald' : 'text-accent-red'">
+ {{transaction.amount | currency:'EUR'}}
+
+
+
+
+
diff --git a/frontend/src/app/feature/home/home.component.ts b/frontend/src/app/feature/home/home.component.ts
index d560eb8..b9221b8 100644
--- a/frontend/src/app/feature/home/home.component.ts
+++ b/frontend/src/app/feature/home/home.component.ts
@@ -2,12 +2,25 @@ import { ChangeDetectionStrategy, Component, inject } from '@angular/core';
import { KeycloakService } from 'keycloak-angular';
import { MatDialog } from '@angular/material/dialog';
import { DepositComponent } from '../deposit/deposit.component';
-
import { NavbarComponent } from '../../shared/components/navbar/navbar.component';
+import {CurrencyPipe, NgFor} from "@angular/common";
+
+interface Game {
+ id: string;
+ name: string;
+ image: string;
+}
+interface Transaction {
+ id: string;
+ type: string;
+ amount: number;
+ date: string;
+}
+
@Component({
selector: 'app-homepage',
standalone: true,
- imports: [NavbarComponent],
+ imports: [NavbarComponent, CurrencyPipe, NgFor],
templateUrl: './home.component.html',
changeDetection: ChangeDetectionStrategy.OnPush,
})
@@ -15,6 +28,67 @@ export default class HomeComponent {
private keycloakService: KeycloakService = inject(KeycloakService);
public dialog: MatDialog = inject(MatDialog);
+ userAvatar = '/assets/images/default-avatar.png';
+ username = this.keycloakService.getUsername();
+ vipLevel = 1;
+ balance = 1000.00;
+
+ featuredGames: Game[] = [
+ {
+ id: '1',
+ name: 'Poker',
+ image: '/assets/images/games/poker.jpg',
+ },
+ {
+ id: '2',
+ name: 'Blackjack',
+ image: '/assets/images/games/blackjack.jpg',
+ },
+ {
+ id: '3',
+ name: 'Slots',
+ image: '/assets/images/games/slots.jpg',
+ },
+ {
+ id: '4',
+ name: 'Plinko',
+ image: '/assets/images/games/plinko.jpg',
+ },
+ {
+ id: '5',
+ name: 'Liars Dice',
+ image: '/assets/images/games/liars-dice.jpg',
+ },
+ {
+ id: '6',
+ name: 'Lootboxen',
+ image: '/assets/images/games/lootboxen.jpg',
+ }
+ ];
+
+ allGames: Game[] = [...this.featuredGames];
+
+ recentTransactions: Transaction[] = [
+ {
+ id: '1',
+ type: 'Deposit',
+ amount: 100.00,
+ date: '2024-03-20'
+ },
+ {
+ id: '2',
+ type: 'Withdrawal',
+ amount: -50.00,
+ date: '2024-03-19'
+ },
+ {
+ id: '3',
+ type: 'Bonus',
+ amount: 25.00,
+ date: '2024-03-18'
+ }
+ ];
+
public logout() {
const baseUrl = window.location.origin;
diff --git a/frontend/src/app/feature/landing/landing.component.html b/frontend/src/app/feature/landing/landing.component.html
index 63c67cd..597c71a 100644
--- a/frontend/src/app/feature/landing/landing.component.html
+++ b/frontend/src/app/feature/landing/landing.component.html
@@ -26,21 +26,21 @@
-
Slots
+
Slots
Klassische Spielautomaten
Jetzt Spielen
-
Plinko
+
Plinko
Spannendes Geschicklichkeitsspiel
Jetzt Spielen
-
Blackjack
+
Blackjack
Klassisches Kartenspiel
Jetzt Spielen
@@ -50,21 +50,21 @@
-
Poker
+
Poker
Texas Hold'em & mehr
Jetzt Spielen
-
Liars Dice
+
Liars Dice
Würfelspiel mit Strategie
Jetzt Spielen
-
Lootboxen
+
Lootboxen
Überraschungskisten
Jetzt Spielen
diff --git a/frontend/src/styles.css b/frontend/src/styles.css
index afc40fa..f78bf74 100644
--- a/frontend/src/styles.css
+++ b/frontend/src/styles.css
@@ -63,10 +63,14 @@ a {
@apply font-bold text-text-primary;
}
-.game-heading {
+.game-heading-sm {
@apply font-bold text-text-primary text-sm mb-2;
}
+.game-heading-xl {
+ @apply font-bold text-text-primary text-xl mb-2;
+}
+
.game-text {
@apply text-text-secondary text-sm mb-4;
}
From 09ccad479e781d3eb6ae0255a8061c06e79e4f35 Mon Sep 17 00:00:00 2001
From: Lea
Date: Wed, 19 Feb 2025 12:25:20 +0100
Subject: [PATCH 092/281] added images for the games
---
frontend/public/blackjack.webp | Bin 0 -> 85233 bytes
frontend/public/liars-dice.webp | Bin 0 -> 28739 bytes
frontend/public/lootbox.webp | Bin 0 -> 170792 bytes
frontend/public/plinko.webp | Bin 0 -> 10985 bytes
frontend/public/poker.webp | Bin 0 -> 57303 bytes
frontend/public/slots.webp | Bin 0 -> 189902 bytes
.../src/app/feature/home/home.component.html | 1 -
.../src/app/feature/home/home.component.ts | 12 ++++++------
8 files changed, 6 insertions(+), 7 deletions(-)
create mode 100644 frontend/public/blackjack.webp
create mode 100644 frontend/public/liars-dice.webp
create mode 100644 frontend/public/lootbox.webp
create mode 100644 frontend/public/plinko.webp
create mode 100644 frontend/public/poker.webp
create mode 100644 frontend/public/slots.webp
diff --git a/frontend/public/blackjack.webp b/frontend/public/blackjack.webp
new file mode 100644
index 0000000000000000000000000000000000000000..a791c1416ccf8f719e30cb0979f762fb261bd57d
GIT binary patch
literal 85233
zcmXuJV~{RP&ow%>vB$P;+qP}n*kjwa?LD?_d#C
zZLN&|Um65QD_6V!^8x>N<6GG}nEcNY1p)&8@BHru0>%acmRb8xr?j%N|G(P*=fVEZ
zFa!Bt@P9Ez?u<+#4z>>eSJK+b(b@4oUdGDN#Nj_gvvP4X`(Gds5Lg2c5J=R23X-Fh
zr`7)$P$(#<{{YU&ok`>`INbjzR1*hVXL}P{&;K&R13?7-M`2hw+8O=N_n-XN7#J`}
zFxY=x?b(?cxuO8Uz+hRM`JoN~!$X8HkEDYmHvo^}ItjjV2V}(s&{L1L{^9odRmOIX
zg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