We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
hero
Header
1 parent 5a8dba5 commit da6ad5dCopy full SHA for da6ad5d
svelte/src/routes/+layout.svelte
@@ -1,4 +1,6 @@
1
<script lang="ts">
2
+ import { page } from '$app/state';
3
+
4
import Footer from '$lib/components/Footer.svelte';
5
import Header from '$lib/components/Header.svelte';
6
@@ -8,6 +10,8 @@
8
10
9
11
let { children } = $props();
12
13
+ let isIndex = $derived(page.route.id === '/');
14
15
// TODO: implement color scheme support
16
// TODO: implement notification container
17
</script>
@@ -20,8 +24,7 @@
20
24
<!-- TODO: <NotificationContainer position='top-right' /> -->
21
25
<div id="tooltip-container"></div>
22
26
23
-<!-- TODO: pass `hero` prop based on whether we're on the index route -->
-<Header />
27
+<Header hero={isIndex} />
28
29
<main class="main">
30
<div class="inner-main width-limit">
0 commit comments