diff --git a/src/content.config.ts b/src/content.config.ts index 2afa340..3837201 100755 --- a/src/content.config.ts +++ b/src/content.config.ts @@ -240,6 +240,7 @@ const upcomingCohortsSectionCollection = defineCollection({ link: z.string().optional(), blogLink: z.string().optional(), closed: z.boolean().optional(), + status: z.string().optional(), }), ), }), diff --git a/src/content/sections/upcoming-cohorts.md b/src/content/sections/upcoming-cohorts.md index 1a7f4d1..570aec2 100644 --- a/src/content/sections/upcoming-cohorts.md +++ b/src/content/sections/upcoming-cohorts.md @@ -13,6 +13,7 @@ cohorts: description: 'Networks' duration: '3 weeks' dates: 'starting March 30' + status: 'Closing soon!' link: 'https://sovereignengineering.typeform.com/SEC-07' blogLink: 'https://primal.net/soveng/sec-07-the-network-stack' - name: 'SEC-08' diff --git a/src/layouts/partials/CallToAction.astro b/src/layouts/partials/CallToAction.astro index 1f94fcf..253c5c1 100644 --- a/src/layouts/partials/CallToAction.astro +++ b/src/layouts/partials/CallToAction.astro @@ -65,7 +65,11 @@ const resolvedImage = imageMap[call_to_action.data.image] || null; )}

- Can't make March? Check the dates of our upcoming cohorts. + Can't make April? Check the dates of our{" "} + + upcoming cohorts + + .

diff --git a/src/layouts/partials/UpcomingCohorts.astro b/src/layouts/partials/UpcomingCohorts.astro index f4a44cf..8b7f0f2 100644 --- a/src/layouts/partials/UpcomingCohorts.astro +++ b/src/layouts/partials/UpcomingCohorts.astro @@ -12,7 +12,7 @@ const { upcoming_cohorts } = Astro.props;

{upcoming_cohorts.data.cohorts.map( - (cohort: { name: string; description?: string; duration?: string; dates: string; link?: string; blogLink?: string; closed?: boolean }) => { + (cohort: { name: string; description?: string; duration?: string; dates: string; link?: string; blogLink?: string; closed?: boolean; status?: string }) => { const descriptionPart = cohort.description ? `: ${cohort.description}` : ''; const durationDesktop = cohort.duration ? `${cohort.duration}, ` : ''; const durationMobile = cohort.duration ? `${cohort.duration.replace('weeks', 'wks')}, ` : ''; @@ -33,7 +33,7 @@ const { upcoming_cohorts } = Astro.props; ); return ( -
+
{nameAndDescription} {` (`} @@ -44,10 +44,22 @@ const { upcoming_cohorts } = Astro.props; {cohort.closed ? ( - Applications closed ) : cohort.link && ( - <> - - - Apply - + <> + {" - "} + + + + {cohort.status ? cohort.status : "Apply"} + + + )}
);