hide the studio shortcut after the festival

This commit is contained in:
2026-07-10 02:30:30 +02:00
parent 9a3cd0032f
commit 09207e57e2
+8 -1
View File
@@ -1,8 +1,15 @@
import { fromZonedTime } from "date-fns-tz";
import Link from "next/link"; import Link from "next/link";
import { Icon } from "../general/Icon"; import { Icon } from "../general/Icon";
import styles from "./studioShortcut.module.scss"; 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 = () => { export const StudioShortcut = () => {
if (new Date() >= showUntil) return null;
return ( return (
<div className={styles.studioShortcut}> <div className={styles.studioShortcut}>
<Link href="/studio" className={styles.button}> <Link href="/studio" className={styles.button}>
@@ -12,7 +19,7 @@ export const StudioShortcut = () => {
alt="STUDiO" alt="STUDiO"
/> />
<div className={styles.text}> <div className={styles.text}>
<span className={styles.heading}>Alt om studentfestivalen i Oslo</span><br /> <span className={styles.heading}>Alt om Studentfestivalen i Oslo</span><br />
<span>Gratis arrangementer hele uka!</span> <span>Gratis arrangementer hele uka!</span>
</div> </div>
<div className={styles.icon}> <div className={styles.icon}>