-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmap.html
More file actions
323 lines (299 loc) · 16 KB
/
map.html
File metadata and controls
323 lines (299 loc) · 16 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
<!DOCTYPE html>
<html lang="en">
<script>if(localStorage.getItem('theme')==='light')document.documentElement.classList.add('light');</script>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Campus Map - Pwn2Play CTF - DMU Hackers</title>
<meta name="description" content="Find your way around Pwn2Play: Core Incursion. Gateway House, DSU Awards Venue, and after-party route around Leicester.">
<meta property="og:title" content="Campus Map - Pwn2Play CTF">
<meta property="og:description" content="Venue locations for Pwn2Play: Core Incursion at De Montfort University.">
<meta property="og:type" content="website">
<meta property="og:url" content="https://dmuhackers.com/map.html">
<meta property="og:image" content="https://dmuhackers.com/img/site-content/logo/1200x630.png">
<link rel="canonical" href="https://dmuhackers.com/map.html">
<link rel="icon" href="favicon.ico" type="image/x-icon">
<link rel="apple-touch-icon" sizes="180x180" href="img/site-content/logo/180x180.png">
<link rel="manifest" href="manifest.json">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="preconnect" href="https://cdnjs.cloudflare.com" crossorigin>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css" integrity="sha384-t1nt8BQoYMLFN5p42tRAtuAAFQaCQODekUVeKKZrEnEyp4H2R0RHFz0KWpmj7i8g" crossorigin="anonymous">
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css" integrity="sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY=" crossorigin="">
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="css/map.css">
<link rel="stylesheet" href="css/theme-toggle.css">
</head>
<body>
<a href="#map-content" class="skip-link">Skip to content</a>
<!-- Navigation -->
<nav class="nav" id="navbar">
<div class="nav__inner">
<a href="index.html" class="nav__logo">
<span class="nav__logo-text">DMU Hackers</span>
</a>
<ul class="nav__links" id="navLinks">
<li><a href="index.html" class="nav__link">Home</a></li>
<li><a href="P2P.html" class="nav__link">Pwn2Play</a></li>
<li><a href="P2P.html#schedule" class="nav__link">Schedule</a></li>
<li><a href="P2P.html#rules" class="nav__link">Rules</a></li>
<li><a href="sponsors.html" class="nav__link">Sponsors</a></li>
<li class="nav__mobile-cta"><a href="https://discord.gg/Vvrk4kK" class="nav__link nav__link--cta" target="_blank" rel="noopener noreferrer"><i class="fab fa-discord"></i> Join Us</a></li>
</ul>
<div class="nav__actions">
<a href="https://discord.gg/Vvrk4kK" class="nav__link nav__link--cta" target="_blank" rel="noopener noreferrer"><i class="fab fa-discord"></i> Join Us</a>
<button class="nav__theme-toggle" id="themeToggle" aria-label="Toggle light mode" type="button"><i class="fas fa-sun"></i><i class="fas fa-moon"></i></button>
<button class="nav__toggle" id="navToggle" aria-label="Toggle navigation">
<span></span><span></span><span></span>
</button>
</div>
</div>
</nav>
<!-- Hero -->
<section class="hero hero--compact hero--map">
<canvas id="heroCanvas" class="hero__canvas" aria-hidden="true"></canvas>
<div class="hero__bg"></div>
<div class="hero__content">
<span class="section__tag">Find Your Way</span>
<h1 class="hero__title">Campus <span class="hero__accent">Map</span></h1>
<p class="hero__sub">All the key venues for Pwn2Play: Core Incursion, from the CTF to the after-party.</p>
</div>
<div class="hero__scroll">
<span>Scroll</span>
<div class="hero__scroll-line"></div>
</div>
</section>
<!-- Map Content -->
<section id="map-content" class="section">
<div class="container">
<!-- Overview Map -->
<div class="map-overview">
<div class="section__header">
<span class="section__tag">Overview</span>
<h2 class="section__title">All Venues</h2>
<p class="section__subtitle">The three key locations for the day, all within walking distance of each other in Leicester city centre.</p>
</div>
<div class="map-embed map-embed--large">
<div id="overviewMap" style="width:100%;height:400px;"></div>
</div>
</div>
</div>
</section>
<!-- Venue Cards -->
<section class="section section--alt">
<div class="container">
<!-- Venue 1: Gateway House -->
<div class="venue" id="ctf-venue">
<div class="venue__info">
<div class="venue__marker venue__marker--accent">
<i class="fas fa-flag-checkered"></i>
</div>
<div class="venue__details">
<span class="venue__tag">09:00 – 18:00</span>
<h3 class="venue__name">Gateway House — CTF Venue</h3>
<p class="venue__address">Gateway House, Floor 5<br>De Montfort University<br>The Gateway, Leicester LE1 9BH</p>
<ul class="venue__notes">
<li><i class="fas fa-door-open"></i> Doors open at 08:20</li>
<li><i class="fas fa-wifi"></i> Student & guest WiFi available</li>
<li><i class="fas fa-laptop"></i> Bring your own machine</li>
</ul>
<a href="https://www.openstreetmap.org/?mlat=52.6294&mlon=-1.1381#map=18/52.6294/-1.1381" class="btn btn--ghost btn--sm" target="_blank" rel="noopener noreferrer"><i class="fas fa-diamond-turn-right"></i> Get Directions</a>
</div>
</div>
<div class="venue__map">
<div class="map-embed">
<div id="mapGateway" class="venue-leaflet" style="height:320px;"></div>
</div>
</div>
</div>
<!-- Venue 2: DSU -->
<div class="venue venue--reverse" id="awards-venue">
<div class="venue__info">
<div class="venue__marker venue__marker--gold">
<i class="fas fa-trophy"></i>
</div>
<div class="venue__details">
<span class="venue__tag">19:00 – 20:30</span>
<h3 class="venue__name">DSU — Awards Ceremony</h3>
<p class="venue__address">De Montfort Students' Union<br>Campus Centre Building<br>Mill Ln, Leicester LE2 7DR</p>
<ul class="venue__notes">
<li><i class="fas fa-door-open"></i> Doors open at 18:40</li>
<li><i class="fas fa-trophy"></i> Prizes & awards for top teams</li>
<li><i class="fas fa-walking"></i> Right next door to Gateway House</li>
</ul>
<a href="https://www.openstreetmap.org/?mlat=52.6297&mlon=-1.1383#map=18/52.6297/-1.1383" class="btn btn--ghost btn--sm" target="_blank" rel="noopener noreferrer"><i class="fas fa-diamond-turn-right"></i> Get Directions</a>
</div>
</div>
<div class="venue__map">
<div class="map-embed">
<div id="mapDSU" class="venue-leaflet" style="height:320px;"></div>
</div>
</div>
</div>
<!-- Venue 3: After Party -->
<div class="venue" id="afterparty-venue">
<div class="venue__info">
<div class="venue__marker venue__marker--cyan">
<i class="fas fa-champagne-glasses"></i>
</div>
<div class="venue__details">
<span class="venue__tag">20:30 onwards</span>
<h3 class="venue__name">After Party — Social Route</h3>
<p class="venue__address">Various venues<br>Leicester City Centre</p>
<ul class="venue__notes">
<li><i class="fas fa-route"></i> Social route with multiple stops</li>
<li><i class="fas fa-users"></i> Joint event with other DMU societies</li>
<li><i class="fas fa-glass-cheers"></i> Everyone welcome, competitors or not</li>
</ul>
<a href="https://www.openstreetmap.org/?mlat=52.6364&mlon=-1.1331#map=17/52.6364/-1.1331" class="btn btn--ghost btn--sm" target="_blank" rel="noopener noreferrer"><i class="fas fa-diamond-turn-right"></i> Get Directions</a>
</div>
</div>
<div class="venue__map">
<div class="map-embed">
<div id="mapAfterParty" class="venue-leaflet" style="height:320px;"></div>
</div>
</div>
</div>
</div>
</section>
<!-- Quick Links -->
<section class="section">
<div class="container">
<div class="section__header">
<span class="section__tag">Quick Links</span>
<h2 class="section__title">Useful Info</h2>
</div>
<div class="cards cards--three">
<div class="card" style="text-align:center;">
<div class="card__icon" style="margin:0 auto 22px;"><i class="fas fa-train"></i></div>
<h3 class="card__title">Getting Here</h3>
<p class="card__text">Leicester train station is a 15-minute walk from campus. Multiple bus routes stop nearby.</p>
</div>
<div class="card" style="text-align:center;">
<div class="card__icon" style="margin:0 auto 22px;"><i class="fas fa-car"></i></div>
<h3 class="card__title">Parking</h3>
<p class="card__text">NCP Leicester St Nicholas Circle (LE1 4LB) or free street parking along Eastern Boulevard.</p>
</div>
<div class="card" style="text-align:center;">
<div class="card__icon" style="margin:0 auto 22px;"><i class="fas fa-utensils"></i></div>
<h3 class="card__title">Food & Drink</h3>
<p class="card__text">Several cafes and shops surround campus. The DSU bar opens from 18:00 for the awards event.</p>
</div>
</div>
<div style="display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin-top:32px;">
<a href="P2P.html" class="btn btn--primary"><i class="fas fa-arrow-left"></i> Back to Pwn2Play</a>
<a href="register.html" class="btn btn--ghost"><i class="fas fa-user-plus"></i> Register</a>
</div>
</div>
</section>
<!-- Footer -->
<footer class="footer">
<div class="container">
<div class="footer__top">
<div class="footer__col">
<div class="footer__brand">
<img src="img/site-content/logo.png" alt="DMU Hackers logo" class="footer__logo" loading="lazy">
<span>DMU Hackers</span>
</div>
<p class="footer__desc">De Montfort University's cyber security society. Hacking, learning, and competing since 2015.</p>
<div class="footer__socials">
<a href="https://twitter.com/dmuhackers" target="_blank" rel="noopener noreferrer" aria-label="Twitter"><i class="fab fa-x-twitter"></i></a>
<a href="https://github.com/DMUHackers" target="_blank" rel="noopener noreferrer" aria-label="GitHub"><i class="fab fa-github"></i></a>
<a href="https://www.instagram.com/hackers.dmu" target="_blank" rel="noopener noreferrer" aria-label="Instagram"><i class="fab fa-instagram"></i></a>
<a href="https://www.linkedin.com/company/dmu-hackers/" target="_blank" rel="noopener noreferrer" aria-label="LinkedIn"><i class="fab fa-linkedin-in"></i></a>
<a href="https://discord.gg/Vvrk4kK" target="_blank" rel="noopener noreferrer" aria-label="Discord"><i class="fab fa-discord"></i></a>
</div>
</div>
<div class="footer__col">
<h4 class="footer__heading">Navigate</h4>
<nav class="footer__nav" aria-label="Footer navigation">
<a href="index.html">Home</a>
<a href="P2P.html">Pwn2Play</a>
<a href="P2P.html#schedule">Schedule</a>
<a href="P2P.html#rules">Rules</a>
</nav>
</div>
<div class="footer__col">
<h4 class="footer__heading">Events</h4>
<nav class="footer__nav" aria-label="Events navigation">
<a href="P2P.html#podium">Results</a>
<a href="sponsors.html">Sponsors</a>
<a href="P2P.html#afterparty">After Party</a>
</nav>
</div>
<div class="footer__col">
<h4 class="footer__heading">Join</h4>
<nav class="footer__nav" aria-label="Join navigation">
<a href="https://discord.gg/Vvrk4kK" target="_blank" rel="noopener noreferrer">Discord Server</a>
<a href="https://www.demontfortsu.com/organisation/dmuhackers/" target="_blank" rel="noopener noreferrer">DSU Page</a>
<a href="sponsors.html">Sponsors</a>
<a href="resources.html">Resources</a>
</nav>
</div>
</div>
<div class="footer__bottom">
<p class="footer__copy">© 2015–<span id="footerYear"></span> DMU Hackers | Pwning since 2015</p>
<p class="footer__copy footer__copy--subtle">Made with <span class="footer__heart"><3</span> by the committee</p>
</div>
</div>
</footer>
<button class="back-to-top" id="backToTop" aria-label="Back to top">
<i class="fas fa-chevron-up"></i>
</button>
<script src="js/main.js" defer></script>
<script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js" integrity="sha256-20nQCchB9co0qIjJZRGuk2/Z9VM+kNiyxNV1lvTlZBo=" crossorigin=""></script>
<script>
document.addEventListener('DOMContentLoaded', function () {
var tileUrl = 'https://{s}.basemaps.cartocdn.com/rastertiles/voyager/{z}/{x}/{y}{r}.png';
var attr = '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> © <a href="https://carto.com/">CARTO</a>';
var venues = [
{ lat: 52.6294, lng: -1.1381, title: 'Gateway House', sub: 'CTF Venue', icon: 'fa-flag-checkered', color: '#c8102e', glow: 'rgba(200,16,46,.4)' },
{ lat: 52.6297, lng: -1.1383, title: 'DSU', sub: 'Awards Ceremony', icon: 'fa-trophy', color: '#ffd700', glow: 'rgba(255,215,0,.35)' },
{ lat: 52.6364, lng: -1.1331, title: 'After Party', sub: 'Social Route', icon: 'fa-champagne-glasses', color: '#00e4ff', glow: 'rgba(0,228,255,.35)' }
];
function makeIcon(v, large) {
var s = large ? 40 : 32;
var fs = large ? 16 : 13;
return L.divIcon({
className: 'map-pin',
html: '<div class="map-pin__pulse" style="background:' + v.glow + ';"></div>' +
'<div class="map-pin__dot" style="width:' + s + 'px;height:' + s + 'px;background:' + v.color + ';box-shadow:0 0 16px ' + v.glow + ', 0 2px 8px rgba(0,0,0,.5);">' +
'<i class="fas ' + v.icon + '" style="font-size:' + fs + 'px;color:#fff;"></i></div>' +
(large ? '<span class="map-pin__label" style="border-color:' + v.color + ';">' + v.title + '</span>' : ''),
iconSize: [s, s],
iconAnchor: [s / 2, s / 2],
popupAnchor: [0, -(s / 2) - 4]
});
}
function makePopup(v) {
return '<div style="text-align:center;font-family:var(--font-display),sans-serif;">' +
'<strong style="font-size:14px;">' + v.title + '</strong><br>' +
'<span style="font-size:12px;opacity:.7;">' + v.sub + '</span></div>';
}
function initMap(id, opts) {
var m = L.map(id, { scrollWheelZoom: false, zoomControl: opts.zoomControl !== false });
L.tileLayer(tileUrl, { attribution: attr, maxZoom: 19 }).addTo(m);
return m;
}
/* Overview map — all 3 venues */
var overview = initMap('overviewMap', { zoomControl: true });
venues.forEach(function (v) {
L.marker([v.lat, v.lng], { icon: makeIcon(v, true), title: v.title })
.addTo(overview)
.bindPopup(makePopup(v));
});
overview.fitBounds(venues.map(function (v) { return [v.lat, v.lng]; }), { padding: [50, 50] });
/* Individual venue maps */
var ids = ['mapGateway', 'mapDSU', 'mapAfterParty'];
var zooms = [17, 17, 16];
venues.forEach(function (v, i) {
var m = initMap(ids[i], { zoomControl: false });
m.setView([v.lat, v.lng], zooms[i]);
L.marker([v.lat, v.lng], { icon: makeIcon(v, false), title: v.title })
.addTo(m)
.bindPopup(makePopup(v));
});
});
</script>
</body>
</html>