2026-04-12 08:58:41 +01:00
|
|
|
<script lang="ts">
|
2026-06-07 18:43:05 +01:00
|
|
|
import type { OrgLandingPageProps } from '../types';
|
|
|
|
|
import OrgLandingPageEmbed from '../embed.svelte';
|
|
|
|
|
import OrgLandingPageLinks from '../links.svelte';
|
|
|
|
|
import OrgLandingPageCallout from '../callout.svelte';
|
|
|
|
|
import OrgLandingPageFooter from '../landing-page-footer.svelte';
|
|
|
|
|
import BoldNav from './nav.svelte';
|
|
|
|
|
import BoldHero from './hero.svelte';
|
|
|
|
|
import BoldCourseCard from './course-card.svelte';
|
|
|
|
|
import { Button } from '../../../base/button';
|
|
|
|
|
import { DotPattern } from '../../animation/dot-pattern';
|
|
|
|
|
import { themeStyle } from '../theme-style';
|
2026-04-12 08:58:41 +01:00
|
|
|
|
|
|
|
|
let {
|
|
|
|
|
orgName,
|
|
|
|
|
logoUrl,
|
|
|
|
|
navItems,
|
|
|
|
|
authAction,
|
|
|
|
|
hero,
|
|
|
|
|
courses,
|
|
|
|
|
hasMoreCourses = false,
|
|
|
|
|
disableCourseLinks = false,
|
|
|
|
|
embed,
|
|
|
|
|
callout,
|
2026-05-18 03:47:22 +01:00
|
|
|
links,
|
2026-05-23 12:24:57 +01:00
|
|
|
footer,
|
|
|
|
|
labels
|
2026-04-12 08:58:41 +01:00
|
|
|
}: OrgLandingPageProps = $props();
|
|
|
|
|
</script>
|
|
|
|
|
|
2026-05-23 12:24:57 +01:00
|
|
|
<div
|
|
|
|
|
class="ui:min-h-screen ui:bg-[var(--landing-bg)] ui:text-[var(--landing-fg)] ui:font-sans"
|
|
|
|
|
style={themeStyle('bold')}
|
|
|
|
|
>
|
2026-04-12 08:58:41 +01:00
|
|
|
<BoldNav {orgName} {logoUrl} {navItems} {authAction} />
|
|
|
|
|
|
|
|
|
|
<main>
|
|
|
|
|
<BoldHero {hero} />
|
|
|
|
|
|
2026-05-23 12:24:57 +01:00
|
|
|
<section class="ui:relative ui:bg-[var(--landing-card-soft)]/30 ui:px-6 ui:overflow-hidden ui:mb-12">
|
2026-04-12 08:58:41 +01:00
|
|
|
<DotPattern class="ui:opacity-[0.15]" />
|
|
|
|
|
<div class="ui:relative ui:max-w-7xl ui:mx-auto">
|
|
|
|
|
<div class="ui:flex ui:items-end ui:justify-between ui:mb-12">
|
2026-05-23 12:24:57 +01:00
|
|
|
<h2 class="ui:text-4xl ui:font-black ui:tracking-tight">{labels?.catalogHeading ?? 'Latest Courses'}</h2>
|
2026-04-12 08:58:41 +01:00
|
|
|
</div>
|
|
|
|
|
<div class="ui:grid ui:grid-cols-1 ui:md:grid-cols-2 ui:gap-8">
|
|
|
|
|
{#each courses as course, index (course.id)}
|
2026-05-23 12:24:57 +01:00
|
|
|
<BoldCourseCard {course} {disableCourseLinks} {labels} />
|
2026-04-12 08:58:41 +01:00
|
|
|
{/each}
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{#if hasMoreCourses}
|
|
|
|
|
<div class="ui:mt-12 ui:flex ui:justify-center">
|
|
|
|
|
<Button
|
|
|
|
|
href={disableCourseLinks ? undefined : '/courses'}
|
|
|
|
|
size="lg"
|
|
|
|
|
class="ui:rounded-xl ui:px-8"
|
|
|
|
|
disabled={disableCourseLinks}
|
|
|
|
|
>
|
2026-05-23 12:24:57 +01:00
|
|
|
{labels?.browseCoursesLabel ?? 'View more courses'}
|
2026-04-12 08:58:41 +01:00
|
|
|
</Button>
|
|
|
|
|
</div>
|
|
|
|
|
{/if}
|
|
|
|
|
</div>
|
|
|
|
|
</section>
|
|
|
|
|
</main>
|
|
|
|
|
|
2026-05-23 12:24:57 +01:00
|
|
|
<OrgLandingPageLinks {links} {labels} variant="bold" />
|
2026-05-18 03:47:22 +01:00
|
|
|
|
2026-05-23 12:24:57 +01:00
|
|
|
<OrgLandingPageEmbed {embed} {labels} variant="bold" />
|
2026-04-12 08:58:41 +01:00
|
|
|
|
2026-05-23 12:24:57 +01:00
|
|
|
<OrgLandingPageCallout {callout} {labels} variant="bold" />
|
2026-04-12 08:58:41 +01:00
|
|
|
|
2026-05-18 03:47:22 +01:00
|
|
|
<OrgLandingPageFooter {orgName} {logoUrl} {footer} variant="bold" />
|
2026-04-12 08:58:41 +01:00
|
|
|
</div>
|