Landingpage Grid-layout erstellt, Navbar implementiert, SEO vorbereitet

This commit is contained in:
2026-02-23 20:52:45 +01:00
parent b6ca9be225
commit 2fdeb41c25
40 changed files with 646 additions and 79 deletions

View File

@@ -0,0 +1,20 @@
import { Component, inject } from '@angular/core';
import { ThemeService } from '@core/services/theme.service';
import { NgIcon, provideIcons } from '@ng-icons/core';
import { cssMoon, cssSun } from '@ng-icons/css.gg';
@Component({
selector: 'app-toogle-theme',
imports: [NgIcon],
templateUrl: './toogle-theme.component.html',
styleUrl: './toogle-theme.component.scss',
viewProviders: [provideIcons({cssMoon, cssSun})]
})
export class ToogleThemeComponent {
themeService = inject(ThemeService);
toggleTheme() {
const current = this.themeService.theme();
const next = current === 'light' ? 'dark' : 'light';
this.themeService.setTheme(next);
}
}