smov/src/components/layout/LargeCard.tsx
Jip Fr a25b3dee54 First two pages of register flow
Co-authored-by: William Oldham <github@binaryoverload.co.uk>
2023-11-17 14:45:13 +01:00

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>
);
}