feat: Add static changelog page

Adds a new static page accessible at /changelog to display site updates and changes manually.

- Creates a new Flask Blueprint in `routes/changelog.py` to handle the route logic.
- Registers the `changelog_bp` blueprint in `app.py`.
- Creates the corresponding template `templates/changelog/changelog.html` extending the base layout.
- Adds a link to the Changelog page in the main sidebar navigation in `templates/base.html`, using an archive icon for consistency.
- Applies basic card styling to the changelog page content for improved visual structure.
This commit is contained in:
Peter Stockings
2025-03-30 21:30:25 +11:00
parent 39e91f2655
commit 2465cad005
4 changed files with 66 additions and 2 deletions

View File

@@ -0,0 +1,35 @@
{% extends "base.html" %}
{% block content %}
<div class="p-4 md:p-6"> {# Add some overall padding for the page content area #}
<div class="bg-white shadow-md rounded-lg p-6"> {# Card container #}
<h1 class="text-2xl font-semibold text-gray-900 mb-6 border-b pb-2">Changelog</h1> {# Added bottom border to
heading #}
{# Container for the actual changelog entries with prose styling #}
<div class="prose max-w-none">
<p>Updates and changes to the site will be documented here, with the most recent changes listed first.</p>
<!-- Example Entry Structure -->
<hr class="my-6"> {# Increased margin for HR #}
<h2 class="text-xl font-semibold mb-2">March 30, 2025</h2> {# Reduced margin-bottom for H2 #}
<ul class="list-disc pl-5 space-y-1"> {# Added space between list items #}
<li>Added the initial changelog page.</li>
<li>Fixed a minor styling issue on the dashboard.</li>
<li>Improved visual styling of the changelog page itself.</li> {# Added an entry for this change #}
</ul>
{# Add more entries below, following the pattern above #}
<!--
<hr class="my-6">
<h2 class="text-xl font-semibold mb-2">March 29, 2025</h2>
<ul class="list-disc pl-5 space-y-1">
<li>Implemented feature X.</li>
<li>Refactored component Y.</li>
</ul>
-->
</div>
</div>
</div>
{% endblock %}