2021-12-02 22:30:17 +01:00
|
|
|
{% extends 'base.html' %}
|
2021-12-02 19:30:42 +01:00
|
|
|
{% load static %}
|
2021-12-02 22:30:17 +01:00
|
|
|
{% block content %}
|
2021-12-03 00:06:04 +01:00
|
|
|
<h1>Les sauveteurs du Dunkerquois</h1>
|
2021-12-02 22:30:17 +01:00
|
|
|
<section>
|
|
|
|
<h2>Carte dynamique</h2>
|
2021-12-03 04:53:31 +01:00
|
|
|
<div id="map" style="width:100%; height:60%"></div>
|
|
|
|
<!-- <img class="map" src="{% static 'images/map.png' %}"> -->
|
2021-12-02 22:30:17 +01:00
|
|
|
</section>
|
|
|
|
<section>
|
|
|
|
<h2>Articles récents</h2>
|
|
|
|
<div class="flex-card">
|
|
|
|
<div class="card">
|
2021-12-03 01:24:17 +01:00
|
|
|
<div class="inner">
|
|
|
|
<div class="img-container">
|
2021-12-02 22:30:17 +01:00
|
|
|
<img src="{% static 'images/sauvetage.png' %}">
|
|
|
|
</div>
|
|
|
|
<div class="content">
|
|
|
|
<p class="date">16/02/2020</p>
|
|
|
|
<p class="titre">Sauvetage risqué en côte d'Ivoire</p>
|
|
|
|
<a class="btn" href="">Voir l'article</a>
|
|
|
|
</div>
|
2021-12-03 01:24:17 +01:00
|
|
|
</div>
|
2021-12-02 22:30:17 +01:00
|
|
|
</div>
|
|
|
|
<div class="card">
|
2021-12-03 01:24:17 +01:00
|
|
|
<div class="inner">
|
|
|
|
<div class="img-container">
|
2021-12-02 22:30:17 +01:00
|
|
|
<img src="{% static 'images/sauvetage.png' %}">
|
|
|
|
</div>
|
|
|
|
<div class="content">
|
|
|
|
<p class="date">16/02/2020</p>
|
|
|
|
<p class="titre">Sauvetage risqué en côte d'Ivoire</p>
|
|
|
|
<a class="btn" href="">Voir l'article</a>
|
|
|
|
</div>
|
2021-12-03 01:24:17 +01:00
|
|
|
</div>
|
2021-12-02 22:30:17 +01:00
|
|
|
</div>
|
|
|
|
<div class="card">
|
2021-12-03 01:24:17 +01:00
|
|
|
<div class="inner">
|
|
|
|
<div class="img-container">
|
2021-12-02 22:30:17 +01:00
|
|
|
<img src="{% static 'images/sauvetage.png' %}">
|
|
|
|
</div>
|
|
|
|
<div class="content">
|
|
|
|
<p class="date">16/02/2020</p>
|
|
|
|
<p class="titre">Sauvetage risqué en côte d'Ivoire</p>
|
|
|
|
<a class="btn" href="">Voir l'article</a>
|
|
|
|
</div>
|
2021-12-03 01:24:17 +01:00
|
|
|
</div>
|
2021-12-02 22:30:17 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
2021-12-03 04:53:31 +01:00
|
|
|
<script src="https://unpkg.com/leaflet@1.6.0/dist/leaflet.js" integrity="sha512-gZwIG9x3wUXg2hdXF6+rVkLF/0Vi9U8D2Ntg4Ga5I5BZpVkVxlJWbSQtXPSiUTtC0TjtGOmxa1AJPuV0CPthew==" crossorigin=""></script>
|
|
|
|
<script>
|
|
|
|
let map = L.map('map').setView([51.127, 2.253], 7);
|
|
|
|
|
|
|
|
let osmLayer = L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {
|
|
|
|
attribution: '© OpenStreetMap contributors',
|
|
|
|
maxZoom: 19
|
|
|
|
});
|
|
|
|
|
|
|
|
L.marker([48.5, -0.09]).addTo(map).bindPopup('<a href="/a/1/">Sauvetage de mer</a>');
|
|
|
|
|
|
|
|
map.addLayer(osmLayer);
|
|
|
|
</script>
|
2021-12-03 00:06:04 +01:00
|
|
|
{% include 'quicksearch.html' %}
|
2021-12-02 22:30:17 +01:00
|
|
|
{% endblock %}
|