Skip to content

Commit 774b287

Browse files
committed
Add divider to Hero section
1 parent 43dbc52 commit 774b287

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/lib/blocks/Hero.svelte

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@
55
import Vanta from "$lib/components/Vanta.svelte";
66
import Button from "$lib/components/Button.svelte";
77
import ImageCompare from "$lib/components/ImageCompare.svelte";
8+
import Divider from "$lib/components/Divider.svelte";
89
910
export let id = "";
1011
export let classes = "";
12+
export let divider = false;
1113
1214
// Hero section buttons
1315
export let buttons = [];
@@ -65,6 +67,10 @@
6567
<div class="container aspect-video hero-image py-5">
6668
<ImageCompare before={heroImages.dark} after={heroImages.light} />
6769
</div>
70+
71+
{#if divider}
72+
<Divider stroke={true} />
73+
{/if}
6874
</section>
6975

7076
<style>

src/routes/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
let blocks = data.props.blocks;
88
</script>
99

10-
<Hero id="hero-section" />
10+
<Hero id="hero-section" divider={true} />
1111

1212
{#each blocks as block (block.id)}
1313
<ContentBlock {...block} >

0 commit comments

Comments
 (0)