From 99800ce8292b95f2b78ba7966f91aa651cfa4eff Mon Sep 17 00:00:00 2001 From: Jake Hamilton Date: Fri, 25 Oct 2024 12:08:10 -0700 Subject: [PATCH 1/2] feat(root page): redesign the hero element, add dividers between sections --- src/lib/components/FlowerDivider.svelte | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/lib/components/FlowerDivider.svelte b/src/lib/components/FlowerDivider.svelte index 0f45ec5..af1f3e1 100644 --- a/src/lib/components/FlowerDivider.svelte +++ b/src/lib/components/FlowerDivider.svelte @@ -3,11 +3,15 @@
- {#snippet flower()} - + {#snippet flower(alt)} + {#if alt} + + {:else} + + {/if} {/snippet} {#each range(1, 5) as i} - {@render flower()} + {@render flower(i % 2 == 0)} {/each}
-- 2.44.1 From 2bfe24b195626a3abb96a38a8ef84f2db3068d4a Mon Sep 17 00:00:00 2001 From: Jake Hamilton Date: Fri, 25 Oct 2024 13:56:29 -0700 Subject: [PATCH 2/2] feat(root page): break out hero links into chips, add accent colors on hover --- src/lib/assets/leaf.svg | 57 ++++++++++++++++++++++++++++++ src/lib/assets/petal.svg | 57 ++++++++++++++++++++++++++++++ src/lib/components/LinkChip.svelte | 9 +++++ src/routes/+page.svelte | 34 +++++++++--------- 4 files changed, 140 insertions(+), 17 deletions(-) create mode 100644 src/lib/assets/leaf.svg create mode 100644 src/lib/assets/petal.svg create mode 100644 src/lib/components/LinkChip.svelte diff --git a/src/lib/assets/leaf.svg b/src/lib/assets/leaf.svg new file mode 100644 index 0000000..906c326 --- /dev/null +++ b/src/lib/assets/leaf.svg @@ -0,0 +1,57 @@ + + + + diff --git a/src/lib/assets/petal.svg b/src/lib/assets/petal.svg new file mode 100644 index 0000000..f572ff8 --- /dev/null +++ b/src/lib/assets/petal.svg @@ -0,0 +1,57 @@ + + + + diff --git a/src/lib/components/LinkChip.svelte b/src/lib/components/LinkChip.svelte new file mode 100644 index 0000000..26a0e41 --- /dev/null +++ b/src/lib/components/LinkChip.svelte @@ -0,0 +1,9 @@ + + + + {@render props.children?.()} + diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 2cabcd1..da00694 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -1,5 +1,6 @@