grainParisArt/templates/index.html

121 lines
3.8 KiB
HTML
Raw Permalink Normal View History

2024-09-16 11:29:02 +00:00
{% extends 'base.html' %}
{% block head %}
{% endblock %}
{% block body %}
2024-09-18 16:41:31 +00:00
2024-09-16 11:29:02 +00:00
<a href="#headerTop">
<div class="goTop">
<p>🍿</p>
</div>
</a>
2024-09-18 16:41:31 +00:00
<img src="../static/images/background.svg" class="background_svg">
2024-09-16 11:29:02 +00:00
<div id="map"></div>
<div class="planning">
<div class="container_titrePlanning">
<div class="contenu_edt">
<h2 class="txt_edt">Emploi du temps</h2>
<div class="calendrier">
2024-09-18 16:41:31 +00:00
{% for date in dates %}
{% if date.choisi %}
2024-09-16 11:29:02 +00:00
<div class="date-selectionne">
2024-09-18 16:41:31 +00:00
<p class="jour">{{date.jour}}</p>
<p class="chiffre">{{date.chiffre}}</p>
<p class="mois">{{date.mois}}</p>
2024-09-16 11:29:02 +00:00
</div>
2024-09-18 16:41:31 +00:00
{% else %}
<a href="{{ url_for('home', delta=date.index) }}">
2024-09-16 11:29:02 +00:00
<div class="date">
2024-09-18 16:41:31 +00:00
<p class="jour">{{date.jour}}</p>
<p class="chiffre">{{date.chiffre}}</p>
<p class="mois">{{date.mois}}</p>
2024-09-16 11:29:02 +00:00
</div>
</a>
2024-09-18 16:41:31 +00:00
{% endif %}
{% endfor %}
2024-09-16 11:29:02 +00:00
</div>
</div>
<div class="line"></div>
</div>
2024-09-18 18:32:49 +00:00
{% for film in films %}
2024-09-16 11:29:02 +00:00
<div class="container_infoFilm">
2024-09-18 16:41:31 +00:00
<img src={{ film.affiche }} class="affiche" />
2024-09-16 11:29:02 +00:00
<div class="infoFilm">
<div class="blur-background"></div>
<div>
2024-09-18 18:32:49 +00:00
<h3 class="titreFilm"><a href="{{ film.url }}">{{film.title}}</a></h3>
2024-09-16 11:29:02 +00:00
<div class="info-content">
2024-09-18 16:41:31 +00:00
<p class="realisateur">Réalisateur : {{film.director}}</p>
<p class="casting">Casting : {{ film.casting }}</p>
<p class="genre">Genre : {{ film.genres }}</p>
<p class="duree">Durée : {{film.duree}}</p>
2024-09-16 11:29:02 +00:00
</div>
<div class="synopsis_container">
<p class="synopsis">
{{film.synopsis}}
</p>
</div>
</div>
</div>
</div>
<div style="height: 10px;"></div>
2024-09-18 16:41:31 +00:00
{% for cinename, seances in film.seances.items() %}
2024-09-16 11:29:02 +00:00
<div class="seance_container">
<div class="cinema">
2024-09-18 16:41:31 +00:00
<p>{{cinename}}</p>
2024-09-16 11:29:02 +00:00
</div>
<div class="horaires_container">
2024-09-18 16:41:31 +00:00
{% for seance in seances %}
2024-09-16 11:29:02 +00:00
<div class="horaire">
<p>{{seance}}</p>
</div>
{% endfor %}
</div>
</div>
<div class="responsive-petite-div"></div>
{% endfor %}
<div class="responsive-div"></div>
{% endfor %}
</div>
<script>
2024-10-09 17:15:56 +00:00
var map = L.map('map').setView([48.396205, -4.477066], 13);
2024-09-16 11:29:02 +00:00
2024-10-09 17:15:56 +00:00
var myicon = L.icon({
iconUrl: "static/images/point.png",
iconSize: [16,16]
})
2024-09-16 11:29:02 +00:00
2024-10-09 17:15:56 +00:00
L.tileLayer('https://tile.jawg.io/jawg-lagoon/{z}/{x}/{y}{r}.png?access-token={accessToken}', {
attribution: '<a href="https://jawg.io" title="Tiles Courtesy of Jawg Maps" target="_blank">&copy; <b>Jawg</b>Maps</a> &copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',
minZoom: 0,
maxZoom: 22,
accessToken: '{{ JAWG_API_KEY }}'
}).addTo(map);
2024-09-16 11:29:02 +00:00
var locations = [
2024-12-27 17:46:40 +00:00
{ coordinates: [48.390703, -4.487735], description: "Multiplexe Liberté" },
{ coordinates: [48.397928, -4.473556], description: "CGR Brest Le Celtic" },
{ coordinates: [48.396202, -4.477066], description: "Les Studios" },
{ coordinates: [48.389641, -4.498722], description: "Pathé Capucins" },
{ coordinates: [48.446953, -4.265552], description: "Cinéma Galaxy" },
2024-09-16 11:29:02 +00:00
];
locations.forEach(function (location) {
2024-10-09 17:15:56 +00:00
new L.Marker(location.coordinates, {icon: myicon})
.addTo(map)
.bindPopup(location.description);
2024-09-16 11:29:02 +00:00
});
</script>
2024-12-27 17:46:40 +00:00
{% endblock %}