2023-03-18 06:04:09 +00:00
|
|
|
import React from "react";
|
|
|
|
import Image from "next/image";
|
|
|
|
|
|
|
|
interface IOnboardingCard {
|
|
|
|
step: string;
|
|
|
|
title: string;
|
|
|
|
description: React.ReactNode | string;
|
|
|
|
imgURL: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
type Props = {
|
|
|
|
data: IOnboardingCard;
|
2023-04-12 13:31:46 +00:00
|
|
|
gradient?: boolean;
|
2023-03-18 06:04:09 +00:00
|
|
|
};
|
|
|
|
|
2023-04-12 13:31:46 +00:00
|
|
|
export const OnboardingCard: React.FC<Props> = ({ data, gradient = false }) => (
|
|
|
|
<div
|
2023-04-28 15:16:07 +00:00
|
|
|
className={`flex flex-col items-center justify-center gap-7 rounded-[10px] px-14 pt-10 text-center ${
|
2023-05-30 13:44:35 +00:00
|
|
|
gradient ? "bg-gradient-to-b from-[#C1DDFF] via-brand-base to-transparent" : ""
|
2023-04-12 13:31:46 +00:00
|
|
|
}`}
|
|
|
|
>
|
2023-03-18 06:04:09 +00:00
|
|
|
<div className="h-44 w-full">
|
|
|
|
<Image src={data.imgURL} height="180" width="450" alt={data.title} />
|
|
|
|
</div>
|
2023-04-28 15:16:07 +00:00
|
|
|
<h3 className="text-2xl font-medium">{data.title}</h3>
|
2023-07-10 07:17:00 +00:00
|
|
|
<p className="text-base text-custom-text-200">{data.description}</p>
|
|
|
|
<span className="text-base text-custom-text-200">{data.step}</span>
|
2023-04-12 13:31:46 +00:00
|
|
|
</div>
|
2023-03-18 06:04:09 +00:00
|
|
|
);
|