This commit is contained in:
2025-11-10 19:39:11 +01:00
commit ff7d0a9137
10 changed files with 1538 additions and 0 deletions

20
templates/index.html Normal file
View File

@@ -0,0 +1,20 @@
<!-- templates/index.html -->
{% extends "base.html" %}
{% block content %}
<div class="row">
<div class="col-md-6 mx-auto text-center">
<h2>Welcome to Health History Tracker</h2>
<p class="lead">Track and manage your health records with our secure platform.</p>
<div class="mt-4">
{% if session.user_id %}
<a href="{{ url_for('dashboard') }}" class="btn btn-primary btn-lg me-2">Go to Dashboard</a>
<a href="{{ url_for('logout') }}" class="btn btn-outline-secondary btn-lg">Logout</a>
{% else %}
<a href="{{ url_for('login') }}" class="btn btn-primary btn-lg me-2">Login</a>
<a href="{{ url_for('register') }}" class="btn btn-outline-primary btn-lg">Register</a>
{% endif %}
</div>
</div>
</div>
{% endblock %}