diff --git a/frontend/public/blackjack.webp b/frontend/public/blackjack.webp new file mode 100644 index 0000000..a791c14 Binary files /dev/null and b/frontend/public/blackjack.webp differ diff --git a/frontend/public/liars-dice.webp b/frontend/public/liars-dice.webp new file mode 100644 index 0000000..df1fd1c Binary files /dev/null and b/frontend/public/liars-dice.webp differ diff --git a/frontend/public/lootbox.webp b/frontend/public/lootbox.webp new file mode 100644 index 0000000..710deed Binary files /dev/null and b/frontend/public/lootbox.webp differ diff --git a/frontend/public/plinko.webp b/frontend/public/plinko.webp new file mode 100644 index 0000000..c11370b Binary files /dev/null and b/frontend/public/plinko.webp differ diff --git a/frontend/public/poker.webp b/frontend/public/poker.webp new file mode 100644 index 0000000..9c60024 Binary files /dev/null and b/frontend/public/poker.webp differ diff --git a/frontend/public/slots.webp b/frontend/public/slots.webp new file mode 100644 index 0000000..5cf639a Binary files /dev/null and b/frontend/public/slots.webp differ diff --git a/frontend/src/app/feature/home/home.component.html b/frontend/src/app/feature/home/home.component.html index 27cec95..56a49cf 100644 --- a/frontend/src/app/feature/home/home.component.html +++ b/frontend/src/app/feature/home/home.component.html @@ -1,19 +1,91 @@ +
+
+
+
-
-
-

Spiel Vorschau

-

Spiel Name

- -
-
-

Spiel Vorschau

-

Spiel Name

- -
-
-

Spiel Vorschau

-

Spiel Name

- +
+
+
+

Beliebte Spiele

+
+ + +
+
+ +
+
+
+
+ +
+
+

{{ game.name }}

+ +
+
+
+
+
+
+ +
+

Alle Spiele

+
+
+
+ +
+
+

{{ game.name }}

+ +
+
+
+
+
+
+
+ +
+
+

Konto

+
+ + +
+
+ +
+

Letzte Transaktionen

+
+
+
+

{{ transaction.type }}

+

{{ transaction.date }}

+
+ + {{ 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..ebb2f02 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.0; + + featuredGames: Game[] = [ + { + id: '1', + name: 'Poker', + image: '/poker.webp', + }, + { + id: '2', + name: 'Blackjack', + image: '/blackjack.webp', + }, + { + id: '3', + name: 'Slots', + image: '/slots.webp', + }, + { + id: '4', + name: 'Plinko', + image: '/plinko.webp', + }, + { + id: '5', + name: 'Liars Dice', + image: '/liars-dice.webp', + }, + { + id: '6', + name: 'Lootboxen', + image: '/lootbox.webp', + }, + ]; + + allGames: Game[] = [...this.featuredGames]; + + recentTransactions: Transaction[] = [ + { + id: '1', + type: 'Deposit', + amount: 100.0, + date: '2024-03-20', + }, + { + id: '2', + type: 'Withdrawal', + amount: -50.0, + date: '2024-03-19', + }, + { + id: '3', + type: 'Bonus', + amount: 25.0, + 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

-

Plinko

+

Plinko

Spannendes Geschicklichkeitsspiel