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

This commit is contained in:
2026-02-18 09:50:11 +00:00
parent 817c91124e
commit f52e366eba

View File

@@ -82,33 +82,33 @@ export default function ProductPage({ params }: ProductPageProps) {
>
<ReactLenis root>
<div id="navbar" data-section="navbar">
<NavbarStyleCentered
brandName="Move and Movie"
navItems={[
{"name":"Home","id":"/"},
{"name":"Portfolio","id":"portfolio"},
{"name":"Services","id":"services"},
{"name":"About","id":"about"},
{"name":"Testimonials","id":"testimonials"},
{"name":"Contact","id":"contact"},
{"name":"Shop","id":"/shop"}
]}
button={{ text: "Cart", onClick: () => setCartOpen(true) }}
/>
<NavbarStyleCentered
brandName="Move and Movie"
navItems={[
{"name":"Home","id":"/"},
{"name":"Portfolio","id":"portfolio"},
{"name":"Services","id":"services"},
{"name":"About","id":"about"},
{"name":"Testimonials","id":"testimonials"},
{"name":"Contact","id":"contact"},
{"name":"Shop","id":"/shop"}
]}
button={{ text: "Cart", onClick: () => setCartOpen(true) }}
/>
</div>
<main className="min-h-screen flex items-center justify-center pt-20">
<p className="text-foreground">Loading product...</p>
</main>
<div id="footer" data-section="footer">
<FooterBaseCard
columns={[
{"title":"Navigate","items":[{"label":"Home","href":"#hero"},{"label":"Portfolio","href":"#portfolio"},{"label":"Services","href":"#services"},{"label":"About","href":"#about"}]},
{"title":"Resources","items":[{"label":"FAQ","href":"#faq"},{"label":"Blog","href":"#"},{"label":"Case Studies","href":"#"},{"label":"Portfolio","href":"#portfolio"}]},
{"title":"Connect","items":[{"label":"Contact Us","href":"#contact"},{"label":"Instagram","href":"https://instagram.com"},{"label":"YouTube","href":"https://youtube.com"},{"label":"LinkedIn","href":"https://linkedin.com"}]}
]}
logoText="Move and Movie"
copyrightText="© 2025 Move and Movie. All rights reserved."
/>
<FooterBaseCard
columns={[
{"title":"Navigate","items":[{"label":"Home","href":"#hero"},{"label":"Portfolio","href":"#portfolio"},{"label":"Services","href":"#services"},{"label":"About","href":"#about"}]},
{"title":"Resources","items":[{"label":"FAQ","href":"#faq"},{"label":"Blog","href":"#"},{"label":"Case Studies","href":"#"},{"label":"Portfolio","href":"#portfolio"}]},
{"title":"Connect","items":[{"label":"Contact Us","href":"#contact"},{"label":"Instagram","href":"https://instagram.com"},{"label":"YouTube","href":"https://youtube.com"},{"label":"LinkedIn","href":"https://linkedin.com"}]}
]}
logoText="Move and Movie"
copyrightText="© 2025 Move and Movie. All rights reserved."
/>
</div>
</ReactLenis>
</ThemeProvider>
@@ -157,15 +157,15 @@ export default function ProductPage({ params }: ProductPageProps) {
</div>
</main>
<div id="footer" data-section="footer">
<FooterBaseCard
columns={[
{"title":"Navigate","items":[{"label":"Home","href":"#hero"},{"label":"Portfolio","href":"#portfolio"},{"label":"Services","href":"#services"},{"label":"About","href":"#about"}]},
{"title":"Resources","items":[{"label":"FAQ","href":"#faq"},{"label":"Blog","href":"#"},{"label":"Case Studies","href":"#"},{"label":"Portfolio","href":"#portfolio"}]},
{"title":"Connect","items":[{"label":"Contact Us","href":"#contact"},{"label":"Instagram","href":"https://instagram.com"},{"label":"YouTube","href":"https://youtube.com"},{"label":"LinkedIn","href":"https://linkedin.com"}]}
]}
logoText="Move and Movie"
copyrightText="© 2025 Move and Movie. All rights reserved."
/>
<FooterBaseCard
columns={[
{"title":"Navigate","items":[{"label":"Home","href":"#hero"},{"label":"Portfolio","href":"#portfolio"},{"label":"Services","href":"#services"},{"label":"About","href":"#about"}]},
{"title":"Resources","items":[{"label":"FAQ","href":"#faq"},{"label":"Blog","href":"#"},{"label":"Case Studies","href":"#"},{"label":"Portfolio","href":"#portfolio"}]},
{"title":"Connect","items":[{"label":"Contact Us","href":"#contact"},{"label":"Instagram","href":"https://instagram.com"},{"label":"YouTube","href":"https://youtube.com"},{"label":"LinkedIn","href":"https://linkedin.com"}]}
]}
logoText="Move and Movie"
copyrightText="© 2025 Move and Movie. All rights reserved."
/>
</div>
</ReactLenis>
</ThemeProvider>
@@ -187,68 +187,68 @@ export default function ProductPage({ params }: ProductPageProps) {
>
<ReactLenis root>
<div id="navbar" data-section="navbar">
<NavbarStyleCentered
brandName="Move and Movie"
navItems={[
{"name":"Home","id":"/"},
{"name":"Portfolio","id":"portfolio"},
{"name":"Services","id":"services"},
{"name":"About","id":"about"},
{"name":"Testimonials","id":"testimonials"},
{"name":"Contact","id":"contact"},
{"name":"Shop","id":"/shop"}
]}
button={{ text: "Cart", onClick: () => setCartOpen(true) }}
/>
<NavbarStyleCentered
brandName="Move and Movie"
navItems={[
{"name":"Home","id":"/"},
{"name":"Portfolio","id":"portfolio"},
{"name":"Services","id":"services"},
{"name":"About","id":"about"},
{"name":"Testimonials","id":"testimonials"},
{"name":"Contact","id":"contact"},
{"name":"Shop","id":"/shop"}
]}
button={{ text: "Cart", onClick: () => setCartOpen(true) }}
/>
</div>
<div id="productDetailCard" data-section="productDetailCard">
<ProductDetailCard
layout="page"
name={product.name}
price={product.price}
salePrice={meta.salePrice}
rating={product.rating || 0}
description={product.description}
images={images}
variants={variants.length > 0 ? variants : undefined}
quantity={quantityVariant}
ribbon={meta.ribbon}
inventoryStatus={meta.inventoryStatus}
inventoryQuantity={meta.inventoryQuantity}
sku={meta.sku}
buttons={[
{ text: "Add To Cart", onClick: handleAddToCart },
{ text: "Buy Now", onClick: handleBuyNow },
]}
/>
<ProductDetailCard
layout="page"
name={product.name}
price={product.price}
salePrice={meta.salePrice}
rating={product.rating || 0}
description={product.description}
images={images}
variants={variants.length > 0 ? variants : undefined}
quantity={quantityVariant}
ribbon={meta.ribbon}
inventoryStatus={meta.inventoryStatus}
inventoryQuantity={meta.inventoryQuantity}
sku={meta.sku}
buttons={[
{ text: "Add To Cart", onClick: handleAddToCart },
{ text: "Buy Now", onClick: handleBuyNow },
]}
/>
</div>
<div id="productCart" data-section="productCart">
<ProductCart
isOpen={cartOpen}
onClose={() => setCartOpen(false)}
items={cartItems}
onQuantityChange={updateQuantity}
onRemove={removeItem}
total={`$${cartTotal}`}
buttons={[
{
text: isCheckoutLoading ? "Processing..." : "Check Out", onClick: handleCheckout,
},
]}
/>
<ProductCart
isOpen={cartOpen}
onClose={() => setCartOpen(false)}
items={cartItems}
onQuantityChange={updateQuantity}
onRemove={removeItem}
total={`$${cartTotal}`}
buttons={[
{
text: isCheckoutLoading ? "Processing..." : "Check Out", onClick: handleCheckout,
},
]}
/>
</div>
<div id="footer" data-section="footer">
<FooterBaseCard
columns={[
{"title":"Navigate","items":[{"label":"Home","href":"#hero"},{"label":"Portfolio","href":"#portfolio"},{"label":"Services","href":"#services"},{"label":"About","href":"#about"}]},
{"title":"Resources","items":[{"label":"FAQ","href":"#faq"},{"label":"Blog","href":"#"},{"label":"Case Studies","href":"#"},{"label":"Portfolio","href":"#portfolio"}]},
{"title":"Connect","items":[{"label":"Contact Us","href":"#contact"},{"label":"Instagram","href":"https://instagram.com"},{"label":"YouTube","href":"https://youtube.com"},{"label":"LinkedIn","href":"https://linkedin.com"}]}
]}
logoText="Move and Movie"
copyrightText="© 2025 Move and Movie. All rights reserved."
/>
<FooterBaseCard
columns={[
{"title":"Navigate","items":[{"label":"Home","href":"#hero"},{"label":"Portfolio","href":"#portfolio"},{"label":"Services","href":"#services"},{"label":"About","href":"#about"}]},
{"title":"Resources","items":[{"label":"FAQ","href":"#faq"},{"label":"Blog","href":"#"},{"label":"Case Studies","href":"#"},{"label":"Portfolio","href":"#portfolio"}]},
{"title":"Connect","items":[{"label":"Contact Us","href":"#contact"},{"label":"Instagram","href":"https://instagram.com"},{"label":"YouTube","href":"https://youtube.com"},{"label":"LinkedIn","href":"https://linkedin.com"}]}
]}
logoText="Move and Movie"
copyrightText="© 2025 Move and Movie. All rights reserved."
/>
</div>
</ReactLenis>
</ThemeProvider>
);
}
}