Skip to content

Commit dc40363

Browse files
Add title to comparison section in the home page and improve its graphic (#28)
Co-authored-by: Carlos Cordoba <[email protected]>
1 parent 46862a4 commit dc40363

File tree

5 files changed

+12
-4
lines changed

5 files changed

+12
-4
lines changed

src/lib/blocks/ContentBlock.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
{#if title}
8585
<h1
8686
class={`text-4xl font-semibold tracking-tight max-w-2xl px-8 mx-auto text-center text-red-berry-900 dark:text-neutral-400
87-
${!boxed ? 'lg:mb-24' : ''}`}
87+
${!boxed ? 'lg:mb-24' : 'lg:mb-8'}`}
8888
>
8989
{@html title}
9090
</h1>

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.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ frontPage = {
5151
background: "/assets/media/bg.svg",
5252
columns: false,
5353
divider: true,
54+
boxed: true,
55+
title: "The Spyder advantage",
5456
extraContent: WhatIs,
5557
},
5658

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} >

static/assets/media/banner.svg

Lines changed: 2 additions & 2 deletions
Loading

0 commit comments

Comments
 (0)