banner now controlled by Content and ContentSidebar components
This commit is contained in:
@@ -1,10 +1,23 @@
|
||||
<script lang="ts">
|
||||
import Banner2 from "$lib/banner2.svelte";
|
||||
import type { BannerContent } from "$lib/components/banner-content";
|
||||
import ScrollTopButton from "$lib/components/scroll-top-button.svelte";
|
||||
import type { Snippet } from "svelte";
|
||||
|
||||
let { children } = $props();
|
||||
let {
|
||||
children,
|
||||
bannerContent,
|
||||
}: {
|
||||
children: Snippet,
|
||||
bannerContent?: BannerContent;
|
||||
} = $props();
|
||||
</script>
|
||||
|
||||
<div class="main-content">
|
||||
{#if bannerContent}
|
||||
<Banner2 content={bannerContent} />
|
||||
{/if}
|
||||
|
||||
<ScrollTopButton />
|
||||
{@render children()}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user