2026-05-18 03:47:22 +01:00
|
|
|
<script lang="ts">
|
|
|
|
|
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 TechNav from './tech/nav.svelte';
|
|
|
|
|
import TechHero from './tech/hero.svelte';
|
2026-05-23 12:24:57 +01:00
|
|
|
import TechCourseCard from './tech/course-card.svelte';
|
2026-05-18 03:47:22 +01:00
|
|
|
import { Button } from '../../base/button';
|
2026-05-23 12:24:57 +01:00
|
|
|
import { themeStyle } from './theme-style';
|
2026-05-18 03:47:22 +01:00
|
|
|
|
|
|
|
|
let {
|
|
|
|
|
orgName,
|
|
|
|
|
logoUrl,
|
|
|
|
|
navItems,
|
|
|
|
|
authAction,
|
|
|
|
|
hero,
|
|
|
|
|
courses,
|
|
|
|
|
hasMoreCourses = false,
|
|
|
|
|
disableCourseLinks = false,
|
|
|
|
|
embed,
|
|
|
|
|
callout,
|
|
|
|
|
links,
|
2026-05-23 12:24:57 +01:00
|
|
|
footer,
|
|
|
|
|
labels
|
2026-05-18 03:47:22 +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('tech')}
|
|
|
|
|
>
|
2026-05-18 03:47:22 +01:00
|
|
|
<main>
|
|
|
|
|
<TechHero {hero}>
|
|
|
|
|
{#snippet navigation()}
|
|
|
|
|
<TechNav {orgName} {logoUrl} {navItems} {authAction} />
|
|
|
|
|
{/snippet}
|
|
|
|
|
</TechHero>
|
|
|
|
|
|
|
|
|
|
{#if courses.length > 0}
|
|
|
|
|
<section class="ui:py-24 ui:px-6">
|
|
|
|
|
<div class="ui:max-w-[1280px] ui:mx-auto">
|
|
|
|
|
<div class="ui:flex ui:items-end ui:justify-between ui:flex-wrap ui:gap-4 ui:mb-14">
|
|
|
|
|
<div>
|
2026-05-23 12:24:57 +01:00
|
|
|
<p
|
|
|
|
|
class="ui:font-mono ui:text-xs ui:tracking-widest ui:uppercase ui:text-[var(--landing-accent)] ui:mb-3"
|
|
|
|
|
>
|
|
|
|
|
{labels?.catalogEyebrow ?? '// catalog'}
|
|
|
|
|
</p>
|
|
|
|
|
<h2 class="ui:text-4xl ui:lg:text-5xl ui:font-extrabold ui:tracking-tight ui:m-0">
|
|
|
|
|
{labels?.catalogHeading ?? 'Latest courses'}
|
|
|
|
|
</h2>
|
2026-05-18 03:47:22 +01:00
|
|
|
</div>
|
|
|
|
|
{#if hasMoreCourses}
|
|
|
|
|
<Button
|
|
|
|
|
href={disableCourseLinks ? undefined : '/courses'}
|
|
|
|
|
variant="outline"
|
|
|
|
|
class="ui:rounded-none ui:font-mono ui:text-sm"
|
|
|
|
|
disabled={disableCourseLinks}
|
|
|
|
|
>
|
2026-05-23 12:24:57 +01:00
|
|
|
{labels?.browseCoursesLabel ?? 'view all →'}
|
2026-05-18 03:47:22 +01:00
|
|
|
</Button>
|
|
|
|
|
{/if}
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div
|
2026-05-23 12:24:57 +01:00
|
|
|
class="ui:grid ui:grid-cols-1 ui:md:grid-cols-2 ui:lg:grid-cols-3 ui:border-t ui:border-l ui:border-[var(--landing-border)]"
|
2026-05-18 03:47:22 +01:00
|
|
|
>
|
|
|
|
|
{#each courses as course, index (course.id)}
|
2026-05-23 12:24:57 +01:00
|
|
|
<TechCourseCard {course} {disableCourseLinks} {labels} />
|
2026-05-18 03:47:22 +01:00
|
|
|
{/each}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</section>
|
|
|
|
|
{/if}
|
|
|
|
|
</main>
|
|
|
|
|
|
2026-05-23 12:24:57 +01:00
|
|
|
<OrgLandingPageLinks {links} {labels} variant="tech" />
|
2026-05-18 03:47:22 +01:00
|
|
|
|
2026-05-23 12:24:57 +01:00
|
|
|
<OrgLandingPageEmbed {embed} {labels} variant="tech" />
|
2026-05-18 03:47:22 +01:00
|
|
|
|
2026-05-23 12:24:57 +01:00
|
|
|
<OrgLandingPageCallout {callout} {labels} variant="tech" />
|
2026-05-18 03:47:22 +01:00
|
|
|
|
|
|
|
|
<OrgLandingPageFooter {orgName} {logoUrl} {footer} variant="tech" />
|
|
|
|
|
</div>
|