+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
+
+
+
Wallet
+
Result
+
Messages
+
View-Log
+
Log Out
-
-
-
Wallet
-
Result
-
Messages
-
View-Log
-
Log Out
+
+
+
+
+
diff --git a/src/app/components/navbar/navbar.component.ts b/src/app/components/navbar/navbar.component.ts
index 9c5ce10..8a68839 100644
--- a/src/app/components/navbar/navbar.component.ts
+++ b/src/app/components/navbar/navbar.component.ts
@@ -1,22 +1,37 @@
-import { Component, OnInit } from '@angular/core';
+import { Component, OnInit, HostListener } from '@angular/core';
+import { CommonModule } from '@angular/common'; // ✅ this is what you need
@Component({
selector: 'app-navbar',
templateUrl: './navbar.component.html',
styleUrls: ['./navbar.component.css'],
- standalone: true
+ standalone: true,
+ imports: [CommonModule] // ✅ import here
})
export class NavbarComponent implements OnInit {
-
dateTime: string = '';
+ isMenuOpen: boolean = false;
+ screenWidth: number = window.innerWidth;
ngOnInit() {
this.updateDateTime();
- setInterval(() => this.updateDateTime(), 1000); // refresh every second
+ setInterval(() => this.updateDateTime(), 1000);
}
updateDateTime() {
const now = new Date();
- this.dateTime = now.toLocaleString(); // You can format it differently if needed
+ this.dateTime = now.toLocaleString();
+ }
+
+ @HostListener('window:resize', ['$event'])
+ onResize(event: any) {
+ this.screenWidth = event.target.innerWidth;
+ if (this.screenWidth > 800) {
+ this.isMenuOpen = false;
+ }
+ }
+
+ toggleMenu() {
+ this.isMenuOpen = !this.isMenuOpen;
}
}
diff --git a/src/app/home/home.component.html b/src/app/home/home.component.html
index cbd99ea..0159bb5 100644
--- a/src/app/home/home.component.html
+++ b/src/app/home/home.component.html
@@ -1,55 +1,25 @@
-
-
-
-
-
-
-
-
-
diff --git a/src/styles.css b/src/styles.css
index 90d4ee0..892ac84 100644
--- a/src/styles.css
+++ b/src/styles.css
@@ -1 +1,11 @@
-/* You can add global styles to this file, and also import other style files */
+html{
+ margin: 0;
+ padding: 0;
+ overflow: hidden;
+}
+
+body {
+ margin: 0;
+ padding: 0;
+ box-sizing: border-box;
+}