nuitdelinfo_2021/templates/base.html

61 lines
2.2 KiB
HTML
Raw Normal View History

2021-12-02 22:30:17 +01:00
{% load static %}
2021-12-03 04:22:10 +01:00
{% load md5 %}
2021-12-02 22:30:17 +01:00
<head>
<link rel="stylesheet" type="text/css" href="{% static 'css/style.css' %}">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
2021-12-03 04:53:31 +01:00
<link rel = "stylesheet" href = "http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css" />
2021-12-02 22:30:17 +01:00
<script src="{% static 'js/script.js' %}"></script>
</head>
<body>
<nav>
<div class="left">
2021-12-03 04:53:31 +01:00
<a href="/" class="logo">LSDD</a>
2021-12-02 22:30:17 +01:00
<div class="submenu">
2021-12-03 04:53:31 +01:00
<a href="/a/">Sauvetages</a>
<a href="/p/">Personnes</a>
<a href="/b/">Bateaux</a>
2021-12-02 22:30:17 +01:00
</div>
</div>
2021-12-03 04:22:10 +01:00
<div class="right">
<a href="#quicksearch"><i class="material-icons search">search</i></a>
{% if user.is_authenticated %}
<a href="{% url 'logout' %}"><img src="https://www.gravatar.com/avatar/{{ user.email | lower | md5 }}"></a>
{% else %}
<a href="{% url 'login' %}">Login</a>
{% endif %}
2021-12-03 05:57:06 +01:00
<i class="material-icons opennavmobile">menu</i>
2021-12-03 04:22:10 +01:00
</div>
2021-12-02 22:30:17 +01:00
</nav>
2021-12-03 05:57:06 +01:00
<div class="navbar-mobile">
<i class="material-icons closenavmobile">close</i>
<a href="/a/">Sauvetages</a>
<a href="/p/">Personnes</a>
<a href="/b/">Bateaux</a>
<a href="#quicksearch"><i class="material-icons search">search</i></a>
{% if user.is_authenticated %}
<a href="{% url 'logout' %}"><img src="https://www.gravatar.com/avatar/{{ user.email | lower | md5 }}"></a>
{% else %}
<a href="{% url 'login' %}">Login</a>
{% endif %}
</div>
2021-12-02 22:30:17 +01:00
<div class="container">
{% block content %}
{% endblock %}
</div>
2021-12-03 05:57:06 +01:00
<script>
let menu = document.querySelector('.opennavmobile');
let close = document.querySelector('.closenavmobile');
let navmobile = document.querySelector('.navbar-mobile');
menu.addEventListener('click', function (){
navmobile.classList.toggle('open');
});
close.addEventListener('click', function (){
navmobile.classList.toggle('open');
});
</script>
2021-12-02 22:30:17 +01:00
</body>