add basic nav bar and very basic design

This commit is contained in:
Marcel-Anker
2025-10-27 22:15:04 +01:00
parent db05aa2a8a
commit d0293cc37c
5 changed files with 23 additions and 27 deletions

View File

@@ -7,5 +7,6 @@ nav {
.navbar {
width: 200px;
background-color: #ff0080;
background-color: #ffffff;
padding: 20px;
}

View File

@@ -1,2 +1,13 @@
<nav class="navbar">
<ul class="nav-list">
@for (item of navItems; track item.path) {
<li>
<div class="flex justify-center">
<a href="{{item.path}}" class="text-xl font-bold">
{{ item.label }}
</a>
</div>
</li>
}
</ul>
</nav>

View File

@@ -7,5 +7,8 @@ import { Component } from '@angular/core';
styleUrl: './navbar.component.css'
})
export class NavbarComponent {
navItems:{label:string, path:string}[] = [
{label: 'Schedule', path: '/schedule'},
{label: 'beispiel', path: ''}, /* mal gucken wie man das elegant dynamisch machen kann*/
]
}