Skip to content

Commit

Permalink
Add schedule link
Browse files Browse the repository at this point in the history
  • Loading branch information
ericthelemur committed Jan 27, 2024
1 parent 301bbf5 commit f63b67e
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 62 deletions.
7 changes: 7 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"workbench.colorCustomizations": {
"activityBar.background": "#3D2A02",
"titleBar.activeBackground": "#563B03",
"titleBar.activeForeground": "#FEFAF0"
}
}
2 changes: 1 addition & 1 deletion config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ event_date_range = "3-4th Feb 2024"
signup_link = "https://oengus.fun/wasd2024"
money_raised = "£9,000"

show_schedule = false
show_schedule = true
55 changes: 25 additions & 30 deletions templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
{% block main_extra %}{% endblock %}
{% block outercontents %}
<article id="content" class="w-100 bg-transparent">

<section class="hero wasd-gradient">
<div id="photos"></div>
<nav class="navbar" role="navigation" aria-label="main navigation">
Expand All @@ -34,10 +34,9 @@
{{ svgs::keys() }}
<div class="descriptor-box">
<div class="backing">
<p>A student-led speedrunning marathon in the UK supporting <a target="_blank"
href="https://specialeffect.org.uk">SpecialEffect</a>.
<p>A student-led speedrunning marathon in the UK supporting <a target="_blank" href="https://specialeffect.org.uk">SpecialEffect</a>.
</p>

<p class="phase-before"><strong>WASD {{ config.extra.event_year }}</strong> starts on <strong>{{ config.extra.event_start_date }}</strong><!--
--><span class="phase-sub">. <br><strong>Submissions close</strong> on <strong>{{ config.extra.subs_close_date }}</strong></span> in <span id="countdown"><!-- Filled in by site.js, shows countdown to sub close or event start, blank otherwise --></span>.
</p>
Expand All @@ -61,18 +60,16 @@
</div>
<svg id="hero-wave-mask" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 142">
<g fill="none" fill-rule="evenodd">
<path class="wave-tint"
d="M0 142h1440V30.9999997c-168.30243 38.8000679-331.54474 59.2070567-489.726918 61.2209662C712.999813 95.2418302 501.330499 8.35625208 334.252643.97570722 222.867406-3.94465603 111.449858 12.4778854 0 50.2433316V142z" />
<path class="wave-mask"
d="M0 142h1440.76408V41.7496602c-217.4358 50.4864131-406.47299 77.1638928-567.111578 80.0324388-240.957881 4.302819-367.332301-78.675841-534.410157-86.0563858C227.857108 30.8053499 114.776326 39.1241339 0 60.6820651V142z" />
<path class="wave-tint" d="M0 142h1440V30.9999997c-168.30243 38.8000679-331.54474 59.2070567-489.726918 61.2209662C712.999813 95.2418302 501.330499 8.35625208 334.252643.97570722 222.867406-3.94465603 111.449858 12.4778854 0 50.2433316V142z" />
<path class="wave-mask" d="M0 142h1440.76408V41.7496602c-217.4358 50.4864131-406.47299 77.1638928-567.111578 80.0324388-240.957881 4.302819-367.332301-78.675841-534.410157-86.0563858C227.857108 30.8053499 114.776326 39.1241339 0 60.6820651V142z" />
</g>
</svg>
</section>


<section id="about" class="section">
<div class="container">

<div>
<div class="content clearfix">
<div id="stopwatch-column" class="float-lg-end d-none d-lg-block ms-3 my-5 pt-5 pb-3">
Expand All @@ -83,7 +80,7 @@ <h1>Warwick's Awesome Speedruns and Demos</h1>
{{ md::load_md(path="front/intro.md") }}
</div>
</div>

<div id="timeline-container">
{% include "parts/timeline.html" %}

Expand All @@ -93,7 +90,7 @@ <h1>Warwick's Awesome Speedruns and Demos</h1>
<strong>Runs Accepted:</strong> Announcing which runs will make up our schedule<br>
<strong>Schedule Announced:</strong> The schedule will be released on all our socials, etc.<br>
<strong>WASD:</strong> The weekend of the event. Can't wait to meet you all!
</p> #}
</p> #}
</div>
<div class="logo-level">
<h4 class="title is-size-4">Partners</h4>
Expand All @@ -118,8 +115,7 @@ <h4 class="title is-size-4">Supporting</h4>
</section>
<div class="event-wrapper">
<svg id="event-top-mask" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1439 162">
<path fill="var(--bs-body-bg, #FAFAFA)" fill-rule="evenodd"
d="M1439 0c-65.34635 47.313797-157.35286 78.980464-276.01953 95C984.980469 119.029304 699 67.029304 461 82.029304 240.338064 95.936569 158.056382 140.76457 30.8945727 158.37993 20.9030912 159.76403 10.6345327 160.98011 0 162L-2 0h1441z" />
<path fill="var(--bs-body-bg, #FAFAFA)" fill-rule="evenodd" d="M1439 0c-65.34635 47.313797-157.35286 78.980464-276.01953 95C984.980469 119.029304 699 67.029304 461 82.029304 240.338064 95.936569 158.056382 140.76457 30.8945727 158.37993 20.9030912 159.76403 10.6345327 160.98011 0 162L-2 0h1441z" />
</svg>

<section id="event" class="section">
Expand All @@ -135,23 +131,22 @@ <h1>Event Info</h1>
</section>

<svg id="event-bottom-mask" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 141">
<path fill="var(--bs-body-bg, #FAFAFA)" fill-rule="evenodd"
d="M0 .10914c87.12525 46.49599 178.68374 73.86863 274.67547 82.11792C418.66306 94.60099 740 24.0293 978 39.0293c220.661936 13.90727 302.943618 58.73527 430.1054273 76.35063 9.9914815 1.3841 21.26004 2.60018 31.8945727 3.62007v22H0V.10914z" />
<path fill="var(--bs-body-bg, #FAFAFA)" fill-rule="evenodd" d="M0 .10914c87.12525 46.49599 178.68374 73.86863 274.67547 82.11792C418.66306 94.60099 740 24.0293 978 39.0293c220.661936 13.90727 302.943618 58.73527 430.1054273 76.35063 9.9914815 1.3841 21.26004 2.60018 31.8945727 3.62007v22H0V.10914z" />
</svg>
</div>

<section id="whats-on" class="section">
<div class="container">
{% if purgecssConfig.extra.show_schedule %}
<span class="phase-schedule" hidden>
{% if config.extra.show_schedule %}
<span class="phase-schedule" hidden>
<a id="schedule"></a>
<h1 class="title is-size-2">Schedule</h1>
<hr class="title-divider" />
<p>Times are listed in GMT. To check other time zones, check <a target="_blank" href="https://warwickspeed.run/signup">Oengus</a></p><br>
<div class="whats-on-wrapper">
{% include "parts/schedule.html" %}
</div>
</span>
</span>
{% endif %}

<h1 class="title is-size-2">What's On</h1>
Expand All @@ -165,19 +160,19 @@ <h1 class="title is-size-2">What's On</h1>
</div>

<span class="phase-sub">
<div class="columns" id="signupBottom">
<div class="column is-8 is-offset-2">
<div class="content has-text-centered">
<p>Want to take part in WASD {{ config.extra.event_year }}? <strong>Submit a run!</strong></p>
<p><a target="_blank" href="https://warwickspeed.run/signup" class="button fs-5 sign-up">Sign up</a></p>
<p><small>Sign ups close on {{ config.extra.subs_close_date }}.</small></p>
<!-- <p class="schedule">Signups for WASD {{ config.extra.event_year }} have closed, but you can still take part by watching along on our <a href="https://warwickspeed.run/signup">Twitch channel</a>.</p> -->
<div class="columns" id="signupBottom">
<div class="column is-8 is-offset-2">
<div class="content has-text-centered">
<p>Want to take part in WASD {{ config.extra.event_year }}? <strong>Submit a run!</strong></p>
<p><a target="_blank" href="https://warwickspeed.run/signup" class="button fs-5 sign-up">Sign up</a></p>
<p><small>Sign ups close on {{ config.extra.subs_close_date }}.</small></p>
<!-- <p class="schedule">Signups for WASD {{ config.extra.event_year }} have closed, but you can still take part by watching along on our <a href="https://warwickspeed.run/signup">Twitch channel</a>.</p> -->
</div>
</div>
</div>
</div>
<div>
</div>

<div>
</div>

</div>
</section>
</article>
Expand Down
2 changes: 1 addition & 1 deletion templates/parts/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
</head>

<script>
const schedulePhase = {% if purgecssConfig.extra.show_schedule %} "phase-schedule" {% else %} "phase-sub-closed" {% endif %}
const schedulePhase = {% if config.extra.show_schedule %} "phase-schedule" {% else %} "phase-sub-closed" {% endif %}

/** Countdown timer **/
const subCloseDate = new Date("{{ config.extra.sub_close_time }}").getTime();
Expand Down
60 changes: 30 additions & 30 deletions templates/parts/schedule.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,88 +37,88 @@ <h3 style="padding-top: 0">Saturday 11th</h3>
<td class="var-time">10:00</td>
<td>RisingStar</td>
<td><span style="font-weight:bold">Chippy</span><br><span style="font-weight:normal">
Gauntlet</span></td>
Gauntlet</span></td>
</tr>
</tbody>
<tbody class="timezone">
<tbody class="timezone">
<tr class="sch-row">
<td class="bst-time">11:10</td>
<td class="var-time">11:10</td>
<td>Podz</td>
<td><span style="font-weight:bold">Super Mario 3D World + Bowser's Fury</span><br><span style="font-weight:normal">
Super Mario 3D World - Any%</span></td>
Super Mario 3D World - Any%</span></td>
</tr>
</tbody>
<tbody class="timezone">
<tbody class="timezone">
<tr class="sch-row">
<td class="bst-time">13:10</td>
<td class="var-time">13:10</td>
<td>HarryTalks</td>
<td><span style="font-weight:bold">Hollow Knight</span><br><span style="font-weight:normal">
Cartographer (Dapper Mapper)</span></td>
Cartographer (Dapper Mapper)</span></td>
</tr>
</tbody>
<tbody class="timezone">
<tbody class="timezone">
<tr class="sch-row">
<td class="bst-time">14:30</td>
<td class="var-time">14:30</td>
<td>ViperUK</td>
<td><span style="font-weight:bold">V-Rally 2</span><br><span style="font-weight:normal">
Europe Championship (Bonus)</span></td>
Europe Championship (Bonus)</span></td>
</tr>
</tbody>
<tbody class="timezone">
<tbody class="timezone">
<tr class="sch-row">
<td class="bst-time">15:10</td>
<td class="var-time">15:10</td>
<td>Break</td>
<td><span style="font-weight:bold"></span><br><span style="font-weight:normal">
</span></td>
</span></td>
</tr>
</tbody>
<tbody class="timezone">
<tbody class="timezone">
<tr class="sch-row">
<td class="bst-time">15:30</td>
<td class="var-time">15:30</td>
<td>grhkm</td>
<td><span style="font-weight:bold">osu!mania (4 keys)</span><br><span style="font-weight:normal">
5 x 6*+ S rank speedrun</span></td>
5 x 6*+ S rank speedrun</span></td>
</tr>
</tbody>
<tbody class="timezone">
<tbody class="timezone">
<tr class="sch-row">
<td class="bst-time">16:00</td>
<td class="var-time">16:00</td>
<td>IronScorpion</td>
<td><span style="font-weight:bold">Mario Kart Wii</span><br><span style="font-weight:normal">
32 Tracks (No Items)</span></td>
32 Tracks (No Items)</span></td>
</tr>
</tbody>
<tbody class="timezone">
<tbody class="timezone">
<tr class="sch-row">
<td class="bst-time">17:40</td>
<td class="var-time">17:40</td>
<td>Fridge</td>
<td><span style="font-weight:bold">Portal 2</span><br><span style="font-weight:normal">
Inbounds No SLA</span></td>
Inbounds No SLA</span></td>
</tr>
</tbody>
<tbody class="timezone">
<tbody class="timezone">
<tr class="sch-row">
<td class="bst-time">19:00</td>
<td class="var-time">19:00</td>
<td>OblivionWing</td>
<td><span style="font-weight:bold">Celeste</span><br><span style="font-weight:normal">
Any% Race/Chase</span></td>
Any% Race/Chase</span></td>
</tr>
</tbody>
<tbody class="timezone">
<tbody class="timezone">
<tr class="sch-row">
<td class="bst-time">19:45</td>
<td class="var-time">19:45</td>
<td>Smol_Panda</td>
<td><span style="font-weight:bold">Celeste</span><br><span style="font-weight:normal">
Any% Race/Chase</span></td>
Any% Race/Chase</span></td>
</tr>
</tbody>
</table>
Expand All @@ -140,52 +140,52 @@ <h3 style="padding-top: 0">Sunday 12th</h3>
<td class="var-time">10:00</td>
<td>miss_oranje_disco_dancer</td>
<td><span style="font-weight:bold">Dokapon Kingdom</span><br><span style="font-weight:normal">
Any% w/o AI</span></td>
Any% w/o AI</span></td>
</tr>
</tbody>
<tbody class="timezone">
<tbody class="timezone">
<tr class="sch-row">
<td class="bst-time">11:50</td>
<td class="var-time">11:50</td>
<td>TheHellfridge</td>
<td><span style="font-weight:bold">Lunistice</span><br><span style="font-weight:normal">
Any% Glitchless (Hana)</span></td>
Any% Glitchless (Hana)</span></td>
</tr>
</tbody>
<tbody class="timezone">
<tbody class="timezone">
<tr class="sch-row">
<td class="bst-time">12:35</td>
<td class="var-time">12:35</td>
<td>pho</td>
<td><span style="font-weight:bold">Sonic & Knuckles</span><br><span style="font-weight:normal">
Any%</span></td>
Any%</span></td>
</tr>
</tbody>
<tbody class="timezone">
<tbody class="timezone">
<tr class="sch-row">
<td class="bst-time">13:20</td>
<td class="var-time">13:20</td>
<td>Servalot</td>
<td><span style="font-weight:bold">SuperTux</span><br><span style="font-weight:normal">
Any% v0.5.1 Forest</span></td>
Any% v0.5.1 Forest</span></td>
</tr>
</tbody>
<tbody class="timezone">
<tbody class="timezone">
<tr class="sch-row">
<td class="bst-time">13:50</td>
<td class="var-time">13:50</td>
<td>Pick</td>
<td><span style="font-weight:bold">Splatoon 3</span><br><span style="font-weight:normal">
Any% (2.0.0+)</span></td>
Any% (2.0.0+)</span></td>
</tr>
</tbody>
<tbody class="timezone">
<tbody class="timezone">
<tr class="sch-row">
<td class="bst-time">15:20</td>
<td class="var-time">15:20</td>
<td>pho & everyone</td>
<td><span style="font-weight:bold">Zool</span><br><span style="font-weight:normal">
Any% Relay</span></td>
Any% Relay</span></td>
</tr>
</tbody>
</table>
Expand Down

0 comments on commit f63b67e

Please sign in to comment.