Sootzani-Inspector/components/BoxDashboard.tsx

26 lines
627 B
TypeScript

import React from "react";
export default function BoxDashboard({
value,
title,
}: {
value: string;
title: string;
}) {
return (
<div
className=" px-7 py-8 bg-zinc-100 rounded-lg shadow flex flex-col justify-end items-center text-black
transition duration-200
hover:text-white hover:bg-blue
group h-44 w-44"
>
<div className="group-hover:-translate-y-2 transition-all duration-300">
<p className="text-center text-xs font-medium">
{value}
</p>
<p className="text-center text-xs font-medium">{title}</p>
</div>
</div>
);
}