Convert to Flask app with password-protected admin panel
Links now live in data/links.json instead of hardcoded HTML, editable via /admin (add/rename/reorder/delete sections and links, per-link color and half-width side-by-side layout). New pages can be added without code changes. Docker image only needs rebuilding on code changes now, not on content changes (data/ is volume-mounted). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
56dc37843a
commit
61c4701115
13 files changed
+797
-173
No files matched your search
@@ -0,0 +1,50 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||
<title>Honey | Links</title>
|
||||
<link rel="icon" type="image/x-icon" href="/images/favicon/favicon.ico">
|
||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap" rel="stylesheet"/>
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='styles.css') }}">
|
||||
</head>
|
||||
<body>
|
||||
<div class="background-glow"></div>
|
||||
|
||||
<!-- Fireflies container -->
|
||||
<div class="fireflies">
|
||||
<div class="firefly"></div>
|
||||
<div class="firefly"></div>
|
||||
<div class="firefly"></div>
|
||||
<div class="firefly"></div>
|
||||
<div class="firefly"></div>
|
||||
<div class="firefly"></div>
|
||||
</div>
|
||||
|
||||
<!-- Content on top -->
|
||||
<img src="https://c.tenor.com/rfib5QqA0ncAAAAd/tenor.gif" alt="Profile Picture" class="profile-pic" />
|
||||
<h1 class="fade-in">{{ page.title }}</h1>
|
||||
{% if page.subtitle %}<p class="bio fade-in">{{ page.subtitle }}</p>{% endif %}
|
||||
{% if page.subtitle2 %}<p class="bio2 fade-in">{{ page.subtitle2 }}</p>{% endif %}
|
||||
|
||||
{% for section in page.sections %}
|
||||
<h2 class="section-title">{{ section.name }}</h2>
|
||||
<div class="links-grid">
|
||||
{% for link in section.links %}
|
||||
<a href="{{ link.url }}" class="link animated-link {{ link.color }}-glow{% if link.half %} half{% endif %}" target="_blank" style="--i: {{ loop.index0 }}">
|
||||
<div class="link-title">{{ link.title }}</div>
|
||||
{% if link.note %}<div class="link-note">{{ link.note }}</div>{% endif %}
|
||||
</a>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
||||
<footer>
|
||||
<a href="{{ page.footer_href }}" target="_self" title="Switch Version" class="link-footer">
|
||||
<div>{{ page.footer_label }}</div>
|
||||
</a>
|
||||
© 2025 Marc Luv
|
||||
</footer>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in new issue
Block a user