From a3bb12927902fb4e496d2131e85650528b551a91 Mon Sep 17 00:00:00 2001 From: Francesco Sansalvadore Date: Tue, 8 Oct 2024 17:20:10 +0200 Subject: [PATCH] Feat: events october (#29748) * add event files * add end date * 2 days of hacking * hackathon info * full stop * add judges * yc hackathon * update event content * fix event image import --- ...scale-to-millions-generative-ai-humata.mdx | 4 +- .../2024-10-24__supabase-at-next-conf.mdx | 13 ++++++ ...-supabase-ai-hackathon-at-y-combinator.mdx | 42 +++++++++++++++++++ apps/www/pages/events/[slug].tsx | 21 +++++++--- 4 files changed, 73 insertions(+), 7 deletions(-) create mode 100644 apps/www/_events/2024-10-24__supabase-at-next-conf.mdx create mode 100644 apps/www/_events/2024-11-22-supabase-ai-hackathon-at-y-combinator.mdx diff --git a/apps/www/_events/2024-08-21-scale-to-millions-generative-ai-humata.mdx b/apps/www/_events/2024-08-21-scale-to-millions-generative-ai-humata.mdx index a6413a8126e..5ea1db8ca0d 100644 --- a/apps/www/_events/2024-08-21-scale-to-millions-generative-ai-humata.mdx +++ b/apps/www/_events/2024-08-21-scale-to-millions-generative-ai-humata.mdx @@ -12,8 +12,8 @@ company: { name: 'Humata', website_url: 'https://www.humata.ai/', - logo: 'webinars/scale-to-millions-generative-ai-humata/humata-dark.svg', - logo_light: 'webinars/scale-to-millions-generative-ai-humata/humata-light.svg', + logo: '/images/events/webinars/scale-to-millions-generative-ai-humata/humata-dark.svg', + logo_light: '/images/events/webinars/scale-to-millions-generative-ai-humata/humata-light.svg', } categories: - webinar diff --git a/apps/www/_events/2024-10-24__supabase-at-next-conf.mdx b/apps/www/_events/2024-10-24__supabase-at-next-conf.mdx new file mode 100644 index 00000000000..c99da201ec3 --- /dev/null +++ b/apps/www/_events/2024-10-24__supabase-at-next-conf.mdx @@ -0,0 +1,13 @@ +--- +title: 'Supabase at Next.js Conf' +subtitle: 'where miami builds cool shit.' +type: 'talk' +onDemand: false +disable_page_build: true +link: { href: https://nextjs.org/conf, target: '_blank' } +date: '2024-10-24T10:00:00.000-07:00' +timezone: 'America/Los_Angeles' +duration: '5 hours' +categories: + - talk +--- diff --git a/apps/www/_events/2024-11-22-supabase-ai-hackathon-at-y-combinator.mdx b/apps/www/_events/2024-11-22-supabase-ai-hackathon-at-y-combinator.mdx new file mode 100644 index 00000000000..e4f508dc2eb --- /dev/null +++ b/apps/www/_events/2024-11-22-supabase-ai-hackathon-at-y-combinator.mdx @@ -0,0 +1,42 @@ +--- +title: 'Supabase AI Hackathon at Y Combinator' +meta_title: 'Supabase AI Hackathon at Y Combinator' +subtitle: 'Join us at Y Combinator for two days of hacking with Supabase.' +meta_description: 'Join us at Y Combinator for two days of hacking with Supabase.' +type: 'hackathon' +onDemand: false +main_cta: + { + url: 'https://forms.supabase.com/yai-hackathon', + target: '_blank', + label: 'Apply now', + disabled_label: 'Registrations closed', + } +date: '2024-11-22T10:00:00.000-07:00' +end_date: '2024-11-23T18:00:00.000-07:00' +timezone: 'America/Los_Angeles' +duration: '2 days' +categories: + - hackathon +speakers: 'ant_wilson,paul_copplestone' +speakers_label: 'Judges' +--- + +On November 22 and 23 we're hosting an AI-focused hackathon at Y Combinator in San Francisco. + +We've already seen [several 1M+ user AI applications](https://x.com/kiwicopple/status/1754777201092784209) built on Supabase and are hosting this event to support the next wave. YC has generously offered to host the event and will be there to judge projects alongside Supabase founders Copple and Ant. + +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. + +### Jury + +- YC partners +- Ant Wilson - CTO and Co-Founder at Supabse +- Paul Copplestone - CEO and Co-Founder at Supabase + +### Prizes + +- Supabase credits and swag +- Dinner with Supabase founders + +We encourage everyone to apply and hope to see you there! diff --git a/apps/www/pages/events/[slug].tsx b/apps/www/pages/events/[slug].tsx index 6addee6c8e6..e58f0407d9f 100644 --- a/apps/www/pages/events/[slug].tsx +++ b/apps/www/pages/events/[slug].tsx @@ -71,7 +71,9 @@ interface EventData { timezone?: string tags?: string[] date: string + end_date?: string speakers: string + speakers_label?: string image?: string thumb?: string thumb_light?: string @@ -147,15 +149,22 @@ const EventPage = ({ event }: InferGetStaticPropsType) => return authors.find((author) => author.author_id === speakerId) }) .filter(isNotNullOrUndefined) + const hadEndDate = event.end_date?.length - const IS_REGISTRATION_OPEN = event.onDemand || Date.parse(event.date) > Date.now() + const IS_REGISTRATION_OPEN = + event.onDemand || + (hadEndDate ? Date.parse(event.end_date!) > Date.now() : Date.parse(event.date) > Date.now()) const ogImageUrl = encodeURI( `${process.env.NODE_ENV === 'development' ? 'http://127.0.0.1:54321' : 'https://obuldanrptloktxcffvn.supabase.co'}/functions/v1/og-images?site=events&eventType=${event.type}&title=${event.meta_title ?? event.title}&description=${event.meta_description ?? event.description}&date=${dayjs(event.date).tz(event.timezone).format(`DD MMM YYYY`)}&duration=${event.duration}` ) const meta = { - title: `${event.meta_title ?? event.title} | ${dayjs(event.date).tz(event.timezone).format(`DD MMM YYYY`)} | ${capitalize(event.type)}`, + title: `${event.meta_title ?? event.title} | ${dayjs(event.date) + .tz(event.timezone) + .format( + hadEndDate ? `DD` : `DD MMM YYYY` + )}${hadEndDate ? dayjs(event.end_date).tz(event.timezone).format(` - DD MMM`) : ''} | ${capitalize(event.type)}`, description: event.meta_description ?? event.description, url: `https://supabase.com/events/${event.slug}`, image: ogImageUrl, @@ -353,7 +362,7 @@ const EventPage = ({ event }: InferGetStaticPropsType) => className="h-5 aspect-[9/1] transition-opacity opacity-100 hover:opacity-90" > ) => priority /> ) =>