mirror of
https://github.com/sussy-code/smov.git
synced 2026-04-13 21:20:17 +00:00
37 lines
1.1 KiB
TypeScript
37 lines
1.1 KiB
TypeScript
export function LargeCard(props: { children: React.ReactNode }) {
|
|
return (
|
|
<div className="rounded-xl bg-largeCard-background bg-opacity-50 max-w-[600px] mx-auto p-[3rem]">
|
|
{props.children}
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export function LargeCardText(props: {
|
|
title: string;
|
|
children?: React.ReactNode;
|
|
icon?: React.ReactNode;
|
|
}) {
|
|
return (
|
|
<div className="flex flex-col items-center text-center mb-8">
|
|
<div className="flex flex-col items-center text-center max-w-[318px]">
|
|
{props.icon ? (
|
|
<div className="text-2xl mb-4 text-largeCard-icon">{props.icon}</div>
|
|
) : null}
|
|
<h2 className="text-xl text-white font-bold">{props.title}</h2>
|
|
{props.children ? (
|
|
<div className="text-type-text mt-4">{props.children}</div>
|
|
) : null}
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export function LargeCardButtons(props: { children: React.ReactNode }) {
|
|
return (
|
|
<div className="flex justify-center mt-8">
|
|
<div className="mx-auto inline-grid grid-cols-1 gap-3 justify-center items-center">
|
|
{props.children}
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|