Refactor homepage and header components.

Moved header content logic based on `current_page` input for reusability. Updated styling and layout structure to improve maintainability and accommodate dynamic titles and subtitles.
This commit is contained in:
2025-04-03 21:37:48 +02:00
parent 1d0f1d3896
commit e3c9fa2165
4 changed files with 157 additions and 137 deletions
@@ -1,4 +1,5 @@
import {Component, Input, OnInit} from '@angular/core';
import {ALTITUDE_VERSION} from '../constant';
@Component({
standalone: false,
@@ -8,6 +9,7 @@ import {Component, Input, OnInit} from '@angular/core';
})
export class HeaderComponent implements OnInit {
@Input() title: string = '';
@Input() sub_title: string = '';
@Input() current_page: string = ''
public ngOnInit(): void {
@@ -35,4 +37,5 @@ export class HeaderComponent implements OnInit {
}
}
protected readonly ALTITUDE_VERSION = ALTITUDE_VERSION;
}