2026-03-27 14:50:34 +09:00
|
|
|
import Link from 'next/link';
|
|
|
|
|
|
|
|
|
|
export default function DashboardPage() {
|
|
|
|
|
return (
|
|
|
|
|
<div>
|
|
|
|
|
<h1 className="text-2xl font-bold mb-4">Dashboard</h1>
|
|
|
|
|
<div className="grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3">
|
|
|
|
|
<DashboardCard
|
2026-03-28 08:19:48 +09:00
|
|
|
title="Medicines"
|
|
|
|
|
description="Manage your medicines, products and inventory"
|
|
|
|
|
href="/medicines"
|
2026-03-27 14:50:34 +09:00
|
|
|
/>
|
|
|
|
|
<DashboardCard
|
|
|
|
|
title="Settings"
|
|
|
|
|
description="Manage household and account settings"
|
|
|
|
|
href="/settings"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function DashboardCard({
|
|
|
|
|
title,
|
|
|
|
|
description,
|
|
|
|
|
href,
|
|
|
|
|
}: {
|
|
|
|
|
title: string;
|
|
|
|
|
description: string;
|
|
|
|
|
href: string;
|
|
|
|
|
}) {
|
|
|
|
|
return (
|
|
|
|
|
<Link
|
|
|
|
|
href={href}
|
|
|
|
|
className="rounded-xl border bg-white p-6 shadow-sm hover:shadow-md transition-shadow"
|
|
|
|
|
>
|
|
|
|
|
<h2 className="text-lg font-semibold">{title}</h2>
|
|
|
|
|
<p className="mt-1 text-sm text-gray-500">{description}</p>
|
|
|
|
|
</Link>
|
|
|
|
|
);
|
|
|
|
|
}
|