blob: 6083de213a6d59f10ac0fd88177298ebeea8d06f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
import * as React from "react";
export const Card = ({
title,
cta,
href,
}: {
title: string;
cta: string;
href: string;
}) => {
return (
<a
target="_blank"
rel="noopener noreferrer"
href={href}
className="ui-group ui-mt-4 ui-rounded-lg ui-border ui-border-transparent ui-overflow-hidden ui-bg-origin-border ui-bg-gradient-to-r ui-from-brandred ui-to-brandblue ui-text-[#6b7280]"
>
<div className="ui-p-4 ui-bg-zinc-900 ui-h-full">
<p className="ui-inline-block ui-text-xl ui-text-white">{title}</p>
<div className="ui-text-xs ui-mt-4 group-hover:ui-underline">
{cta} →
</div>
</div>
</a>
);
};
|