New features: - HLS video encoding/streaming (hls routes, hls-encoder) and a media transcripts pipeline (transcripts route + media-transcript queries) - AI assistant chat vs. run model: agent-course-generation worker/queue, run-monitor pane, chat-changes card, content ask-ai bar - Per-theme course-page previews across org landing-page themes (bold, classic, corporate, editorial, etc.) with a shared course token/component set - View-as-student mode and login-link / link-invite invite flows Refactor: - Extract packages/core consolidating config (env, storage, dashboard-url), services and utils previously duplicated under apps/api/src/config - Remove legacy agent service modules (chat-tools, chat-context, context-window, document, fetch-url, lesson-content) - Relax Cross-Origin-Resource-Policy to allow cross-origin media embedding - Add format script to tenant-router so turbo run format covers it
56 lines
2.0 KiB
Svelte
56 lines
2.0 KiB
Svelte
<script lang="ts">
|
|
import type { OrgLandingPageProps } from '../types';
|
|
import SecondaryActionButton from '../secondary-action-button.svelte';
|
|
import { Button } from '../../../base/button';
|
|
import { BlurIn } from '../../animation/blurin';
|
|
import { DotPattern } from '../../animation/dot-pattern';
|
|
import EditableLandingSection from '../editable-section.svelte';
|
|
|
|
interface Props {
|
|
hero: OrgLandingPageProps['hero'];
|
|
showActions?: boolean;
|
|
}
|
|
|
|
let { hero, showActions = true }: Props = $props();
|
|
</script>
|
|
|
|
<EditableLandingSection sectionKey="hero">
|
|
<section
|
|
class="ui:relative ui:bg-[var(--landing-fg)] ui:text-[var(--landing-bg)] ui:overflow-hidden ui:py-24 ui:sm:py-32 ui:px-6 ui:lg:px-8"
|
|
>
|
|
{#if hero.image}
|
|
<div class="ui:absolute ui:inset-0 ui:opacity-10">
|
|
<img src={hero.image} alt="Background" class="ui:w-full ui:h-full ui:object-cover ui:grayscale" />
|
|
</div>
|
|
{/if}
|
|
<DotPattern fillColor="rgb(255 255 255 / 0.35)" class="ui:opacity-[0.06]" />
|
|
<div class="ui:relative ui:max-w-3xl ui:mx-auto ui:text-center">
|
|
<BlurIn
|
|
class="ui:text-4xl ui:sm:text-5xl ui:lg:text-6xl ui:font-bold ui:tracking-tight ui:mb-6 ui:leading-tight ui:drop-shadow-none"
|
|
>
|
|
{hero.heading}
|
|
</BlurIn>
|
|
<p class="ui:text-lg ui:sm:text-xl ui:text-[var(--landing-bg)]/80 ui:mb-10">{hero.subheading}</p>
|
|
{#if showActions}
|
|
<div class="ui:flex ui:flex-col ui:sm:flex-row ui:justify-center ui:gap-4">
|
|
<Button
|
|
href={hero.primaryAction.href}
|
|
disabled={hero.primaryAction.disabled ?? false}
|
|
size="lg"
|
|
class="ui:px-8 ui:font-semibold"
|
|
>
|
|
{hero.primaryAction.label}
|
|
</Button>
|
|
{#if hero.secondaryAction}
|
|
<SecondaryActionButton
|
|
href={hero.secondaryAction.href}
|
|
label={hero.secondaryAction.label}
|
|
variant="classic"
|
|
/>
|
|
{/if}
|
|
</div>
|
|
{/if}
|
|
</div>
|
|
</section>
|
|
</EditableLandingSection>
|