Affichage menu hamburger sur accueil

This commit is contained in:
Claude Paroz 2025-09-06 20:19:37 +02:00
parent 10d84fcf27
commit 7f68b88fd9
3 changed files with 13 additions and 3 deletions

View file

@ -8,7 +8,14 @@ body {
background: #333;
overflow-x: hidden;
}
body.home { background: black; }
body.home .navbar .logo-container, body.home .navbar .harlow {
display: none;
}
body.home .navbar-brand {
width: 100%;
}
body.home .nav-sep { display: none; }
a {
color: #ffab82;
}

View file

@ -10,7 +10,7 @@
</head>
<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">
<nav class="navbar {% block navbar-expand %}navbar-expand-lg{% endblock %} bg-dark border-bottom border-body sticky-top" data-bs-theme="dark">
<div class="container-fluid">
<div class="navbar-brand d-flex align-items-center">
<div class="logo-container"><a href="/"><img id="abeille" src="{% static 'img/abeille.webp' %}"></a></div>

View file

@ -1,6 +1,9 @@
{% extends "base.html" %}
{% block header %}{% endblock %}
{% block bodyclass %}home{% endblock %}
{% block navbar-expand %}{% endblock %}
{% block content %}
<div class="homediv">
<div class="hometitle text-center">