79 lines
3.3 KiB
HTML
79 lines
3.3 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="en">
|
||
|
||
<head>
|
||
<meta charset="UTF-8">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
<title>{% block title %}WeightTracker{% endblock %}</title>
|
||
<meta name="description" content="Track your weight loss competition with friends">
|
||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap"
|
||
rel="stylesheet">
|
||
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
|
||
<script src="https://unpkg.com/htmx.org@2.0.4"></script>
|
||
<script src="https://cdn.jsdelivr.net/npm/chart.js@4.4.7/dist/chart.umd.min.js"></script>
|
||
<script
|
||
src="https://cdn.jsdelivr.net/npm/chartjs-adapter-date-fns@3.0.0/dist/chartjs-adapter-date-fns.bundle.min.js"></script>
|
||
</head>
|
||
|
||
<body>
|
||
{% if session.get('user_id') %}
|
||
<nav class="navbar">
|
||
<div class="nav-brand">
|
||
<a href="{{ url_for('dashboard.index') }}">
|
||
<span class="nav-icon">⚖️</span>
|
||
<span class="nav-title">WeightTracker</span>
|
||
</a>
|
||
</div>
|
||
<div class="nav-links">
|
||
<a href="{{ url_for('dashboard.index') }}" class="{{ 'active' if request.endpoint == 'dashboard.index' }}">
|
||
<span class="nav-link-icon">📊</span>
|
||
<span>Dashboard</span>
|
||
</a>
|
||
<a href="{{ url_for('checkin.index') }}"
|
||
class="{{ 'active' if request.endpoint and request.endpoint.startswith('checkin') }}">
|
||
<span class="nav-link-icon">✏️</span>
|
||
<span>Check-in</span>
|
||
</a>
|
||
<a href="{{ url_for('leaderboard.index') }}"
|
||
class="{{ 'active' if request.endpoint == 'leaderboard.index' }}">
|
||
<span class="nav-link-icon">🏆</span>
|
||
<span>Leaderboard</span>
|
||
</a>
|
||
<a href="{{ url_for('profile.index') }}"
|
||
class="{{ 'active' if request.endpoint and request.endpoint.startswith('profile') }}">
|
||
<span class="nav-link-icon">👤</span>
|
||
<span>Profile</span>
|
||
</a>
|
||
</div>
|
||
<div class="nav-actions">
|
||
<a href="{{ url_for('auth.logout') }}" class="btn btn-ghost btn-sm">Logout</a>
|
||
</div>
|
||
<button class="nav-toggle" onclick="document.querySelector('.nav-links').classList.toggle('open')">
|
||
<span></span><span></span><span></span>
|
||
</button>
|
||
</nav>
|
||
{% endif %}
|
||
|
||
<main class="container">
|
||
{% with messages = get_flashed_messages(with_categories=true) %}
|
||
{% if messages %}
|
||
<div class="flash-messages">
|
||
{% for category, message in messages %}
|
||
<div class="flash flash-{{ category }}">
|
||
{{ message }}
|
||
<button class="flash-close" onclick="this.parentElement.remove()">×</button>
|
||
</div>
|
||
{% endfor %}
|
||
</div>
|
||
{% endif %}
|
||
{% endwith %}
|
||
|
||
{% block content %}{% endblock %}
|
||
</main>
|
||
|
||
{% block scripts %}{% endblock %}
|
||
</body>
|
||
|
||
</html> |