Skip to content

Commit

Permalink
add scroll snapping on landing page comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Eggrror404 committed Nov 8, 2023
1 parent 5b37ece commit 52678f2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
</div>
</div>
<div
class="absolute right-0 top-0 aspect-square max-w-full h-full opacity-80 blur-[160px]"
class="absolute right-0 top-0 aspect-square h-full max-w-full opacity-80 blur-[160px]"
id="hero-gradient"
/>
</div>
Expand Down Expand Up @@ -166,9 +166,9 @@
<section class="w-full px-4 py-16" id="comments">
<div class="mx-auto flex h-full max-w-screen-xl flex-col items-center gap-4">
<div class="text-2xl font-bold">大家都說…</div>
<div class="flex max-w-full gap-4 overflow-x-auto">
<div class="flex max-w-full snap-x snap-proximity gap-4 overflow-x-auto">
{#each comments as comList}
<div class="flex flex-col gap-4">
<div class="flex snap-start flex-col gap-4">
{#each comList as comment}
<Comment {...comment} />
{/each}
Expand Down

0 comments on commit 52678f2

Please sign in to comment.