commit
This commit is contained in:
44
partials/structure/nav.php
Normal file
44
partials/structure/nav.php
Normal file
@@ -0,0 +1,44 @@
|
||||
<?php
|
||||
$app = app();
|
||||
$isLoggedIn = isset($_SESSION['user_id']);
|
||||
?>
|
||||
<header class="site-header">
|
||||
<div class="container nav-row">
|
||||
<div class="brand">
|
||||
<img data-logo-img src="/assets/bilder/logo_male.png" alt="Papa-Kind-Treff Logo" class="brand__logo">
|
||||
<div class="brand__text">
|
||||
<span class="brand__name">Papa-Kind-Treff</span>
|
||||
<span class="brand__tag">Väter vernetzen</span>
|
||||
</div>
|
||||
</div>
|
||||
<nav class="nav-links" aria-label="Hauptmenü">
|
||||
<a href="#events">Events</a>
|
||||
<a href="#profil">Profil</a>
|
||||
<a href="#sicherheit">Sicherheit</a>
|
||||
<a href="#faq">FAQ</a>
|
||||
</nav>
|
||||
<div class="nav-actions">
|
||||
<?php if ($isLoggedIn): ?>
|
||||
<button class="btn ghost" type="button">Dashboard</button>
|
||||
<button class="btn" type="button">Neues Event</button>
|
||||
<?php else: ?>
|
||||
<button class="btn ghost" type="button">Anmelden</button>
|
||||
<button class="btn" type="button">Kostenlos registrieren</button>
|
||||
<?php endif; ?>
|
||||
<button class="menu-toggle" aria-label="Menü öffnen">☰</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mobile-menu" id="mobileMenu">
|
||||
<a href="#events">Events</a>
|
||||
<a href="#profil">Profil</a>
|
||||
<a href="#sicherheit">Sicherheit</a>
|
||||
<a href="#faq">FAQ</a>
|
||||
<?php if ($isLoggedIn): ?>
|
||||
<button class="btn ghost" type="button">Dashboard</button>
|
||||
<button class="btn block" type="button">Neues Event</button>
|
||||
<?php else: ?>
|
||||
<button class="btn ghost" type="button">Anmelden</button>
|
||||
<button class="btn block" type="button">Kostenlos registrieren</button>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</header>
|
||||
Reference in New Issue
Block a user