Skip to content

Commit 2645cc8

Browse files
committed
refactor: partnering card
1 parent 1949376 commit 2645cc8

File tree

1 file changed

+18
-20
lines changed

1 file changed

+18
-20
lines changed

src/components/cards/Partnering.tsx

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -10,27 +10,25 @@ import { useTranslation } from "next-i18next";
1010
*/
1111
export default function PartneringCard() {
1212
const { t } = useTranslation();
13-
return (
14-
<div className="relative lg:mt-0 xl:pt-0 rounded-3.5xl overflow-hidden mt-5 md:mt-0 border border-solid border-gray-light md:border-none">
15-
<div className="relative z-10 p-6 lg:pb-3 w-full text-primary h-full min-h-xs flex flex-col justify-between divide-y-2 divide-y divide-dotted divide-theme-accent">
16-
<div className="max-w-sm">
17-
<p className="text-2xl font-medium mb-2.5 leading-none">{t("page.index.communities.partnering.title")}</p>
18-
<p className="text-base mt-0 mb-20 lg:mb-0 leading-normal">{t("page.index.communities.partnering.subtitle")}</p>
19-
</div>
20-
<div className="mt-4 flex-none md:flex justify-between">
21-
<div className="md:flex md:flex-col space-y-0">
22-
<div className="mt-4 font-light text-theme-accent md:w-48">{t("partnering.card.text")}</div>
13+
return (
14+
<div className="relative z-10 mt-6 md:mt-0 p-6 rounded-3.5xl border border-solid bg-surface-bg-highlight lg:pb-3 w-full text-surface-text-brand h-full min-h-xs flex flex-col justify-between divide-y-2 divide-dotted divide-theme-accent">
15+
<div className="max-w-sm">
16+
<p className="text-2xl font-medium mb-2.5 leading-none">{t("page.index.communities.partnering.title")}</p>
17+
<p className="text-base mt-0 mb-20 lg:mb-0 leading-normal">{t("page.index.communities.partnering.subtitle")}</p>
2318
</div>
24-
<div className="mt-4 align-middle">
25-
<a href="mailto:[email protected]">
26-
<Button className="hover:bg-primary group-hover:text-white leading-relaxed lg:px-7 px-5 font-medium" variant="outline-primary" type="button" padding={false}>
27-
{t("page.index.communities.partnering.button-text")}
28-
</Button>
29-
</a>
19+
<div className="mt-4 flex-none md:flex justify-between">
20+
<div className="md:flex md:flex-col space-y-0">
21+
<div className="mt-4 font-light text-theme-accent md:w-48">{t("partnering.card.text")}</div>
22+
</div>
23+
<div className="mt-4 align-middle">
24+
<a href="mailto:[email protected]">
25+
<Button className="hover:bg-primary group-hover:text-white leading-relaxed lg:px-7 px-5 font-medium" variant="outline-primary" type="button" padding={false}>
26+
{t("page.index.communities.partnering.button-text")}
27+
</Button>
28+
</a>
29+
</div>
3030
</div>
3131
</div>
32-
</div>
33-
<span className="block absolute top-0 left-0 bg-primary opacity-5 z-0 w-full h-full" />
34-
</div>
35-
);
32+
);
33+
3634
}

0 commit comments

Comments
 (0)