From 09207e57e240d42758d13fb1a2599ee97812427d Mon Sep 17 00:00:00 2001 From: Jonas Braathen Date: Fri, 10 Jul 2026 02:30:30 +0200 Subject: [PATCH] hide the studio shortcut after the festival --- web/src/components/studio/StudioShortcut.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/web/src/components/studio/StudioShortcut.tsx b/web/src/components/studio/StudioShortcut.tsx index d08ebc7..10b57cf 100644 --- a/web/src/components/studio/StudioShortcut.tsx +++ b/web/src/components/studio/StudioShortcut.tsx @@ -1,8 +1,15 @@ +import { fromZonedTime } from "date-fns-tz"; import Link from "next/link"; import { Icon } from "../general/Icon"; import styles from "./studioShortcut.module.scss"; +// Hidden from this date +// Note that home page revalidation happens at midnight +const showUntil = fromZonedTime("2026-08-16T00:00:00", "Europe/Oslo"); + export const StudioShortcut = () => { + if (new Date() >= showUntil) return null; + return (
@@ -12,7 +19,7 @@ export const StudioShortcut = () => { alt="STUDiO" />
- Alt om studentfestivalen i Oslo
+ Alt om Studentfestivalen i Oslo
Gratis arrangementer hele uka!