diff --git a/apps/api/src/routers/user.py b/apps/api/src/routers/user.py index c585700f..50d595a6 100644 --- a/apps/api/src/routers/user.py +++ b/apps/api/src/routers/user.py @@ -29,7 +29,7 @@ router = APIRouter() -DEADLINE = datetime(2024, 1, 15, 8, 1, tzinfo=timezone.utc) +DEADLINE = datetime(2025, 1, 11, 8, 1, tzinfo=timezone.utc) class IdentityResponse(BaseModel): diff --git a/apps/site/src/app/(main)/(home)/sections/Landing/Landing.tsx b/apps/site/src/app/(main)/(home)/sections/Landing/Landing.tsx index dffb4f2e..08806d86 100644 --- a/apps/site/src/app/(main)/(home)/sections/Landing/Landing.tsx +++ b/apps/site/src/app/(main)/(home)/sections/Landing/Landing.tsx @@ -4,6 +4,7 @@ import { Suspense } from "react"; import { PerspectiveCamera } from "@react-three/drei"; import hasDeadlinePassed from "@/lib/utils/hasDeadlinePassed"; +import haveApplicationsOpened from "@/lib/utils/haveApplicationsOpened"; import View from "@/components/canvas/View"; import Button from "@/lib/components/Button/Button"; @@ -11,6 +12,7 @@ import styles from "./Landing.module.css"; const Landing = () => { const deadlinePassed = hasDeadlinePassed(); + const applicationsOpened = haveApplicationsOpened(); return (
@@ -25,9 +27,11 @@ const Landing = () => { IrvineHacks 2025 {deadlinePassed ? ( -
diff --git a/apps/site/src/lib/utils/hasDeadlinePassed.ts b/apps/site/src/lib/utils/hasDeadlinePassed.ts index 18d86e59..fd8d422f 100644 --- a/apps/site/src/lib/utils/hasDeadlinePassed.ts +++ b/apps/site/src/lib/utils/hasDeadlinePassed.ts @@ -1,5 +1,5 @@ export default function hasDeadlinePassed() { - const pstDeadline = "2024-01-15T00:00:59"; + const pstDeadline = "2025-01-11T00:00:59"; const utcOffset = "-08:00"; const deadline = new Date(pstDeadline + utcOffset); diff --git a/apps/site/src/lib/utils/haveApplicationsOpened.ts b/apps/site/src/lib/utils/haveApplicationsOpened.ts new file mode 100644 index 00000000..1c80f109 --- /dev/null +++ b/apps/site/src/lib/utils/haveApplicationsOpened.ts @@ -0,0 +1,9 @@ +export default function haveApplicationsOpened() { + const pstDeadline = "2024-12-6T00:00:59"; + const utcOffset = "-08:00"; + + const deadline = new Date(pstDeadline + utcOffset); + const now = new Date(); + + return now > deadline; +}