mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2026-03-12 17:51:53 +08:00
* wip * fix: roadmap editor * fix: padding * wip * fix: remove editor package * wip * fix: update pnpm lock * Add contribution docs * UI changes for TW4 * Update deployment workflow --------- Co-authored-by: Arik Chakma <arikchangma@gmail.com>
42 lines
1.2 KiB
TypeScript
42 lines
1.2 KiB
TypeScript
import { cn } from '../../lib/classname';
|
|
|
|
type EmptyStackMessageProps = {
|
|
number: number | string;
|
|
title: string;
|
|
description: string;
|
|
buttonText: string;
|
|
buttonLink: string;
|
|
bodyClassName?: string;
|
|
};
|
|
|
|
export function EmptyStackMessage(props: EmptyStackMessageProps) {
|
|
const { number, title, description, buttonText, buttonLink, bodyClassName } =
|
|
props;
|
|
|
|
return (
|
|
<div className="absolute inset-0 flex items-center justify-center rounded-md bg-black/50">
|
|
<div
|
|
className={cn(
|
|
'flex max-w-[200px] flex-col items-center justify-center rounded-md bg-white p-4 shadow-xs',
|
|
bodyClassName,
|
|
)}
|
|
>
|
|
<span className="flex h-8 w-8 items-center justify-center rounded-full bg-gray-300 text-white">
|
|
{number}
|
|
</span>
|
|
<div className="my-3 text-center">
|
|
<h3 className="text-sm font-medium text-black">{title}</h3>
|
|
<p className="text-center text-xs text-gray-500">{description}</p>
|
|
</div>
|
|
|
|
<a
|
|
href={buttonLink}
|
|
className="rounded-md bg-black px-3 py-1 text-xs text-white transition-transform hover:scale-105 hover:bg-gray-900"
|
|
>
|
|
{buttonText}
|
|
</a>
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|