-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathindex.html
More file actions
121 lines (108 loc) · 4.92 KB
/
index.html
File metadata and controls
121 lines (108 loc) · 4.92 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
---
layout: page
styles:
- /css/main.css
- /css/ball/2026/main.css
- "https://unpkg.com/leaflet@1.9.4/dist/leaflet.css"
title: CSS Ball
favicon: /ball/favicon.ico
---
{% assign ball = site.data.ball['2026'] %}
<div class="text-center-div margin-top margin-bottom section-details">
<h1 class="title">
{{ball.name}} {{ball.year}}
</h1>
<h2>
<span class="avoidwrap">{{ball.location}}</span> • <span class="avoidwrap">{{ball.date}}</span>
</h2>
<h3 id="count"><br></h3>
{% for link in ball.links %}
<a href='{{link.url}}' class="button {% if link.url == '' %}empty"{% else %}" href='{{link.url}}' {% endif %}>
{{link.text}}{% if link.url == '' %} (Coming Soon){% endif %}</a>
{% endfor %}
</div>
<hr class="bleed-bottom">
<div class="text-center-div margin-top margin-bottom section-info" id="venue">
<h2 class="subtitle mobile-only">The Venue</h2>
<img class="image" src="/assets/images/ball-26/CSS Ball 2025 Group Photo.jpg" alt="Image of the Horton Suite, where the CSS Ball is being held.">
<div class="description-left text-center-div">
<h2 class="subtitle">The Venue</h2>
<p class="text-block">Macdonald Burlington Hotel<br><br>
We'll have exclusive access to several rooms and facilities including a dedicated bar area, gorgeous dining room, and of course the dancefloor!<br><br>
We'll also have a cloakroom available to store coats and bags.
</p>
</div>
</div>
<hr class="bleed-top">
<div class="section-tickets" id="tickets">
<div class="icon">
<img class="icon" src="/assets/images/ball-26/Ticket.png" alt="A cartoon image of a ticket with the text 'CSS Ball, Macdonald Burlington Hotel, 27th March, Admit One'"/>
</div>
<div class="text text-center-div">
<h2 class="subtitle">Tickets</h2>
<p class="text-block">We have several different ticket types, designed to give you the most options possible! <br><br> Ticket prices for members are heavily discounted so be sure to pick up a membership if you haven't already!
<br>
<table class="ticket-table">
<tr>
<th><p class="text-block">Ticket Type</p></th>
<th><p class="text-block">Members' Price</p></th>
<th><p class="text-block">Non-Members' Price</p></th>
</tr>
{% for ticket in ball.tickets %}
<tr>
<td><p class="text-block">{{ ticket.type }}</p></td>
<td><p class="text-block"><span class="highlight">{{ ticket.member-price }}</span></p></td>
<td><p class="text-block"><span class="highlight">{{ ticket.non-member-price }}</span></p></td>
</tr>
{% endfor %}
</table>
<br>
<div class="ticket-buttons">
<a class="button" href="https://www.guildofstudents.com/events/6531/12923/">Buy Tickets</a>
<a class="button" href="https://cssbham.com/join">Buy Membership</a>
</div>
</div>
</div>
<hr>
<div class="text-center-div margin-bottom section-faq" id="faq">
<h2 class="subtitle">FAQs</h2>
{% for qanda in ball.faq %}
<div class="faq">
<h3 class="subsubtitle question">{{ qanda.question }}</h3>
<p class="text-block answer">{{ qanda.answer }}</p>
</div>
{% endfor %}
</div>
<hr>
<div class="margin-top margin-bottom section-info">
<div id="map" style="width: 100%; height: 300px;"></div>
</div>
<hr>
<script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"></script>
<script>
const pos = [52.47881, -1.89882];
let L = window.L;
let map = L.map('map').setView(pos, 17);
L.marker(pos).addTo(map);
L.tooltip(pos, {content: 'Burlington Hotel', permanent: true, offset: [5, 0]}).addTo(map);
L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', {
maxZoom: 19,
attribution: '© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'
}).addTo(map);
const countDownDate = new Date("Mar 27, 2026 19:00:00").getTime();
(function updateTimer() {
let now = new Date().getTime();
let distance = countDownDate - now;
let days = Math.floor(distance / (1000 * 60 * 60 * 24));
let hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
let minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
let seconds = Math.floor((distance % (1000 * 60)) / 1000);
document.getElementById("count").innerHTML = days + " <span>days</span> " + hours + " <span>hours</span> "
+ minutes + " <span>minutes</span> " + seconds + " <span>seconds</span>";
if (distance < 0) {
document.getElementById("count").innerHTML = "<a href='https://cssbham.com/join'>cssbham.com/join</a>";
} else {
setTimeout(updateTimer, 1000)
}
})();
</script>