Project structure changes ad new files added in dashboard folders

This commit is contained in:
2026-07-23 18:32:07 +05:30
parent 1993d91319
commit 5a2ae769d8
63 changed files with 1550 additions and 190 deletions

View File

@@ -0,0 +1,27 @@
import {BarChartProps} from "@/types/types";
export default function BarChart({ data }: BarChartProps) {
return (
<div>
{/* Bars */}
<div className="flex items-end justify-between h-40 px-2 border-b border-[#1b3454] pb-2">
{data.map((item, idx) => (
<div key={idx} className="flex flex-col items-center flex-1 group">
<div className={`w-5 ${item.height} bg-teal-400 rounded-t transition-all duration-300 group-hover:bg-teal-300`} />
</div>
))}
</div>
{/* X-Axis */}
<div className="flex justify-between pt-3 px-2 text-xs font-medium text-gray-500">
{data.map((item, idx) => (
<span key={idx} className="w-5 text-center">{item.month}</span>
))}
</div>
</div>
);
}