Skip to content

Instantly share code, notes, and snippets.

@sonipranjal
Created June 28, 2024 14:18
Show Gist options
  • Save sonipranjal/771248796718d6c78679239632c5f8fa to your computer and use it in GitHub Desktop.
Save sonipranjal/771248796718d6c78679239632c5f8fa to your computer and use it in GitHub Desktop.
<div
className="absolute inset-x-0 top-1/2 -z-10 -translate-y-1/2 transform-gpu overflow-hidden opacity-10 blur-3xl"
aria-hidden="true"
>
<div
className="ml-[max(50%,38rem)] aspect-[1313/771] w-[82.0625rem] bg-gradient-to-tr from-[#ea580c] to-[#fdba74]"
style={{
clipPath:
"polygon(74.1% 44.1%, 100% 61.6%, 97.5% 26.9%, 85.5% 0.1%, 80.7% 2%, 72.5% 32.5%, 60.2% 62.4%, 52.4% 68.1%, 47.5% 58.3%, 45.2% 34.5%, 27.5% 76.7%, 0.1% 64.9%, 17.9% 100%, 27.6% 76.8%, 76.1% 97.7%, 74.1% 44.1%)",
}}
/>
</div>
<div
className="absolute inset-x-0 top-20 -z-10 flex transform-gpu overflow-hidden pt-32 opacity-10 blur-3xl sm:pt-64 xl:justify-end"
aria-hidden="true"
>
<div
className="ml-[-22rem] aspect-[1313/771] w-[82.0625rem] flex-none origin-top-right rotate-[30deg] bg-gradient-to-tr from-[#ea580c] to-[#fdba74] xl:ml-0 xl:mr-[calc(50%-12rem)]"
style={{
clipPath:
"polygon(74.1% 44.1%, 100% 61.6%, 97.5% 26.9%, 85.5% 0.1%, 80.7% 2%, 72.5% 32.5%, 60.2% 62.4%, 52.4% 68.1%, 47.5% 58.3%, 45.2% 34.5%, 27.5% 76.7%, 0.1% 64.9%, 17.9% 100%, 27.6% 76.8%, 76.1% 97.7%, 74.1% 44.1%)",
}}
/>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment