Created
March 17, 2023 20:09
-
-
Save Chuloo/0ad26e47bfe33cd3227441a886397eea to your computer and use it in GitHub Desktop.
Features component
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { UniformSlot } from "@uniformdev/canvas-react"; | |
export function Features({ | |
subtext, | |
title, | |
}: { | |
subtext: string; | |
title: string; | |
}) { | |
return ( | |
<div className="pb-16" style={{ fontFamily: '"Lato", sans-serif' }}> | |
<> | |
<section className="max-w-8xl mx-auto container bg-white pt-16"> | |
<div> | |
<div role="contentinfo" className="flex items-center flex-col px-4"> | |
<p | |
tabIndex={0} | |
className="focus:outline-none uppercase text-sm text-center text-gray-600 leading-4" | |
> | |
{subtext} | |
</p> | |
<h1 | |
tabIndex={0} | |
className="focus:outline-none text-4xl lg:text-4xl font-extrabold text-center leading-10 text-gray-800 lg:w-5/12 md:w-9/12 pt-4" | |
> | |
{title} | |
</h1> | |
</div> | |
<div | |
tabIndex={0} | |
aria-label="group of cards" | |
className="focus:outline-none mt-20 flex flex-wrap justify-center gap-10 px-4" | |
> | |
<UniformSlot name="featureCards" /> | |
</div> | |
</div> | |
</section> | |
</> | |
</div> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment