mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
483c49d0ff
* style: sub issue theming * style: shortcut modal theming * style: blocking and blocked by modal theming * fix: filter labels dropdown width fix * style: display properties * chore: workspace invite * style: invite co workers theming * style: create workspace theming * style: attachment theming * style: workspace sidebar theming * style: issue property theming * style: create module modal lead icon * style: label list modal theming * delete attachment and member modal theming * style: transfer issue modal * style: delete estimate modal theming * style: module form status * style: delete state modal theming * style: shortcut modal * style: onboarding logo * style: onboarding command menu
33 lines
1011 B
TypeScript
33 lines
1011 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 via-brand-base to-transparent" : ""
|
|
}`}
|
|
>
|
|
<div className="relative h-44">
|
|
<h3 className="absolute top-3 left-28 text-base text-brand-secondary">
|
|
Open the contextual menu with:
|
|
</h3>
|
|
<Image src={data.imgURL} height="180" width="450" alt={data.title} />
|
|
</div>
|
|
<h3 className="text-2xl font-medium">{data.title}</h3>
|
|
<p className="text-base text-brand-secondary">{data.description}</p>
|
|
<span className="text-base text-brand-secondary">{data.step}</span>
|
|
</div>
|
|
);
|