34 lines
1.3 KiB
TypeScript
34 lines
1.3 KiB
TypeScript
import { Button } from "@/components/ui/button";
|
|
import { ShoppingCart } from "lucide-react";
|
|
import { useTranslations } from "next-intl";
|
|
import { useRouter } from "next/navigation";
|
|
|
|
export default function EmptyCart() {
|
|
const t = useTranslations();
|
|
const router = useRouter();
|
|
|
|
return (
|
|
<div className="flex min-h-[60vh] items-center justify-center px-4">
|
|
<div className="w-full max-w-md rounded-3xl bg-gradient-to-br from-gray-50 to-white p-12 text-center shadow-xl border border-gray-100">
|
|
<div className="mx-auto mb-8 flex h-24 w-24 items-center justify-center rounded-full bg-gray-100">
|
|
<ShoppingCart className="h-12 w-12 text-gray-700" />
|
|
</div>
|
|
|
|
<h2 className="mb-3 text-3xl font-bold text-gray-900">
|
|
{t("cart_empty")}
|
|
</h2>
|
|
|
|
<p className="mb-8 text-base text-gray-600 leading-relaxed">
|
|
{t("cart_empty_message")}
|
|
</p>
|
|
|
|
<Button
|
|
onClick={() => router.push("/")}
|
|
className="w-full cursor-pointer rounded-2xl bg-gradient-to-r from-gray-900 to-gray-800 hover:from-gray-800 hover:to-gray-700 px-8 py-6 text-base font-bold text-white shadow-lg hover:shadow-xl transition-all duration-300 active:scale-95"
|
|
>
|
|
{t("start_shopping")}
|
|
</Button>
|
|
</div>
|
|
</div>
|
|
);
|
|
} |