Add footer template and include it in base and hero templates; update legal URL path

Signed-off-by: Edgar P. Burkhart <git@edgarpierre.fr>
This commit is contained in:
Edgar P. Burkhart 2025-06-14 19:05:53 +02:00
parent ac07607dd0
commit 5c99306f74
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227
5 changed files with 16 additions and 3 deletions

View file

@ -91,6 +91,7 @@ article.message {
color-mix(in hsl, var(--pico-primary-background) 10%, var(--pico-background-color)) 80%,
var(--pico-background-color));
display: grid;
grid-template-rows: 1fr min-content;
align-items: center;
padding: 4rem;
@ -116,3 +117,8 @@ h6,
i.i {
margin-right: .5em;
}
footer {
text-align: center;
font-weight: 350;
}

View file

@ -68,6 +68,9 @@
{% block content %}
{% endblock content %}
</main>
<footer class="container">
{% include "footer.html" %}
</footer>
{% endblock body %}
</body>
</html>

View file

@ -0,0 +1 @@
© <a href="https://edgarpierre.fr">Edgar P. Burkhart</a> <a href="{% url "legal" %}">Mentions légales</a>

View file

@ -1,10 +1,13 @@
{% load static %}
<div id="hero">
<div>
<main>
<i class="ri-music-ai-fill big-logo"></i>
<h1>Musik</h1>
<p>
<a href="{% url "login" %}" role="button"><i class="ri-play-fill"></i> Jouer</a>
</p>
</div>
</main>
<footer>
{% include "footer.html" %}
</footer>
</div>

View file

@ -7,5 +7,5 @@ urlpatterns = [
path("", views.HomePageView.as_view(), name="index"),
path("accounts/signup/", views.SignupView.as_view(), name="signup"),
path("accounts/", include("django.contrib.auth.urls")),
path("legal/", TemplateView.as_view(template_name="privacy.html")),
path("legal/", TemplateView.as_view(template_name="privacy.html"), name="legal"),
]