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

28 lines
753 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} />
<Sidebar.Inset>
<CourseHeader />
<Page.Root
class="mx-auto flex w-[calc(100vw-var(--sidebar-width))] overflow-x-hidden px-4 group-data-[collapsible=icon]:w-[calc(100vw-var(--sidebar-width-icon))] lg:max-w-6xl"
>
{@render children?.()}
</Page.Root>
</Sidebar.Inset>
</Sidebar.Provider>