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:
parent
ac07607dd0
commit
5c99306f74
5 changed files with 16 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -68,6 +68,9 @@
|
|||
{% block content %}
|
||||
{% endblock content %}
|
||||
</main>
|
||||
<footer class="container">
|
||||
{% include "footer.html" %}
|
||||
</footer>
|
||||
{% endblock body %}
|
||||
</body>
|
||||
</html>
|
||||
|
|
1
base/templates/footer.html
Normal file
1
base/templates/footer.html
Normal file
|
@ -0,0 +1 @@
|
|||
© <a href="https://edgarpierre.fr">Edgar P. Burkhart</a> – <a href="{% url "legal" %}">Mentions légales</a>
|
|
@ -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>
|
||||
|
|
|
@ -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"),
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue