2021-07-01 00:49:05 +02:00
|
|
|
interface CardProps {
|
|
|
|
heading?: string,
|
|
|
|
step?: string,
|
|
|
|
content: JSX.Element,
|
|
|
|
}
|
2021-06-25 12:18:25 +02:00
|
|
|
|
2021-07-01 00:49:05 +02:00
|
|
|
function Card(props: CardProps): JSX.Element {
|
2021-06-30 03:13:01 +02:00
|
|
|
return (
|
|
|
|
<div className="rounded-md p-6 bg-white dark:bg-gray-800 space-y-4">
|
|
|
|
{
|
2021-07-01 00:49:05 +02:00
|
|
|
props.step &&
|
2021-06-30 03:13:01 +02:00
|
|
|
<div className="flex flex-row items-center">
|
|
|
|
<div className="rounded-full p-4 bg-green-600 h-5 w-5 flex items-center justify-center">
|
|
|
|
<p className="text-white text-lg font-bold">
|
2021-07-01 00:49:05 +02:00
|
|
|
{props.step}
|
2021-06-30 03:13:01 +02:00
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<div className="ml-3 font-bold text-xl">
|
2021-07-01 00:49:05 +02:00
|
|
|
{props.heading}
|
2021-06-30 03:13:01 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
}
|
|
|
|
<div className="text-lg">
|
2021-07-01 00:49:05 +02:00
|
|
|
{props.content}
|
2021-06-30 03:13:01 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
)
|
2021-07-01 00:49:05 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
export default Card;
|