/**
 * This file is part of Sharenet.
 * 
 * Sharenet is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
 * 
 * You may obtain a copy of the license at:
 * https://creativecommons.org/licenses/by-nc-sa/4.0/
 * 
 * Copyright (c) 2024 Continuist <continuist02@gmail.com>
 */

import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card";
import Link from "next/link";

export default function Home() {
  return (
    <div className="space-y-6">
      <h1 className="text-3xl font-bold">Dashboard</h1>
      <div className="grid gap-6 grid-cols-1 sm:grid-cols-2">
        <Link href="/users" className="block">
          <Card className="hover:bg-gray-50 transition-colors h-full">
            <CardHeader>
              <CardTitle className="text-xl">Users</CardTitle>
              <CardDescription>Manage system users</CardDescription>
            </CardHeader>
            <CardContent>
              <p className="text-gray-600">View, create, edit, and delete users</p>
            </CardContent>
          </Card>
        </Link>
        <Link href="/products" className="block">
          <Card className="hover:bg-gray-50 transition-colors h-full">
            <CardHeader>
              <CardTitle className="text-xl">Products</CardTitle>
              <CardDescription>Manage product catalog</CardDescription>
            </CardHeader>
            <CardContent>
              <p className="text-gray-600">View, create, edit, and delete products</p>
            </CardContent>
          </Card>
        </Link>
      </div>
    </div>
  );
}
