Remove favicon and logo assets and update button styling

Refactor button styles into reusable component Update navigation to use
button component Move logo to assets directory
This commit is contained in:
Ruben 2025-10-02 23:35:53 +02:00
parent 6b94f63133
commit ea6a97b6cb
6 changed files with 50 additions and 47 deletions

View file

@ -30,14 +30,14 @@ function getActiveClass($href) { return rtrim(parse_url($_SERVER['REQUEST_URI'],
<header class="contain">
<div>
<div class="logo">
<a href="/"><?php include $publicDir . '/logo.svg'; ?></a>
<a href="/"><?php include dirname(__DIR__) . '/assets/logo.svg'; ?></a>
</div>
<nav>
<ul>
<a href="/" class="<?php echo getActiveClass('/'); ?>"><li><?= htmlspecialchars($homeLabel ?? 'Forsiden') ?></li></a>
<a href="/" class="button <?php echo getActiveClass('/'); ?>"><li><?= htmlspecialchars($homeLabel ?? 'Forsiden') ?></li></a>
<?php if (!empty($navigation)): ?>
<?php foreach ($navigation as $item): ?>
<a href="<?= htmlspecialchars($item['url']) ?>" class="<?php echo getActiveClass($item['url']); ?>"><li><?= htmlspecialchars($item['title']) ?></li></a>
<a href="<?= htmlspecialchars($item['url']) ?>" class="button <?php echo getActiveClass($item['url']); ?>"><li><?= htmlspecialchars($item['title']) ?></li></a>
<?php endforeach; ?>
<?php endif; ?>
</ul>