149 lines
4.3 KiB
HTML
149 lines
4.3 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="fr">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Carte du parcours</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css" />
|
|
<style>
|
|
body {
|
|
font-family: Arial, sans-serif;
|
|
margin: 20px;
|
|
background-color: whitesmoke;
|
|
}
|
|
#container {
|
|
display: flex;
|
|
gap: 20px;
|
|
}
|
|
#map {
|
|
height: 600px;
|
|
width: 60%;
|
|
border-radius: 5%;
|
|
border: 1px solid #aaa;
|
|
}
|
|
#fiche {
|
|
padding-right:20px;
|
|
width: 40%;
|
|
max-height: 600px;
|
|
overflow-y: auto;
|
|
border: 1px solid #aaa;
|
|
padding: 10px;
|
|
box-sizing: border-box;
|
|
background-color:#095228;
|
|
border-radius: 5%;
|
|
}
|
|
#fiche ul {
|
|
padding-left: 20px;
|
|
list-style-type: disc;
|
|
overflow-wrap: break-word;
|
|
word-wrap: break-word;
|
|
word-break: break-word;
|
|
white-space: normal;
|
|
max-width: 90%;
|
|
}
|
|
|
|
#fiche li {
|
|
white-space: normal;
|
|
overflow-wrap: break-word;
|
|
}
|
|
body h1 {
|
|
display:flex;
|
|
align-items:center;
|
|
justify-content:center;
|
|
text-align: center;
|
|
color: black;
|
|
font-style: bold;
|
|
margin-bottom: 20px;
|
|
background-color:brown;
|
|
border-radius:12px;
|
|
height: 75px;
|
|
}
|
|
#fiche h2, #fiche h3, #fiche p, #fiche li {
|
|
color: white;
|
|
}
|
|
#fiche img {
|
|
max-width: 100%;
|
|
height: auto;
|
|
margin-top: 10px;
|
|
border-radius: 5px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<h1>Fiche du parcours</h1>
|
|
<div id="container">
|
|
<div id="map"></div>
|
|
<div id="fiche">
|
|
<h2>Chemin des</h2>
|
|
<p><strong>Ville :</strong> Bourg en Bresse</p>
|
|
<p><strong>Département :</strong> 0</p>
|
|
<p><strong>Difficulté :</strong> 3</p>
|
|
<p><strong>Durée (heures) :</strong> 3.8</p>
|
|
<p><strong>Longueur (km) :</strong> 24.6</p>
|
|
<img src="data/parcours1.png">
|
|
<h3>Étape 1</h3>
|
|
<p><strong>Personnages :</strong></p>
|
|
<ul><li>Clémentine</li>
|
|
<li>Léo</li>
|
|
</ul>
|
|
<p><strong>Dialogues :</strong></p>
|
|
<ul><li>Bienvenue à tous, voici le centre historique !</li>
|
|
<li>Regardez cette magnifique horloge, elle date du XIXe siècle !</li>
|
|
</ul>
|
|
<h3>Étape 2</h3>
|
|
<p><strong>Personnages :</strong></p>
|
|
<ul><li>Aurélie</li>
|
|
<li>Sami</li>
|
|
</ul>
|
|
<p><strong>Dialogues :</strong></p>
|
|
<ul><li>Ici, on trouve les meilleurs fromages de la région !</li>
|
|
<li>Combien de colonnes vois-tu à l'entrée ?</li>
|
|
</ul>
|
|
<h3>Étape 3</h3>
|
|
<p><strong>Personnages :</strong></p>
|
|
<ul><li>Juliette</li>
|
|
<li>Marc</li>
|
|
</ul>
|
|
<p><strong>Dialogues :</strong></p>
|
|
<ul><li>La Reyssouze apporte de la fraîcheur en été.</li>
|
|
<li>Regarde cette inscription ancienne sur la pierre, tu arrives à la lire ?</li>
|
|
</ul>
|
|
<h3>Étape 4</h3>
|
|
<p><strong>Personnages :</strong></p>
|
|
<ul><li>Claire</li>
|
|
<li>Nathalie</li>
|
|
</ul>
|
|
<p><strong>Dialogues :</strong></p>
|
|
<ul><li>Voilà l'abbaye ! Admire l'architecture.</li>
|
|
<li>C'est ici la dernière étape. Observez bien la date !</li>
|
|
</ul>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"></script>
|
|
<script>
|
|
var map = L.map('map').setView([45.5, 1.5], 10); // Vue centrée
|
|
|
|
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
|
|
attribution: '© OpenStreetMap contributors'
|
|
}).addTo(map);
|
|
L.marker([45.62, -0.966517]).addTo(map).bindPopup("<b>Étape 1</b><br><b>Personnages :</b><ul><li>Quentin</li><li>Malo</li></ul><b>Textes :</b><ul><li>ligne de dialogue 1</li><li>ligne de dialogue 2</li></ul>");
|
|
L.marker([-44.38, 1.03348]).addTo(map).bindPopup("<b>Étape 2</b><br><b>Personnages :</b><ul><li>Antoine</li><li>Giovanni</li></ul><b>Textes :</b><ul><li>ligne de dialogue 1</li><li>ligne de dialogue 2</li></ul>");
|
|
var latlngs = [
|
|
[45.62, -0.966517],
|
|
[-44.38, 1.03348],
|
|
];
|
|
|
|
var polyline = L.polyline(latlngs, {
|
|
color: 'purple',
|
|
weight: 2,
|
|
dashArray: '10, 10',
|
|
opacity: 0.7
|
|
}).addTo(map);
|
|
map.fitBounds(polyline.getBounds());
|
|
|
|
</script>
|
|
</body>
|
|
</html>
|