Update src/app/shop/[id]/page.tsx

This commit is contained in:
2026-02-17 14:46:16 +00:00
parent bf69496106
commit 5bdd4b4c1c

View File

@@ -67,17 +67,32 @@ export default function ProductPage({ params }: ProductPageProps) {
}, [cartItems, checkout, getCheckoutItems]);
const navbarProps = {
brandName: "Бандура: Серце і Зала", navItems: [{ name: "Головна", id: "/" }],
brandName: "Бандура: Серце і Зала",
navItems: [
{ name: "Головна", id: "/" },
{ name: "Філософія", id: "/#philosophy" },
{ name: "Меню", id: "/#menu" },
{ name: "Банкети", id: "/#banquets" },
{ name: "Доставка", id: "/#delivery" },
{ name: "Блог", id: "/blog" },
{ name: "Магазин", id: "/shop" },
{ name: "Контакти", id: "/#contacts" }
],
button: { text: "Кошик", onClick: () => setCartOpen(true) },
className: "py-4 px-6 md:px-8", buttonClassName: "bg-primary-cta text-primary-cta-foreground hover:bg-primary-cta/90 transition-colors duration-300", buttonTextClassName: "font-semibold text-lg", logoOnClick: () => console.log('Logo clicked')
className: "py-4 px-6 md:px-8",
buttonClassName: "bg-primary-cta text-primary-cta-foreground hover:bg-primary-cta/90 transition-colors duration-300",
buttonTextClassName: "font-semibold text-lg",
logoOnClick: () => console.log('Logo clicked')
};
const footerProps = {
logoText: "Бандура: Серце і Зала", columns: [
logoText: "Бандура: Серце і Зала",
columns: [
{ items: [{ label: "Філософія", href: "/#philosophy" }, { label: "Меню", href: "/#menu" }, { label: "Банкети", href: "/#banquets" }] },
{ items: [{ label: "Доставка", href: "/#delivery" }, { label: "Контакти", href: "/#contacts" }, { label: "Забронювати Столик", href: "/#contacts" }] }
{ items: [{ label: "Доставка", href: "/#delivery" }, { label: "Блог", href: "/blog" }, { label: "Магазин", href: "/shop" }, { label: "Контакти", href: "/#contacts" }, { label: "Забронювати Столик", href: "/#contacts" }] }
],
ariaLabel: "Нижній колонтитул сайту", containerClassName: "py-16 md:py-24"
ariaLabel: "Нижній колонтитул сайту",
containerClassName: "py-16 md:py-24"
};
if (isLoading) {
@@ -198,7 +213,8 @@ export default function ProductPage({ params }: ProductPageProps) {
total={`$${cartTotal}`}
buttons={[
{
text: isCheckoutLoading ? "Обробка..." : "Оформити Замовлення", onClick: handleCheckout,
text: isCheckoutLoading ? "Обробка..." : "Оформити Замовлення",
onClick: handleCheckout,
},
]}
/>