From 3e2afab0823f852f89d329282ea65bed4825b295 Mon Sep 17 00:00:00 2001 From: michelleyeoh Date: Mon, 13 Apr 2026 20:57:30 -0700 Subject: [PATCH 1/2] added form link --- .../_components/HomeJudging/HackersChoiceAwards.tsx | 3 ++- .../(hackers)/_components/HomeJudging/HeroWaiting.tsx | 8 ++++++-- .../HomeJudging/_components/DoneJudgingModal.tsx | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/app/(pages)/(hackers)/_components/HomeJudging/HackersChoiceAwards.tsx b/app/(pages)/(hackers)/_components/HomeJudging/HackersChoiceAwards.tsx index f76c5825a..fc5f22f11 100644 --- a/app/(pages)/(hackers)/_components/HomeJudging/HackersChoiceAwards.tsx +++ b/app/(pages)/(hackers)/_components/HomeJudging/HackersChoiceAwards.tsx @@ -21,7 +21,8 @@ export default function HackerChoiceAward() { title="Hackers Choice Awards" long_text="While you wait, put in your choice for your favorite hack! You are allowed 1 vote, and you cannot vote for your own team. " button_text="VIEW PROJECTS" - button_link="" + button_link="https://hackdavis-2026.devpost.com/project-gallery" + is_external={true} button_color="D1F76E" text_color="1A3819" /> diff --git a/app/(pages)/(hackers)/_components/HomeJudging/HeroWaiting.tsx b/app/(pages)/(hackers)/_components/HomeJudging/HeroWaiting.tsx index a2471fdcf..df86356b3 100644 --- a/app/(pages)/(hackers)/_components/HomeJudging/HeroWaiting.tsx +++ b/app/(pages)/(hackers)/_components/HomeJudging/HeroWaiting.tsx @@ -27,6 +27,8 @@ function WaitingCard({ linkLabel, href, }: WaitingCardProps) { + const isExternalLink = Boolean(href && /^(https?:)?\/\//.test(href)); + const handleLinkClick = (event: MouseEvent) => { if (!href?.startsWith('#')) { return; @@ -57,12 +59,14 @@ function WaitingCard({ {linkLabel && href ? ( @@ -89,7 +93,7 @@ const waitingCards: WaitingCardProps[] = [ description: 'While you wait, put in your choice for your favorite hack! You are allowed 1 vote, and you cannot vote for your own team. ', linkLabel: 'HACKERS CHOICE AWARD', - href: '#hackers-choice-awards', + href: 'https://forms.gle/ubHnU9hv69GDZQfd8', }, { imageSrc: judgingAsset, diff --git a/app/(pages)/(hackers)/_components/HomeJudging/_components/DoneJudgingModal.tsx b/app/(pages)/(hackers)/_components/HomeJudging/_components/DoneJudgingModal.tsx index 80492e750..b809af47f 100644 --- a/app/(pages)/(hackers)/_components/HomeJudging/_components/DoneJudgingModal.tsx +++ b/app/(pages)/(hackers)/_components/HomeJudging/_components/DoneJudgingModal.tsx @@ -42,7 +42,7 @@ export default function DoneJudgingModal({ onClose }: DoneJudgingModalProps) { 2026. Please wait until Closing Ceremony for judging results! In the meantime, put in your vote for{' '} Date: Mon, 13 Apr 2026 21:07:08 -0700 Subject: [PATCH 2/2] added secondary button for hackers choice --- .../HomeHacking/_components/TextCard.tsx | 67 +++++++++++++------ .../HomeJudging/HackersChoiceAwards.tsx | 3 + .../_components/HomeJudging/HeroWaiting.tsx | 2 +- 3 files changed, 49 insertions(+), 23 deletions(-) diff --git a/app/(pages)/(hackers)/_components/HomeHacking/_components/TextCard.tsx b/app/(pages)/(hackers)/_components/HomeHacking/_components/TextCard.tsx index 311922597..c4818af31 100644 --- a/app/(pages)/(hackers)/_components/HomeHacking/_components/TextCard.tsx +++ b/app/(pages)/(hackers)/_components/HomeHacking/_components/TextCard.tsx @@ -1,5 +1,6 @@ import Link from 'next/link'; import Image from 'next/image'; +import { MdHowToVote } from 'react-icons/md'; import button_arrow from 'public/hackers/beginners/button_arrow.svg'; interface TextCardProps { @@ -11,6 +12,9 @@ interface TextCardProps { button_color: string; text_color: string; is_external?: boolean; + secondary_button_text?: string; + secondary_button_link?: string; + secondary_is_external?: boolean; } export default function TextCard({ @@ -22,36 +26,55 @@ export default function TextCard({ button_color, text_color, is_external = false, + secondary_button_text, + secondary_button_link, + secondary_is_external = false, }: TextCardProps) { return (

{short_text}

{title}

{long_text}

- -
- - + + + + {secondary_button_text && secondary_button_link ? ( + +