-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmap.html
More file actions
71 lines (70 loc) · 1.89 KB
/
Copy pathmap.html
File metadata and controls
71 lines (70 loc) · 1.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Eric's Minecraft Server - Map</title>
<link rel="stylesheet" href="styles/style.css">
<!-- Leaflet CSS -->
<link rel="stylesheet" href="https://unpkg.com/leaflet/dist/leaflet.css">
<style>
/* Use flex layout for full-page design */
html, body {
height: 100%;
margin: 0;
padding: 0;
}
body {
display: flex;
flex-direction: column;
}
header, footer {
flex: 0 0 auto;
}
main {
flex: 1 1 auto;
position: relative;
}
/* Map container fills main */
#map {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
}
/* Prevent image smoothing (ideal for pixel art) */
.leaflet-tile,
.leaflet-image-layer {
image-rendering: pixelated;
image-rendering: crisp-edges;
-ms-interpolation-mode: nearest-neighbor;
}
</style>
</head>
<body>
<header>
<h1>Welcome to Eric's Minecraft Server</h1>
<nav>
<div class="nav-buttons">
<button onclick="window.location.href='index.html'">Home</button>
<button onclick="window.location.href='news.html'">News</button>
<button onclick="window.location.href='gallery.html'">Gallery</button>
<button onclick="window.location.href='map.html'">Map</button>
<button onclick="window.location.href='instructions.html'">Instructions</button>
<button onclick="window.location.href='upcoming.html'">Upcoming</button>
</div>
</nav>
</header>
<main>
<div id="map"></div>
</main>
<footer>
<p>© 2024 Eric's Minecraft Server</p>
</footer>
<!-- Leaflet JS -->
<script src="https://unpkg.com/leaflet/dist/leaflet.js"></script>
<!-- Custom Script -->
<script src="scripts/map.js"></script>
</body>
</html>