44 lines
No EOL
2.2 KiB
TypeScript
44 lines
No EOL
2.2 KiB
TypeScript
|
|
const TopicCard = ({ title, children, link }) => {
|
|
return(
|
|
<div className="mx-auto mt-16 max-w-2xl rounded-3xl sm:mt-20 lg:mx-0 lg:flex lg:max-w-none relative isolate overflow-hidden bg-gray-900 px-6 pt-16 shadow-2xl sm:rounded-3xl sm:px-16 md:pt-24 lg:flex lg:gap-x-20 lg:px-24 lg:pt-0">
|
|
<svg
|
|
viewBox="0 0 1024 1024"
|
|
className="absolute left-1/2 top-1/2 -z-10 h-[64rem] w-[64rem] -translate-y-1/2 [mask-image:radial-gradient(closest-side,white,transparent)] sm:left-full sm:-ml-80 lg:left-1/2 lg:ml-0 lg:-translate-x-1/2 lg:translate-y-0"
|
|
aria-hidden="true"
|
|
>
|
|
<circle cx={512} cy={512} r={512} fill="url(#759c1415-0410-454c-8f7c-9a820de03641)" fillOpacity="0.7" />
|
|
<defs>
|
|
<radialGradient id="759c1415-0410-454c-8f7c-9a820de03641">
|
|
<stop stopColor="#7775D6" />
|
|
<stop offset={1} stopColor="#E935C1" />
|
|
</radialGradient>
|
|
</defs>
|
|
</svg>
|
|
<div className="p-8 sm:p-10 lg:flex-auto ">
|
|
<h3 className="text-2xl font-bold tracking-tight text-gray-200">{title}</h3>
|
|
<p className="mt-6 text-base leading-7 text-gray-200">
|
|
{children}
|
|
</p>
|
|
</div>
|
|
<div className="-mt-2 p-2 lg:mt-0 lg:w-full lg:max-w-md lg:flex-shrink-0">
|
|
<div className="rounded-2xl bg-gray-50 py-10 text-center ring-1 ring-inset ring-gray-900/5 lg:flex lg:flex-col lg:justify-center lg:py-16">
|
|
<div className="mx-auto max-w-xs px-8">
|
|
<p className="mt-6 flex items-baseline justify-center gap-x-2">
|
|
<span className="text-5xl font-bold tracking-tight text-gray-900">Start</span>
|
|
<span className="text-sm font-semibold leading-6 tracking-wide text-gray-900">now!</span>
|
|
</p>
|
|
<a
|
|
href={link}
|
|
className="mt-10 block w-full rounded-md bg-indigo-600 px-3 py-2 text-center text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600"
|
|
>
|
|
Begin
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default TopicCard; |