feat: NCS-63 User account implementation (#2)

User Profile info, no game before login/register, menu bar

---------

Co-authored-by: Lala, Shahd <Shahd.Lala@sybit.de>
Co-authored-by: shahdlala66 <shahd.lala66@gmail.com>
Reviewed-on: #2
This commit was merged in pull request #2.
This commit is contained in:
2026-05-06 10:51:30 +02:00
parent 2de003e497
commit ff75c8ce2f
104 changed files with 4232 additions and 978 deletions
+6 -9
View File
@@ -1,21 +1,18 @@
import { Component, OnInit } from '@angular/core';
import { RouterOutlet } from '@angular/router';
import { ToolbarComponent } from './components/toolbar/toolbar.component';
import { ThemeService } from './services/theme.service';
@Component({
selector: 'app-root',
imports: [RouterOutlet],
imports: [RouterOutlet, ToolbarComponent],
templateUrl: './app.html',
styleUrl: './app.css'
})
export class App implements OnInit {
ngOnInit(): void {
this.initTheme();
}
constructor(private readonly themeService: ThemeService) { }
private initTheme(): void {
const savedTheme = localStorage.getItem('theme');
if (savedTheme === 'dark') {
document.documentElement.setAttribute('data-theme', 'dark');
}
ngOnInit(): void {
this.themeService.initTheme();
}
}