Spiele
@@ -153,7 +172,12 @@
class="w-full flex items-center justify-center px-4 py-3 text-white font-medium border border-emerald-500 rounded-lg hover:bg-emerald-500/10 transition-colors duration-200"
>
Anmelden
@@ -162,16 +186,25 @@
class="w-full flex items-center justify-center px-4 py-3 bg-emerald-600 text-white font-medium rounded-lg hover:bg-emerald-500 transition-colors duration-200"
>
Registrieren
}
@if (isLoggedIn()) {
-
-
+
@@ -181,7 +214,12 @@
class="w-full flex items-center justify-center px-4 py-3 bg-emerald-600 text-white font-medium rounded-lg hover:bg-emerald-500 transition-colors duration-200"
>
Einzahlen
@@ -191,8 +229,13 @@
class="w-full flex items-center justify-center px-4 py-3 bg-slate-700 text-white font-medium rounded-lg hover:bg-slate-600 border border-slate-600 transition-colors duration-200"
>
+
+
Transaktionen
@@ -201,7 +244,12 @@
class="w-full flex items-center justify-center px-4 py-3 text-red-400 font-medium border border-red-500/50 rounded-lg hover:bg-red-500/10 transition-colors duration-200"
>
Abmelden
diff --git a/frontend/src/app/shared/components/navbar/navbar.component.ts b/frontend/src/app/shared/components/navbar/navbar.component.ts
index 987f13f..2d17ca5 100644
--- a/frontend/src/app/shared/components/navbar/navbar.component.ts
+++ b/frontend/src/app/shared/components/navbar/navbar.component.ts
@@ -10,12 +10,10 @@ import {
} from '@angular/core';
import { RouterModule } from '@angular/router';
import { AuthService } from '@service/auth.service';
-import {Observable, Subscription} from 'rxjs';
+import { Subscription } from 'rxjs';
import { AnimatedNumberComponent } from '@blackjack/components/animated-number/animated-number.component';
-import {DepositComponent} from "../../../feature/deposit/deposit.component";
-import {TransactionHistoryComponent} from "../../../feature/transaction-history/transaction-history.component";
-import {TransactionData} from "../../../model/TransactionData";
-import {TransactionService} from "@service/transaction.service";
+import { DepositComponent } from '../../../feature/deposit/deposit.component';
+import { TransactionHistoryComponent } from '../../../feature/transaction-history/transaction-history.component';
@Component({
selector: 'app-navbar',
From 4331484d48e7df0f43e6baa523be9bbad13f3aa9 Mon Sep 17 00:00:00 2001
From: Phan Huy Tran
Date: Wed, 4 Jun 2025 12:15:07 +0200
Subject: [PATCH 5/6] feat: adjust icons
---
frontend/angular.json | 3 ++-
.../components/navbar/navbar.component.html | 26 +++----------------
.../components/navbar/navbar.component.ts | 12 ++++-----
frontend/src/assets/deposit.svg | 4 +++
frontend/src/assets/games.svg | 6 +++++
frontend/src/assets/transaction.svg | 12 +++++++++
6 files changed, 34 insertions(+), 29 deletions(-)
create mode 100644 frontend/src/assets/deposit.svg
create mode 100644 frontend/src/assets/games.svg
create mode 100644 frontend/src/assets/transaction.svg
diff --git a/frontend/angular.json b/frontend/angular.json
index a9f9a84..d8c3879 100644
--- a/frontend/angular.json
+++ b/frontend/angular.json
@@ -21,7 +21,8 @@
{
"glob": "**/*",
"input": "public"
- }
+ },
+ "src/assets"
],
"styles": [
"src/styles.css"
diff --git a/frontend/src/app/shared/components/navbar/navbar.component.html b/frontend/src/app/shared/components/navbar/navbar.component.html
index 8e7942e..d8009eb 100644
--- a/frontend/src/app/shared/components/navbar/navbar.component.html
+++ b/frontend/src/app/shared/components/navbar/navbar.component.html
@@ -14,9 +14,7 @@
routerLink="/home"
class="flex items-center px-4 py-2 text-white/90 hover:text-white font-medium rounded-lg hover:bg-white/10 transition-colors duration-200"
>
-
+
Spiele
@@ -71,14 +69,7 @@
class="flex items-center px-4 py-2 bg-emerald-600 text-white font-medium rounded-lg hover:bg-emerald-500 transition-colors duration-200"
(click)="openDepositModal()"
>
-
+

Einzahlen
@@ -91,6 +82,7 @@
class="flex items-center px-4 py-2 bg-slate-700 text-white font-medium rounded-lg hover:bg-slate-600 border border-slate-600 transition-colors duration-200"
(click)="openTransactionModal()"
>
+

Transaktionen
@@ -159,9 +151,7 @@
routerLink="/home"
class="flex items-center px-4 py-3 text-white/90 hover:text-white hover:bg-white/10 rounded-lg transition-colors duration-200"
>
-
+

Spiele
@@ -228,14 +218,6 @@
(click)="openTransactionModal()"
class="w-full flex items-center justify-center px-4 py-3 bg-slate-700 text-white font-medium rounded-lg hover:bg-slate-600 border border-slate-600 transition-colors duration-200"
>
-
Transaktionen
diff --git a/frontend/src/app/shared/components/navbar/navbar.component.ts b/frontend/src/app/shared/components/navbar/navbar.component.ts
index 2d17ca5..87f4552 100644
--- a/frontend/src/app/shared/components/navbar/navbar.component.ts
+++ b/frontend/src/app/shared/components/navbar/navbar.component.ts
@@ -8,12 +8,12 @@ import {
Output,
signal,
} from '@angular/core';
-import { RouterModule } from '@angular/router';
-import { AuthService } from '@service/auth.service';
-import { Subscription } from 'rxjs';
-import { AnimatedNumberComponent } from '@blackjack/components/animated-number/animated-number.component';
-import { DepositComponent } from '../../../feature/deposit/deposit.component';
-import { TransactionHistoryComponent } from '../../../feature/transaction-history/transaction-history.component';
+import {RouterModule} from '@angular/router';
+import {AuthService} from '@service/auth.service';
+import {Subscription} from 'rxjs';
+import {AnimatedNumberComponent} from '@blackjack/components/animated-number/animated-number.component';
+import {DepositComponent} from '../../../feature/deposit/deposit.component';
+import {TransactionHistoryComponent} from '../../../feature/transaction-history/transaction-history.component';
@Component({
selector: 'app-navbar',
diff --git a/frontend/src/assets/deposit.svg b/frontend/src/assets/deposit.svg
new file mode 100644
index 0000000..51d3f6a
--- /dev/null
+++ b/frontend/src/assets/deposit.svg
@@ -0,0 +1,4 @@
+
diff --git a/frontend/src/assets/games.svg b/frontend/src/assets/games.svg
new file mode 100644
index 0000000..cbb9f4a
--- /dev/null
+++ b/frontend/src/assets/games.svg
@@ -0,0 +1,6 @@
+
diff --git a/frontend/src/assets/transaction.svg b/frontend/src/assets/transaction.svg
new file mode 100644
index 0000000..d661947
--- /dev/null
+++ b/frontend/src/assets/transaction.svg
@@ -0,0 +1,12 @@
+
From 23710a0553ccfaf4abeb5cb3972e88ec77e17fce Mon Sep 17 00:00:00 2001
From: Phan Huy Tran
Date: Wed, 4 Jun 2025 12:15:24 +0200
Subject: [PATCH 6/6] style: fix pipelines
---
.../shared/components/navbar/navbar.component.html | 8 ++++----
.../app/shared/components/navbar/navbar.component.ts | 12 ++++++------
2 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/frontend/src/app/shared/components/navbar/navbar.component.html b/frontend/src/app/shared/components/navbar/navbar.component.html
index d8009eb..451b942 100644
--- a/frontend/src/app/shared/components/navbar/navbar.component.html
+++ b/frontend/src/app/shared/components/navbar/navbar.component.html
@@ -14,7 +14,7 @@
routerLink="/home"
class="flex items-center px-4 py-2 text-white/90 hover:text-white font-medium rounded-lg hover:bg-white/10 transition-colors duration-200"
>
-
+
Spiele
@@ -69,7 +69,7 @@
class="flex items-center px-4 py-2 bg-emerald-600 text-white font-medium rounded-lg hover:bg-emerald-500 transition-colors duration-200"
(click)="openDepositModal()"
>
-
Einzahlen
@@ -82,7 +82,7 @@
class="flex items-center px-4 py-2 bg-slate-700 text-white font-medium rounded-lg hover:bg-slate-600 border border-slate-600 transition-colors duration-200"
(click)="openTransactionModal()"
>
-
Transaktionen
@@ -151,7 +151,7 @@
routerLink="/home"
class="flex items-center px-4 py-3 text-white/90 hover:text-white hover:bg-white/10 rounded-lg transition-colors duration-200"
>
-
Spiele
diff --git a/frontend/src/app/shared/components/navbar/navbar.component.ts b/frontend/src/app/shared/components/navbar/navbar.component.ts
index 87f4552..2d17ca5 100644
--- a/frontend/src/app/shared/components/navbar/navbar.component.ts
+++ b/frontend/src/app/shared/components/navbar/navbar.component.ts
@@ -8,12 +8,12 @@ import {
Output,
signal,
} from '@angular/core';
-import {RouterModule} from '@angular/router';
-import {AuthService} from '@service/auth.service';
-import {Subscription} from 'rxjs';
-import {AnimatedNumberComponent} from '@blackjack/components/animated-number/animated-number.component';
-import {DepositComponent} from '../../../feature/deposit/deposit.component';
-import {TransactionHistoryComponent} from '../../../feature/transaction-history/transaction-history.component';
+import { RouterModule } from '@angular/router';
+import { AuthService } from '@service/auth.service';
+import { Subscription } from 'rxjs';
+import { AnimatedNumberComponent } from '@blackjack/components/animated-number/animated-number.component';
+import { DepositComponent } from '../../../feature/deposit/deposit.component';
+import { TransactionHistoryComponent } from '../../../feature/transaction-history/transaction-history.component';
@Component({
selector: 'app-navbar',