dylans-bday/map.html

73 lines
2.6 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Birthday map!!</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.7.1/leaflet.css" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.7.1/leaflet.js"></script>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f0f0f0;
}
.container {
max-width: 800px;
margin: 0 auto;
padding: 20px;
}
h1 {
text-align: center;
color: #e91e63;
}
#map {
height: 400px;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.gift-info {
margin-top: 20px;
padding: 15px;
background-color: #fff;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.gift-info h2 {
color: #e91e63;
}
</style>
</head>
<body>
<div class="container">
<h1>Happy Birthday, Dylan!!</h1>
<div id="map"></div>
<div class="gift-info">
<p>I've got surprises at these three locations on the map! Just text me where you'd like to go first :))</p>
<p>Enjoy ❤️❤️</p>
<iframe width="560" height="315" src="https://www.youtube.com/embed/d2Mq6wxwCQA?si=rv-Iw1srmfOV_d6K" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</div>
</div>
<script>
var map = L.map('map').setView([52.52, 13.405], 12);
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
}).addTo(map);
var locations = [
{name: "Dussmann (I know Curious Fox would have been cuter but they close at 19:()", lat: 52.5183385, lon: 13.3840262},
{name: "Moim Restaurant", lat: 52.4972435, lon: 13.2886007},
{name: "Wullenweberstr. 9", lat: 52.5187725, lon: 13.3292697}
];
locations.forEach(function(loc) {
L.marker([loc.lat, loc.lon]).addTo(map)
.bindPopup(loc.name);
});
</script>
</body>
</html>