Skip to content

Commit cd5dffc

Browse files
committed
feat: disable links no longer relevant post-conference
Disable ticket, remote, and visa page links site-wide, by removing them from the menus and placing a TODO to re-enable next year. The pages themselves still exist. The remote ticket banner at the top of the site was also hidden.
1 parent 1442fec commit cd5dffc

4 files changed

Lines changed: 46 additions & 27 deletions

File tree

src/components/Header.astro

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,15 @@ const activeMenus = NAV_MENUS.map((menu) => ({
111111
),
112112
)
113113
}
114+
<!--
115+
TODO: Re-enable next year!
114116
<li class="nav-item nav-mobile-cta">
115117
<a class="nav-link-btn" href="/jobs">Jobs</a>
116118
</li>
117119
<li class="nav-item nav-mobile-cta">
118120
<a class="nav-link-btn" href="/tickets">Register Now</a>
119121
</li>
122+
-->
120123
</ul>
121124

122125
<button
@@ -140,6 +143,8 @@ const activeMenus = NAV_MENUS.map((menu) => ({
140143
<line x1="21" y1="21" x2="16.65" y2="16.65"></line>
141144
</svg>
142145
</button>
146+
<!--
147+
TODO: Re-enable next year!
143148
<a
144149
href="/discord"
145150
class="nav-icon-btn"
@@ -159,9 +164,13 @@ const activeMenus = NAV_MENUS.map((menu) => ({
159164
></path>
160165
</svg>
161166
</a>
167+
-->
162168
<ThemeToggle />
169+
<!--
170+
TODO: Re-enable next year!
163171
<a href="/jobs" class="nav-cta-desktop">Jobs</a>
164172
<a href="/tickets" class="nav-cta">Register Now</a>
173+
-->
165174
<button
166175
class="nav-toggle"
167176
aria-label="Toggle menu"
@@ -181,7 +190,8 @@ const activeMenus = NAV_MENUS.map((menu) => ({
181190

182191
nav {
183192
position: fixed;
184-
top: 40px;
193+
/* top: 40px when #ep-banner HTML is enabled in Layout.astro */
194+
top: 0;
185195
left: 0;
186196
right: 0;
187197
z-index: 1000;

src/components/sections/hero/hero.astro

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@ PYTHON">
4242
> 18–23 July
4343
</p>
4444
<div class="hero-cta-row">
45+
<!--
46+
TODO: Re-enable next year!
4547
<a href="/tickets" class="hero-cta">Register Now</a>
48+
-->
4649
<a href="#programme" class="hero-cta-alt">View Programme</a>
4750
</div>
4851
<div class="hero-flowers" aria-hidden="true">

src/data/nav.ts

Lines changed: 28 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,11 @@ const L = {
6565
},
6666

6767
// Participate
68-
tickets: { label: "Tickets", url: "/tickets" },
69-
remote: { label: "Remote", url: "/remote" },
68+
// TODO: Re-enable next year!
69+
// tickets: { label: "Tickets", url: "/tickets" },
70+
// remote: { label: "Remote", url: "/remote" },
7071
finaid: { label: "Financial Aid", url: "/finaid" },
71-
visa: { label: "Visa Information", url: "/visa" },
72+
// visa: { label: "Visa Information", url: "/visa" },
7273
volunteering: { label: "Volunteering", url: "/volunteering" },
7374
faq: { label: "FAQ", url: "/faq" },
7475
coc: {
@@ -179,26 +180,27 @@ export const NAV_MENUS: NavMenu[] = [
179180
],
180181
},
181182

182-
// Attend — simple flat list
183-
{
184-
label: "Attend",
185-
url: "/tickets",
186-
sections: [
187-
{
188-
items: [
189-
L.tickets,
190-
L.remote,
191-
L.finaid,
192-
L.visa,
193-
L.volunteering,
194-
L.faq,
195-
L.coc,
196-
L.accessibility,
197-
L.childcare,
198-
],
199-
},
200-
],
201-
},
183+
// TODO: Re-enable next year!
184+
// Attend
185+
// {
186+
// label: "Attend",
187+
// url: "/tickets",
188+
// sections: [
189+
// {
190+
// items: [
191+
// L.tickets,
192+
// L.remote,
193+
// L.finaid,
194+
// L.visa,
195+
// L.volunteering,
196+
// L.faq,
197+
// L.coc,
198+
// L.accessibility,
199+
// L.childcare,
200+
// ],
201+
// },
202+
// ],
203+
// },
202204

203205
// Venue — simple flat list
204206
{
@@ -270,7 +272,9 @@ export const TERMS: Link[] = [
270272
export const FOOTER_COLUMNS: FooterColumn[] = [
271273
{
272274
title: "Quick links",
273-
items: [L.tickets, L.remote, L.krakow, L.visa],
275+
// TODO: Re-enable next year!
276+
// items: [L.tickets, L.remote, L.krakow, L.visa],
277+
items: [L.krakow],
274278
},
275279
{
276280
title: "Programme",

src/layouts/Layout.astro

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,17 @@ const hideFooter = Astro.props.hideFooter ?? false;
6060
</head>
6161
<body>
6262
<!-- ═══════════════════════════════════════════
63-
OLD-EUROPYTHON BANNER
64-
═══════════════════════════════════════════ -->
63+
OLD-EUROPYTHON BANNER (disabled — uncomment to re-enable)
64+
When enabling: also set nav { top: 40px } in Header.astro
65+
═══════════════════════════════════════════
6566
<a
6667
id="ep-banner"
6768
href="/remote"
6869
class="text-white hover:text-white hover:underline text-center px-2 font-bold fixed top-0 w-full h-[40px] z-50 flex items-center justify-center transition-transform duration-300 ease-out"
6970
>
7071
Can’t join us in Kraków? Attend remotely — online options available!
7172
</a>
73+
-->
7274
{
7375
!hideHeader && (
7476
<header>

0 commit comments

Comments
 (0)