feat(root page): redesign the hero element, add dividers between sections

This commit is contained in:
Jake Hamilton 2024-10-25 12:08:10 -07:00 committed by ckie
parent 18dfb6face
commit 99800ce829
Signed by: ckie
GPG key ID: 13E79449C0525215

View file

@ -3,11 +3,15 @@
</script>
<div class="flex w-full justify-center gap-x-12">
{#snippet flower()}
<enhanced:img src="$lib/assets/flower-gray.svg" width="24" height="24" alt="flower" />
{#snippet flower(alt)}
{#if alt}
<enhanced:img src="$lib/assets/flower-gray.svg" width="24" height="24" alt="flower" />
{:else}
<enhanced:img src="$lib/assets/flower.svg" width="24" height="24" alt="flower" />
{/if}
{/snippet}
{#each range(1, 5) as i}
{@render flower()}
{@render flower(i % 2 == 0)}
{/each}
</div>