plane/apps/app/components/onboarding/onboarding-card.tsx
2023-04-12 19:01:46 +05:30

30 lines
872 B
TypeScript

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;
gradient?: boolean;
};
export const OnboardingCard: React.FC<Props> = ({ data, gradient = false }) => (
<div
className={`flex flex-col items-center justify-center gap-7 rounded-[10px] px-14 pt-10 text-center ${
gradient ? "bg-gradient-to-b from-[#2C8DFF]/50 to-transparent via-white" : "bg-white"
}`}
>
<div className="h-44 w-full">
<Image src={data.imgURL} height="180" width="450" alt={data.title} />
</div>
<h3 className="text-3xl font-medium">{data.title}</h3>
<p className="text-base text-gray-400">{data.description}</p>
<span className="text-base text-gray-400">{data.step}</span>
</div>
);