Skip to content

Commit 3f5bf69

Browse files
committed
Add tickets
1 parent 5dadea2 commit 3f5bf69

4 files changed

Lines changed: 63 additions & 6 deletions

File tree

_includes/nav.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<a href="/#sponsors">Sponsors</a>
55
<a href="/#partners">Partners</a>
66
<a href="/#faqs">FAQs</a>
7+
<a class="tickets" href="/#tickets">Tickets</a>
78
</nav>
89
{% if include.logo %}
910
<a href="/">

_redirects

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
/privacy /privacy-policy
33
/conduct /code-of-conduct
44
/coc /code-of-conduct
5+
/tickets https://ti.to/birminghack/1

css/main.scss

Lines changed: 45 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
@import url("/css/reset.css");
55
@import url("/assets/fonts/iosevka/IosevkaSs08Web.css");
66
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
7+
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css');
78

89
:root {
910
// --font-sans-serif: 'Hind', 'Noto Sans', 'Segoe UI', 'Chivo', sans-serif;
@@ -18,6 +19,7 @@
1819
--color-line: #3a3533;
1920

2021
--color-primary: #50c878;
22+
--color-primary-alt: #359f58;
2123
--color-heading: #eee;
2224
--color-text: #fff;
2325
--color-text-muted: #666;
@@ -183,19 +185,25 @@ nav {
183185
gap: 1rem;
184186
flex-wrap: wrap;
185187
justify-content: flex-end;
188+
186189
}
187190

188191
a:link, a:visited {
189-
color: var(--color-primary)
192+
color: var(--color-primary);
193+
text-decoration: none;
190194
}
191195

192196
nav a:link, nav a:visited {
193197
color: var(--color-text);
194-
font-weight: 700;
195198
text-decoration: none;
199+
200+
&.tickets {
201+
font-weight: 700;
202+
color: var(--color-primary);
203+
}
196204
}
197205

198-
nav a:hover {
206+
nav a:hover, a:hover {
199207
text-decoration: underline;
200208
}
201209

@@ -256,6 +264,35 @@ div.schedule {
256264
}
257265
}
258266

267+
div.tickets {
268+
display: flex;
269+
flex-direction: row;
270+
justify-content: space-between;
271+
align-items: center;
272+
border-top: 2px solid var(--color-line);
273+
border-bottom: 2px solid var(--color-line);
274+
275+
div.tickets-description {
276+
display: flex;
277+
flex-direction: column;
278+
279+
p.tickets-title {
280+
font-size: var(--text-large);
281+
font-family: var(--font-monospace);
282+
font-weight: 500;
283+
}
284+
}
285+
a {
286+
font-family: var(--font-monospace);
287+
font-weight: 700;
288+
font-size: var(--text-larger);
289+
flex-shrink: 0;
290+
background-color: var(--color-primary-alt);
291+
color: var(--color-text);
292+
padding: 0.5rem;
293+
}
294+
}
295+
259296
div.partners-container {
260297
width: 100%;
261298
padding: 1rem 0 0 0;
@@ -345,6 +382,7 @@ div.footer-content {
345382

346383
a {
347384
color: var(--color-text-muted);
385+
text-decoration: underline;
348386
}
349387

350388
.organised-by {
@@ -367,7 +405,6 @@ div.footer-content {
367405

368406
a {
369407
color: var(--color-text);
370-
text-decoration: none;
371408
}
372409

373410
span {
@@ -409,6 +446,10 @@ div.footer-content {
409446
div.navbar {
410447
padding: 1rem 1rem 0 1rem;
411448
}
449+
450+
div.tickets {
451+
flex-direction: column;
452+
}
412453

413454
div.schedule {
414455
div.days {

index.html

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@
5151
title: Doors close
5252
final: false
5353
notes: "birmingHack takes place over both days of the weekend. The event will end no later than 5pm on Sunday."
54+
tickets:
55+
released: true
56+
link: https://ti.to/birminghack/1
5457
sponsors:
5558
- name: Me
5659
logo: asdf
@@ -102,7 +105,7 @@
102105

103106
- question: When will tickets be available?
104107
answer: |
105-
Tickets will be available soon! When they do so, we will post an update on Discord and Instagram.
108+
Tickets are now available!
106109

107110
- question: Why should I attend?
108111
answer: |
@@ -166,6 +169,18 @@ <h3>Welcome to birmingHack!</h3>
166169
have fun!</p>
167170
</div>
168171

172+
{% if page.tickets %}
173+
<div id="tickets" class="tickets section">
174+
<div class="tickets-description">
175+
<p class="tickets-title"><i class="fa-solid fa-ticket"></i> Tickets now available!</p>
176+
<p>
177+
You can now register for birmingHack 2025! Please note that tickets are limited, so make sure to register as soon as possible.
178+
</p>
179+
</div>
180+
<a href="/tickets">Register <i class="fa-solid fa-arrow-right-long"></i></a>
181+
</div>
182+
{% endif %}
183+
169184
<div id="sponsors" class="sponsors section">
170185
<h2 class="section-title">Sponsors</h2>
171186
<div class="partners-container">
@@ -243,7 +258,6 @@ <h3 class="header">{{ day.day }}</h3>
243258
<div id="partners" class="partners section">
244259
<h2 class="section-title">Partners</h2>
245260
<div class="partners-container">
246-
<!-- TBA -->
247261
{% for partner in page.partners %}
248262
<div class="partner" style="{{ 'background-color: #' | append: partner.colour }}">
249263
<a href="{{ partner.url }}" target="_blank" title="{{ partner.name }}">

0 commit comments

Comments
 (0)