Datenschutz und Impressum hinzugefügt
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 9s

This commit is contained in:
2026-03-31 12:26:42 +02:00
parent 11a9227dd0
commit a44d1363cd
11 changed files with 323 additions and 31 deletions

View File

@@ -0,0 +1,36 @@
---
// src/components/Header.astro
import Logo from './Logo.astro';
// Optional: Logik um den aktiven Link zu erkennen
const pathname = new URL(Astro.request.url).pathname;
const currentPath = pathname.slice(1);
---
<header class="main-header">
<div class="header-container">
<a href="/" class="group flex items-center gap-2">
<Logo class="h-6 w-auto transition-colors" />
</a>
<!--
<nav>
<ul class="nav-list">
<li>
<a href="/projekte" class={`nav-item ${currentPath === 'projekte' ? 'nav-item-active' : ''}`}>
Projekte
</a>
</li>
<li>
<a href="/engineering" class={`nav-item ${currentPath === 'engineering' ? 'nav-item-active' : ''}`}>
Engineering
</a>
</li>
<li>
<a href="/kontakt" class={`nav-item ${currentPath === 'kontakt' ? 'nav-item-active' : ''}`}>
Kontakt
</a>
</li>
</ul>
</nav> -->
</div>
</header>