2023-11-07 08:51:49 +00:00
|
|
|
<script lang="ts">
|
2025-12-22 02:36:48 +01:00
|
|
|
import * as Sidebar from '@cio/ui/base/sidebar';
|
|
|
|
|
import { CourseSidebar } from '$features/course/components/sidebar';
|
|
|
|
|
import { CourseHeader } from '$features/course/components';
|
|
|
|
|
import * as Page from '@cio/ui/base/page';
|
|
|
|
|
|
2025-11-01 15:49:29 +01:00
|
|
|
interface Props {
|
|
|
|
|
children?: import('svelte').Snippet;
|
2025-12-22 02:36:48 +01:00
|
|
|
path: string;
|
2023-11-07 08:51:49 +00:00
|
|
|
}
|
|
|
|
|
|
2025-12-22 02:36:48 +01:00
|
|
|
let { children, path }: Props = $props();
|
2023-11-07 08:51:49 +00:00
|
|
|
</script>
|
|
|
|
|
|
2025-12-22 02:36:48 +01:00
|
|
|
<Sidebar.Provider>
|
|
|
|
|
<CourseSidebar {path} />
|
|
|
|
|
|
2025-12-25 05:09:27 +01:00
|
|
|
<Sidebar.Inset class="w-[calc(100vw-var(--sidebar-width))] overflow-x-hidden group-data-[collapsible=icon]:w-[calc(100vw-var(--sidebar-width-icon))]">
|
2025-12-22 02:36:48 +01:00
|
|
|
<CourseHeader />
|
|
|
|
|
|
|
|
|
|
<Page.Root
|
2025-12-25 05:09:27 +01:00
|
|
|
class="mx-auto flex px-4 lg:max-w-6xl"
|
2025-12-22 02:36:48 +01:00
|
|
|
>
|
|
|
|
|
{@render children?.()}
|
|
|
|
|
</Page.Root>
|
|
|
|
|
</Sidebar.Inset>
|
|
|
|
|
</Sidebar.Provider>
|