Change side-by-side sections to sticky (#2445)
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user