Files
classroomio/apps/dashboard/src/routes/courses/[id]/+layout.svelte
T

28 lines
761 B
Svelte
Raw Normal View History

2023-11-07 08:51:49 +00:00
<script lang="ts">
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;
path: string;
2023-11-07 08:51:49 +00:00
}
let { children, path }: Props = $props();
2023-11-07 08:51:49 +00:00
</script>
<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))]">
<CourseHeader />
<Page.Root
2025-12-25 05:09:27 +01:00
class="mx-auto flex px-4 lg:max-w-6xl"
>
{@render children?.()}
</Page.Root>
</Sidebar.Inset>
</Sidebar.Provider>