second commit
This commit is contained in:
+29
-10
@@ -5,9 +5,9 @@ declare(strict_types=1);
|
||||
$brandSubtitle = match ($page) {
|
||||
'dashboard' => 'Statistiken und Verlauf',
|
||||
'track' => 'Tag erfassen und bewerten',
|
||||
'archive' => 'Rueckblick auf vergangene Tage',
|
||||
'archive' => 'Rückblick auf vergangene Tage',
|
||||
'options' => 'Logik, Sicherheit und Accounts',
|
||||
'login' => 'Geschuetzter Zugang',
|
||||
'login' => 'Geschützter Zugang',
|
||||
'setup' => 'Erstkonfiguration',
|
||||
default => 'Stimmungstracker',
|
||||
};
|
||||
@@ -21,7 +21,7 @@ $brandSubtitle = match ($page) {
|
||||
<link rel="stylesheet" href="/assets/css/app.css">
|
||||
<script defer src="/assets/js/app.js"></script>
|
||||
</head>
|
||||
<body class="app-body page-<?= e($page) ?>">
|
||||
<body class="app-body page-<?= e($page) ?>"<?= isset($trackMood) ? ' data-track-mood="' . e($trackMood) . '"' : '' ?>>
|
||||
<div class="aurora aurora-one"></div>
|
||||
<div class="aurora aurora-two"></div>
|
||||
<div class="shell">
|
||||
@@ -30,16 +30,28 @@ $brandSubtitle = match ($page) {
|
||||
<div class="brand-block">
|
||||
<div class="brand-mark">M</div>
|
||||
<div>
|
||||
<p class="eyebrow">mood.hnz.io</p>
|
||||
<p class="eyebrow">mood.heinz.media</p>
|
||||
<h1>Mood</h1>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<nav class="main-nav" aria-label="Hauptnavigation">
|
||||
<a class="<?= is_active_path('/') ? 'active' : '' ?>" href="/">Dashboard</a>
|
||||
<a class="<?= is_active_path('/track') ? 'active' : '' ?>" href="/track">Tracken</a>
|
||||
<a class="<?= is_active_path('/archive') ? 'active' : '' ?>" href="/archive">Archiv</a>
|
||||
<a class="<?= is_active_path('/options') ? 'active' : '' ?>" href="/options">Optionen</a>
|
||||
<a class="<?= is_active_path('/') ? 'active' : '' ?>" href="/">
|
||||
<img class="nav-icon" src="<?= e(icon_path('dashboard')) ?>" alt="">
|
||||
<span>Dashboard</span>
|
||||
</a>
|
||||
<a class="<?= is_active_path('/track') ? 'active' : '' ?>" href="/track">
|
||||
<img class="nav-icon" src="<?= e(icon_path('track')) ?>" alt="">
|
||||
<span>Tracken</span>
|
||||
</a>
|
||||
<a class="<?= is_active_path('/archive') ? 'active' : '' ?>" href="/archive">
|
||||
<img class="nav-icon" src="<?= e(icon_path('archive')) ?>" alt="">
|
||||
<span>Archiv</span>
|
||||
</a>
|
||||
<a class="<?= is_active_path('/options') ? 'active' : '' ?>" href="/options">
|
||||
<img class="nav-icon" src="<?= e(icon_path('options')) ?>" alt="">
|
||||
<span>Optionen</span>
|
||||
</a>
|
||||
</nav>
|
||||
|
||||
<div class="sidebar-footer">
|
||||
@@ -63,7 +75,15 @@ $brandSubtitle = match ($page) {
|
||||
<h2><?= e($pageTitle) ?></h2>
|
||||
</div>
|
||||
<div class="topbar__meta">
|
||||
<span class="meta-pill"><?= e(date('d.m.Y')) ?></span>
|
||||
<?php if ($page === 'track' && isset($topbarDate)): ?>
|
||||
<a class="meta-pill meta-pill--button" href="/track?date=<?= e(rawurlencode(shift_date($topbarDate, -1))) ?>">Vorheriger Tag</a>
|
||||
<form method="get" action="/track" class="topbar-date-form">
|
||||
<input class="topbar-date-input" type="date" name="date" value="<?= e($topbarDate) ?>">
|
||||
</form>
|
||||
<a class="meta-pill meta-pill--button" href="/track?date=<?= e(rawurlencode(shift_date($topbarDate, 1))) ?>">Nächster Tag</a>
|
||||
<?php else: ?>
|
||||
<span class="meta-pill"><?= e(date('d.m.Y')) ?></span>
|
||||
<?php endif; ?>
|
||||
<span class="meta-pill"><?= e($authUser['username']) ?></span>
|
||||
</div>
|
||||
</header>
|
||||
@@ -78,4 +98,3 @@ $brandSubtitle = match ($page) {
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user