aboutsummaryrefslogtreecommitdiff
path: root/src/lib/LandingHero.svelte
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/LandingHero.svelte')
-rw-r--r--src/lib/LandingHero.svelte16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/lib/LandingHero.svelte b/src/lib/LandingHero.svelte
index 29f9f556..fc87b5fe 100644
--- a/src/lib/LandingHero.svelte
+++ b/src/lib/LandingHero.svelte
@@ -1,16 +1,16 @@
<script lang="ts">
- import { env } from '$env/dynamic/public';
- import localforage from 'localforage';
+import { env } from '$env/dynamic/public';
+import localforage from 'localforage';
- let heroSection = $state<HTMLElement>();
+let heroSection = $state<HTMLElement>();
- const scrollPastHero = () => {
- if (!heroSection) return;
+const scrollPastHero = () => {
+ if (!heroSection) return;
- const heroBottom = heroSection.getBoundingClientRect().bottom + window.scrollY;
+ const heroBottom = heroSection.getBoundingClientRect().bottom + window.scrollY;
- window.scrollTo({ top: heroBottom, behavior: 'smooth' });
- };
+ window.scrollTo({ top: heroBottom, behavior: 'smooth' });
+};
</script>
<section class="hero" bind:this={heroSection}>