Add iOS mobile polish

This commit is contained in:
2026-05-21 18:30:11 +02:00
parent 9f1bb2c351
commit 2932cbb5b2
3 changed files with 189 additions and 29 deletions
+20
View File
@@ -125,6 +125,26 @@ $jsVersion = is_file(base_path('assets/js/app.js')) ? (string) filemtime(base_pa
</footer>
<?php endif; ?>
</main>
<?php if ($authUser !== null): ?>
<nav class="ios-tabbar" aria-label="Mobile Navigation">
<a class="<?= $page === 'dashboard' && ($dashboardView ?? 'day') === 'day' ? 'active' : '' ?>" href="/?view=day&amp;date=<?= e(rawurlencode(today())) ?>">
<span class="ios-tabbar__icon" aria-hidden="true"></span>
<span>Heute</span>
</a>
<a class="<?= $page === 'dashboard' && ($dashboardView ?? '') === 'week' ? 'active' : '' ?>" href="/?view=week&amp;date=<?= e(rawurlencode(today())) ?>">
<span class="ios-tabbar__icon" aria-hidden="true"></span>
<span>Woche</span>
</a>
<a class="<?= $page === 'dashboard' && ($dashboardView ?? '') === 'month' ? 'active' : '' ?>" href="/?view=month&amp;date=<?= e(rawurlencode(today())) ?>">
<span class="ios-tabbar__icon" aria-hidden="true"></span>
<span>Monat</span>
</a>
<a class="<?= $page === 'options' ? 'active' : '' ?>" href="/options">
<span class="ios-tabbar__icon" aria-hidden="true"></span>
<span>Optionen</span>
</a>
</nav>
<?php endif; ?>
</div>
</body>
</html>