Change side-by-side sections to sticky (#2445)

This commit is contained in:
Josh Collinsworth
2024-05-22 12:08:41 -05:00
committed by GitHub
parent cda9bdec6f
commit 8ef3e89a8c
14 changed files with 186 additions and 44 deletions
+4 -7
View File
@@ -3,19 +3,16 @@ import { FancyLink } from "$fresh/www/components/FancyLink.tsx";
export function CTA() {
return (
<div
class="bg-gradient-to-br from-blue-100 via-green-200 to-yellow-100 pb-32"
style="clip-path: polygon(0% 10%, 0% 100%, 100% 100%, 100% 0%)"
>
<PageSection class="text-center">
<div class="relative mt-16">
<PageSection class="text-center bg-gradient-to-br from-blue-100 via-green-200 to-yellow-100 pb-32 md:pb-48 before:w-full before:bg-white before:h-16 md:before:h-32 xl:before:h-48 before:[clip-path:polygon(0%_0%,_100%_0%,_0%_100%)] z-0 before:absolute before:top-0 before:left-0">
<div class="flex flex-col gap-4">
<img
src="/lemon.svg"
alt="Illustration of a lemon sliced cleanly in half, suspended in midair as though frozen in time the instant after the cut, the juice flung from the edges"
class="w-full max-w-64 mx-auto mb-8"
class="w-full max-w-48 sm:max-w-64 -mt-24 mx-auto mb-8 relative z-0"
/>
<h2 class="text-3xl sm:text-4xl md:text-5xl lg:text-6xl text-gray-600 font-extrabold">
Time for a Fresh Start
Time for a Fresh start
</h2>
<div class="flex flex-col justify-start items-center gap-4">
<p class="text-xl">