Ajout autre version accueil
This commit is contained in:
parent
132be6db03
commit
babd9f2aba
|
@ -8,6 +8,7 @@ body {
|
|||
background: #333;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
body.home { background: black; }
|
||||
a {
|
||||
color: #ffab82;
|
||||
}
|
||||
|
@ -58,6 +59,7 @@ nav {
|
|||
}
|
||||
.#homeaudio audio { opacity: 0.7; }
|
||||
|
||||
.home-stylise { max-width: 98vw; }
|
||||
.home-img {
|
||||
width: 600px;
|
||||
max-width: 100%;
|
||||
|
|
BIN
beesgospel/static/img/gospel-stylise.jpg
Normal file
BIN
beesgospel/static/img/gospel-stylise.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 179 KiB |
|
@ -5,6 +5,7 @@ from django.views.generic import TemplateView
|
|||
urlpatterns = [
|
||||
path("admin/", admin.site.urls),
|
||||
path("", TemplateView.as_view(template_name="index.html"), name="home"),
|
||||
path("v2", TemplateView.as_view(template_name="index2.html"), name="home"),
|
||||
path("presentation/", TemplateView.as_view(template_name="presentation.html"), name="presentation"),
|
||||
path("contact/", TemplateView.as_view(template_name="contact.html"), name="contact"),
|
||||
]
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
<link href="{% static 'css/main.css' %}" rel="stylesheet">
|
||||
<script src="{% static 'vendor/bootstrap.bundle.min.js' %}"></script>
|
||||
</head>
|
||||
<body>
|
||||
<body class="{% block bodyclass %}{% endblock %}">
|
||||
{% block header %}
|
||||
<nav class="navbar navbar-expand-lg bg-dark border-bottom border-body sticky-top" data-bs-theme="dark">
|
||||
<div class="container-fluid">
|
||||
|
|
19
templates/index2.html
Normal file
19
templates/index2.html
Normal file
|
@ -0,0 +1,19 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block header %}{% endblock %}
|
||||
{% block bodyclass %}home{% endblock %}
|
||||
{% block content %}
|
||||
<div>
|
||||
<div class="hometitle text-center">
|
||||
<a href="{% url 'presentation' %}">
|
||||
<img class="home-stylise" src="{% static 'img/gospel-stylise.jpg' %}">
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div id="homeaudio" class="d-flex justify-content-center">
|
||||
<div class="text-start">
|
||||
<i>Écouter:</i><br>
|
||||
<audio controls src="{% static 'songs/WeShallOvercome.mp3' %}"></audio>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
Loading…
Reference in a new issue