Updating copy on YC hackathon -- event is full (#30462)

* Updating copy on YC hackathon -- event is full

* disable event cta

---------

Co-authored-by: Francesco Sansalvadore <f.sansalvadore@gmail.com>
This commit is contained in:
Craig CannonandFrancesco Sansalvadore authored and GitHub committed 2024-11-13 21:00:01 -05:00
1 parent f7292dce8c
commit eca93011b1
2 files changed
+10 -6

No files matched your search

@@ -8,10 +8,11 @@ og_image: '/images/events/hackathons/supabase-ai-hackathon-at-y-combinator/yc-ha
onDemand: false
main_cta:
{
url: 'https://forms.supabase.com/yai-hackathon',
url: '',
target: '_blank',
label: 'Apply now',
disabled_label: 'Registrations closed',
label: 'Applications closed',
disabled_label: 'Applications closed',
disabled: true,
}
date: '2024-11-22T10:00:00.000-07:00'
end_date: '2024-11-23T18:00:00.000-07:00'
@@ -29,7 +30,7 @@ We've already seen [several 1M+ user AI applications](https://x.com/kiwicopple/s
[Anthropic](https://www.anthropic.com) is also supporting the hackathon and will provide credits to every team.
Because we have limited capacity, we've created [a very short application](https://forms.supabase.com/yai-hackathon). We’ll keep the form open for a few weeks and let you know if you’re in by early November.
**This event is full and invite only.**
### Jury
+5 -2
View File
@@ -49,6 +49,7 @@ type CTA = {
url: string
label?: string
disabled_label?: string
disabled?: boolean
target?: '_blank' | '_self'
}
@@ -289,7 +290,9 @@ const EventPage = ({ event }: InferGetStaticPropsType<typeof getStaticProps>) =>
type="primary"
size="medium"
className="mt-2"
disabled={!IS_REGISTRATION_OPEN}
disabled={
!IS_REGISTRATION_OPEN || event.main_cta?.disabled || event.main_cta?.disabled
}
asChild
>
<Link
@@ -381,7 +384,7 @@ const EventPage = ({ event }: InferGetStaticPropsType<typeof getStaticProps>) =>
type="primary"
size="medium"
className="mt-2"
disabled={!IS_REGISTRATION_OPEN}
disabled={!IS_REGISTRATION_OPEN || event.main_cta?.disabled}
asChild
>
<Link