2026-04-12 08:58:41 +01:00
|
|
|
<script lang="ts">
|
|
|
|
|
import type { OrgLandingPageProps } from './types';
|
|
|
|
|
import OrgLandingPageEmbed from './embed.svelte';
|
2026-05-18 03:47:22 +01:00
|
|
|
import OrgLandingPageLinks from './links.svelte';
|
2026-04-12 08:58:41 +01:00
|
|
|
import OrgLandingPageCallout from './callout.svelte';
|
|
|
|
|
import OrgLandingPageFooter from './landing-page-footer.svelte';
|
|
|
|
|
import ClassicNav from './classic/nav.svelte';
|
|
|
|
|
import ClassicHero from './classic/hero.svelte';
|
2026-05-23 12:24:57 +01:00
|
|
|
import ClassicCourseCard from './classic/course-card.svelte';
|
2026-04-12 08:58:41 +01:00
|
|
|
import { Button } from '../../base/button';
|
2026-05-23 12:24:57 +01:00
|
|
|
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-section)] ui:text-[var(--landing-fg)] ui:font-sans"
|
|
|
|
|
style={themeStyle('classic')}
|
|
|
|
|
>
|
2026-04-12 08:58:41 +01:00
|
|
|
<ClassicNav {orgName} {logoUrl} {navItems} {authAction} />
|
|
|
|
|
|
|
|
|
|
<main>
|
|
|
|
|
<ClassicHero {hero} />
|
|
|
|
|
|
|
|
|
|
<section class="ui:py-10 ui:px-6 ui:lg:px-8 ui:max-w-7xl ui:mx-auto">
|
|
|
|
|
<div class="ui:text-center ui:mb-8">
|
2026-05-23 12:24:57 +01:00
|
|
|
<h2 class="ui:text-3xl ui:font-bold ui:text-[var(--landing-fg)]">
|
|
|
|
|
{labels?.catalogHeading ?? 'Featured Programs'}
|
|
|
|
|
</h2>
|
|
|
|
|
<div class="ui:mt-6 ui:h-px ui:w-24 ui:bg-[var(--landing-border)] ui:mx-auto"></div>
|
2026-04-12 08:58:41 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="ui:grid ui:grid-cols-1 ui:sm:grid-cols-2 ui:lg:grid-cols-3 ui:gap-8 ui:justify-items-center">
|
|
|
|
|
{#each courses as course, index (course.id)}
|
2026-05-23 12:24:57 +01:00
|
|
|
<ClassicCourseCard {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'}
|
|
|
|
|
variant="outline"
|
|
|
|
|
size="lg"
|
|
|
|
|
class="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}
|
|
|
|
|
</section>
|
|
|
|
|
</main>
|
|
|
|
|
|
2026-05-23 12:24:57 +01:00
|
|
|
<OrgLandingPageLinks {links} {labels} variant="classic" />
|
2026-05-18 03:47:22 +01:00
|
|
|
|
2026-05-23 12:24:57 +01:00
|
|
|
<OrgLandingPageEmbed {embed} {labels} variant="classic" />
|
2026-04-12 08:58:41 +01:00
|
|
|
|
2026-05-23 12:24:57 +01:00
|
|
|
<OrgLandingPageCallout {callout} {labels} variant="classic" />
|
2026-04-12 08:58:41 +01:00
|
|
|
|
2026-05-18 03:47:22 +01:00
|
|
|
<OrgLandingPageFooter {orgName} {logoUrl} {footer} variant="classic" />
|
2026-04-12 08:58:41 +01:00
|
|
|
</div>
|