-
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
<footer class="site-footer">
|
||||
<div>
|
||||
<strong>Neon Health Tracker</strong>
|
||||
<p>Workout planning, nutrition tracking, supplement timing, health metrics, and admin-managed profiles.</p>
|
||||
</div>
|
||||
<div class="footer-links">
|
||||
<a href="/signup.php">Create profile</a>
|
||||
<a href="/tracker.php">Open tracker</a>
|
||||
<a href="/admin.php">Admin dashboard</a>
|
||||
</div>
|
||||
</footer>
|
||||
<script src="/assets/site.js" defer></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
$pageTitle = $pageTitle ?? 'Neon Health Tracker';
|
||||
$activePage = $activePage ?? '';
|
||||
function site_active(string $page, string $activePage): string
|
||||
{
|
||||
return $page === $activePage ? ' class="active"' : '';
|
||||
}
|
||||
?>
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title><?= htmlspecialchars($pageTitle, ENT_QUOTES) ?></title>
|
||||
<link rel="stylesheet" href="/assets/site.css">
|
||||
</head>
|
||||
<body>
|
||||
<header class="site-header">
|
||||
<a class="site-logo" href="/">
|
||||
<span class="site-logo-bars" aria-hidden="true"><i></i><i></i><i></i></span>
|
||||
<span>Neon Health Tracker</span>
|
||||
</a>
|
||||
<nav class="site-nav" aria-label="Primary navigation">
|
||||
<a<?= site_active('home', $activePage) ?> href="/">Home</a>
|
||||
<a<?= site_active('workouts', $activePage) ?> href="/workouts.php">Workouts</a>
|
||||
<a<?= site_active('nutrition', $activePage) ?> href="/nutrition.php">Nutrition</a>
|
||||
<a<?= site_active('recovery', $activePage) ?> href="/recovery.php">Recovery</a>
|
||||
<a<?= site_active('signup', $activePage) ?> href="/signup.php">Sign up</a>
|
||||
<a href="/tracker.php">Tracker</a>
|
||||
<a href="/admin.php">Admin</a>
|
||||
</nav>
|
||||
</header>
|
||||
Reference in New Issue
Block a user