From daf721f8fb2ec47546ab7f83b3eac32cc44be031 Mon Sep 17 00:00:00 2001 From: kudindmitriy Date: Tue, 24 Feb 2026 16:02:05 +0000 Subject: [PATCH 1/7] Bob AI: fix build errors (attempt 1) --- src/app/blog/page.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/blog/page.tsx b/src/app/blog/page.tsx index c8fb193..db68fe0 100644 --- a/src/app/blog/page.tsx +++ b/src/app/blog/page.tsx @@ -1,4 +1,4 @@ -use client"; +"use client"; import ReactLenis from "lenis/react"; import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider"; @@ -59,4 +59,4 @@ export default function BlogPage() { ); -} +} \ No newline at end of file From f00ec756b7349dfe9b8de54bbfd1e1cc7a5480dc Mon Sep 17 00:00:00 2001 From: kudindmitriy Date: Tue, 24 Feb 2026 16:02:50 +0000 Subject: [PATCH 2/7] Bob AI: fix build errors (attempt 1) --- src/app/shop/[id]/page.tsx | 11 ++++++++++- src/app/shop/page.tsx | 16 +++++++++++++--- 2 files changed, 23 insertions(+), 4 deletions(-) diff --git a/src/app/shop/[id]/page.tsx b/src/app/shop/[id]/page.tsx index 449927f..348925a 100644 --- a/src/app/shop/[id]/page.tsx +++ b/src/app/shop/[id]/page.tsx @@ -74,7 +74,16 @@ function ProductPageContent({ params }: ProductPageProps) { }, [cartItems, checkout, getCheckoutItems]); const themeProviderProps = { - defaultButtonVariant: "expand-hover", defaultTextAnimation: "background-highlight", borderRadius: "pill", contentWidth: "compact", sizing: "largeSmallSizeLargeTitles", background: "circleGradient", cardStyle: "gradient-radial", primaryButtonStyle: "double-inset", secondaryButtonStyle: "layered", headingFontWeight: "light" + defaultButtonVariant: "expand-hover" as const, + defaultTextAnimation: "background-highlight", + borderRadius: "pill", + contentWidth: "compact", + sizing: "largeSmallSizeLargeTitles", + background: "circleGradient", + cardStyle: "gradient-radial", + primaryButtonStyle: "double-inset", + secondaryButtonStyle: "layered", + headingFontWeight: "light" }; const navbarProps = { diff --git a/src/app/shop/page.tsx b/src/app/shop/page.tsx index 928396d..967d540 100644 --- a/src/app/shop/page.tsx +++ b/src/app/shop/page.tsx @@ -17,11 +17,21 @@ function ShopPageContent() { } = useProductCatalog({ basePath: "/shop" }); const themeProviderProps = { - defaultButtonVariant: "expand-hover", defaultTextAnimation: "background-highlight", borderRadius: "pill", contentWidth: "compact", sizing: "largeSmallSizeLargeTitles", background: "circleGradient", cardStyle: "gradient-radial", primaryButtonStyle: "double-inset", secondaryButtonStyle: "layered", headingFontWeight: "light" + defaultButtonVariant: "expand-hover" as const, + defaultTextAnimation: "background-highlight" as const, + borderRadius: "pill" as const, + contentWidth: "compact" as const, + sizing: "largeSmallSizeLargeTitles" as const, + background: "circleGradient" as const, + cardStyle: "gradient-radial" as const, + primaryButtonStyle: "double-inset" as const, + secondaryButtonStyle: "layered" as const, + headingFontWeight: "light" as const }; const navbarProps = { - brandName: "No song", navItems: [ + brandName: "No song", + navItems: [ { name: "Home", id: "/" }, { name: "Shop", id: "/shop" } ], @@ -71,4 +81,4 @@ export default function ShopPage() { ); -} +} \ No newline at end of file From 16b15f82d0cf3ad3a29e07f67a43c4dff93f42ce Mon Sep 17 00:00:00 2001 From: kudindmitriy Date: Tue, 24 Feb 2026 16:03:34 +0000 Subject: [PATCH 3/7] Bob AI: fix build errors (attempt 1) --- src/app/shop/[id]/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/shop/[id]/page.tsx b/src/app/shop/[id]/page.tsx index 348925a..23bc474 100644 --- a/src/app/shop/[id]/page.tsx +++ b/src/app/shop/[id]/page.tsx @@ -75,7 +75,7 @@ function ProductPageContent({ params }: ProductPageProps) { const themeProviderProps = { defaultButtonVariant: "expand-hover" as const, - defaultTextAnimation: "background-highlight", + defaultTextAnimation: "background-highlight" as const, borderRadius: "pill", contentWidth: "compact", sizing: "largeSmallSizeLargeTitles", From 8d5ad8965da29f71cc138a4bad4e66488fd46ad1 Mon Sep 17 00:00:00 2001 From: bender Date: Tue, 24 Feb 2026 16:06:32 +0000 Subject: [PATCH 4/7] Update src/app/blog/page.tsx --- src/app/blog/page.tsx | 47 +++++++++++-------------------------------- 1 file changed, 12 insertions(+), 35 deletions(-) diff --git a/src/app/blog/page.tsx b/src/app/blog/page.tsx index db68fe0..fe07aad 100644 --- a/src/app/blog/page.tsx +++ b/src/app/blog/page.tsx @@ -1,14 +1,9 @@ "use client"; -import ReactLenis from "lenis/react"; import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider"; -import { useBlogPosts } from "@/hooks/useBlogPosts"; import NavbarStyleApple from '@/components/navbar/NavbarStyleApple/NavbarStyleApple'; -import BlogCardThree from '@/components/sections/blog/BlogCardThree'; export default function BlogPage() { - const { posts, isLoading } = useBlogPosts(); - return ( - + +
+
+

Blog

+

Our latest articles and news will be posted here. Stay tuned!

+
+
); -} \ No newline at end of file +} From e92dd80a7cc5f26ecbdbd602fe435a4d449f6195 Mon Sep 17 00:00:00 2001 From: bender Date: Tue, 24 Feb 2026 16:06:33 +0000 Subject: [PATCH 5/7] Update src/app/page.tsx --- src/app/page.tsx | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index f643d0a..babc850 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -32,11 +32,10 @@ export default function LandingPage() { navItems={[ { name: "Hero", id: "hero-section" }, { name: "About", id: "about-section" }, - { name: "Feature", id: "features-section" }, - { name: "Product", id: "products-section" }, - { name: "Testimonial", id: "testimonials-section" }, + { name: "Features", id: "features-section" }, + { name: "Products", id: "products-section" }, + { name: "Testimonials", id: "testimonials-section" }, { name: "Contact", id: "contact-section" }, - { name: "Footer", id: "footer-section" }, ]} /> @@ -148,12 +147,12 @@ export default function LandingPage() {
Date: Tue, 24 Feb 2026 16:06:34 +0000 Subject: [PATCH 6/7] Update src/app/shop/[id]/page.tsx --- src/app/shop/[id]/page.tsx | 175 ++++--------------------------------- 1 file changed, 17 insertions(+), 158 deletions(-) diff --git a/src/app/shop/[id]/page.tsx b/src/app/shop/[id]/page.tsx index 23bc474..e08f869 100644 --- a/src/app/shop/[id]/page.tsx +++ b/src/app/shop/[id]/page.tsx @@ -1,180 +1,39 @@ "use client"; -import { Suspense, use, useCallback } from "react"; -import { useRouter } from "next/navigation"; -import ReactLenis from "lenis/react"; import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider"; import NavbarStyleApple from "@/components/navbar/NavbarStyleApple/NavbarStyleApple"; -import ProductDetailCard from "@/components/ecommerce/productDetail/ProductDetailCard"; -import ProductCart from "@/components/ecommerce/cart/ProductCart"; -import { useProductDetail } from "@/hooks/useProductDetail"; -import { useCart } from "@/hooks/useCart"; -import { useCheckout } from "@/hooks/useCheckout"; interface ProductPageProps { - params: Promise<{ id: string }>; + params: { id: string }; } export default function ProductPage({ params }: ProductPageProps) { - return ( - - - - ); -} - -function ProductPageContent({ params }: ProductPageProps) { - const { id } = use(params); - const router = useRouter(); - - const { - product, - isLoading, - images, - meta, - variants, - quantityVariant, - selectedQuantity, - createCartItem, - } = useProductDetail(id); - - const { - items: cartItems, - isOpen: cartOpen, - setIsOpen: setCartOpen, - addItem, - updateQuantity, - removeItem, - total: cartTotal, - getCheckoutItems, - } = useCart(); - - const { buyNow, checkout, isLoading: isCheckoutLoading } = useCheckout(); - - const handleAddToCart = useCallback(() => { - const item = createCartItem(); - if (item) { - addItem(item); - } - }, [createCartItem, addItem]); - - const handleBuyNow = useCallback(() => { - if (product) { - buyNow(product, selectedQuantity); - } - }, [product, selectedQuantity, buyNow]); - - const handleCheckout = useCallback(async () => { - if (cartItems.length === 0) return; - - const currentUrl = new URL(window.location.href); - currentUrl.searchParams.set("success", "true"); - - await checkout(getCheckoutItems(), { successUrl: currentUrl.toString() }); - }, [cartItems, checkout, getCheckoutItems]); - const themeProviderProps = { - defaultButtonVariant: "expand-hover" as const, - defaultTextAnimation: "background-highlight" as const, - borderRadius: "pill", - contentWidth: "compact", - sizing: "largeSmallSizeLargeTitles", - background: "circleGradient", - cardStyle: "gradient-radial", - primaryButtonStyle: "double-inset", - secondaryButtonStyle: "layered", - headingFontWeight: "light" + defaultButtonVariant: "expand-hover", defaultTextAnimation: "background-highlight", borderRadius: "pill", contentWidth: "compact", sizing: "largeSmallSizeLargeTitles", background: "circleGradient", cardStyle: "gradient-radial", primaryButtonStyle: "double-inset", secondaryButtonStyle: "layered", headingFontWeight: "light" }; const navbarProps = { brandName: "No song", navItems: [ { name: "Home", id: "/" }, - { name: "Shop", id: "/shop" } - ], - button: { text: "Cart", onClick: () => setCartOpen(true) } + { name: "Products", id: "/#products-section" }, + { name: "About", id: "/#about-section" }, + { name: "Contact", id: "/#contact-section" }, + ] }; - if (isLoading) { - return ( - - - -
-

Loading product...

-
-
-
- ); - } - - if (!product) { - return ( - - - -
-
-

Product not found

- -
-
-
-
- ); - } - return ( - -