Skip to content

Commit

Permalink
Add title to comparison section in the home page and improve its grap…
Browse files Browse the repository at this point in the history
…hic (#28)

Co-authored-by: Carlos Cordoba <[email protected]>
  • Loading branch information
conradolandia and ccordoba12 authored Oct 31, 2024
1 parent 46862a4 commit dc40363
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/lib/blocks/ContentBlock.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
{#if title}
<h1
class={`text-4xl font-semibold tracking-tight max-w-2xl px-8 mx-auto text-center text-red-berry-900 dark:text-neutral-400
${!boxed ? 'lg:mb-24' : ''}`}
${!boxed ? 'lg:mb-24' : 'lg:mb-8'}`}
>
{@html title}
</h1>
Expand Down
6 changes: 6 additions & 0 deletions src/lib/blocks/Hero.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@
import Vanta from "$lib/components/Vanta.svelte";
import Button from "$lib/components/Button.svelte";
import ImageCompare from "$lib/components/ImageCompare.svelte";
import Divider from "$lib/components/Divider.svelte";
export let id = "";
export let classes = "";
export let divider = false;
// Hero section buttons
export let buttons = [];
Expand Down Expand Up @@ -65,6 +67,10 @@
<div class="container aspect-video hero-image py-5">
<ImageCompare before={heroImages.dark} after={heroImages.light} />
</div>

{#if divider}
<Divider stroke={true} />
{/if}
</section>

<style>
Expand Down
2 changes: 2 additions & 0 deletions src/routes/+page.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ frontPage = {
background: "/assets/media/bg.svg",
columns: false,
divider: true,
boxed: true,
title: "The Spyder advantage",
extraContent: WhatIs,
},

Expand Down
2 changes: 1 addition & 1 deletion src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
let blocks = data.props.blocks;
</script>

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

{#each blocks as block (block.id)}
<ContentBlock {...block} >
Expand Down
4 changes: 2 additions & 2 deletions static/assets/media/banner.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit dc40363

Please sign in to comment.