From 900ce6eb7fec16171d35160ddd5379ae6517a020 Mon Sep 17 00:00:00 2001 From: Ian Dai <56898254+IanWearsHat@users.noreply.github.com> Date: Mon, 18 Dec 2023 01:28:03 -0800 Subject: [PATCH] Setup/application preface (#110) Preface is shown before actual application. Clicking button will add query parameter /apply?prefaceAccepted=true which will allow the application component to render Advertises mentor and volunteer forms at bottom --- apps/site/src/app/apply/page.tsx | 76 +++++++++++-------- .../ApplyConfirmation/ApplyConfirm.tsx | 11 +++ .../ConfirmationDetails.module.scss | 16 ++++ .../ApplyConfirmation/ConfirmationDetails.tsx | 49 ++++++++++++ 4 files changed, 122 insertions(+), 30 deletions(-) create mode 100644 apps/site/src/app/apply/sections/ApplyConfirmation/ApplyConfirm.tsx create mode 100644 apps/site/src/app/apply/sections/ApplyConfirmation/ConfirmationDetails.module.scss create mode 100644 apps/site/src/app/apply/sections/ApplyConfirmation/ConfirmationDetails.tsx diff --git a/apps/site/src/app/apply/page.tsx b/apps/site/src/app/apply/page.tsx index f706083e..c469ccc3 100644 --- a/apps/site/src/app/apply/page.tsx +++ b/apps/site/src/app/apply/page.tsx @@ -3,6 +3,7 @@ import Image from "next/image"; import koiLeft from "@/assets/images/koi-swim-left.png"; import koiRight from "@/assets/images/koi-swim-right.png"; +import ApplyConfirm from "./sections/ApplyConfirmation/ApplyConfirm"; import Form from "./sections/Form/Form"; import Title from "./sections/Title/Title"; @@ -10,37 +11,52 @@ import styles from "./Apply.module.scss"; export const revalidate = 60; -export default function Apply() { +export default function Apply({ + searchParams, +}: { + searchParams?: { + prefaceAccepted?: string; + }; +}) { + const applyBody = + searchParams !== undefined && + searchParams?.prefaceAccepted === "true" ? ( + <> +
+ By submitting an application for IrvineHacks 2024, I understand + that IrvineHacks will take place in person during the day from + January 26 to 28, and that IrvineHacks will not be providing + transportation or overnight accommodations. In addition, I + understand that I must check in at certain times on all three + event days in order to be eligible to win prizes. Lastly, I + acknowledge that I am currently a student enrolled in an + accredited high school, college, or university in the United + States and will be over the age of 18 by January 26th, 2024. +
+ + Applications are due on January 14th, 2024 at 11:59PM PST. + + ++ Interested in helping out instead? Consider applying to be a{" "} + + mentor + {" "} + or a{" "} + + volunteer + + . +
+