Bob AI: Populate src/pages/ProductsPage.tsx (snippet builder, 3 sections)
This commit is contained in:
@@ -1,91 +1,31 @@
|
||||
import React from "react";
|
||||
import { routes } from "@/routes";
|
||||
import NavbarCentered from "@/components/ui/NavbarCentered";
|
||||
import HeroBrand from "@/components/sections/hero/HeroBrand";
|
||||
import ProductMediaCards from "@/components/sections/product/ProductMediaCards";
|
||||
import FeaturesIconCards from "@/components/sections/features/FeaturesIconCards";
|
||||
import FooterMinimal from "@/components/sections/footer/FooterMinimal";
|
||||
import Button from "@/components/ui/Button";
|
||||
import HeroBackgroundSlot from "@/components/ui/HeroBackgroundSlot";
|
||||
import TextAnimation from "@/components/ui/TextAnimation";
|
||||
import ImageOrVideo from "@/components/ui/ImageOrVideo";
|
||||
import ScrollReveal from "@/components/ui/ScrollReveal";
|
||||
import AvatarGroup from "@/components/ui/AvatarGroup";
|
||||
import ProductQuantityCards from "@/components/sections/product/ProductQuantityCards";
|
||||
import FeaturesAttributeCards from "@/components/sections/features/FeaturesAttributeCards";
|
||||
|
||||
export default function ProductsPage() {
|
||||
return (
|
||||
<div className="min-h-screen bg-background text-foreground">
|
||||
<NavbarCentered
|
||||
logo="RodCraft"
|
||||
navItems={routes.map((r) => ({ name: r.label, href: r.path }))}
|
||||
ctaButton={{ text: "View Cart", href: "/cart" }}
|
||||
/>
|
||||
|
||||
<main>
|
||||
<HeroBrand
|
||||
brand="Premium Rods"
|
||||
description="Discover our meticulously crafted collection of rods designed for every angler. From lightweight spinning rods to heavy-duty casting setups."
|
||||
primaryButton={{ text: "Shop Collection", href: "#inventory" }}
|
||||
secondaryButton={{ text: "Custom Builds", href: "/custom" }}
|
||||
imageSrc="https://images.unsplash.com/photo-1516684669134-de6f7c473a2a?auto=format&fit=crop&q=80"
|
||||
/>
|
||||
|
||||
<div id="inventory">
|
||||
<ProductMediaCards
|
||||
tag="Current Stock"
|
||||
title="Freshwater & Saltwater"
|
||||
description="Browse our available inventory. All rods are ready to ship or available for immediate local pickup."
|
||||
products={[
|
||||
{
|
||||
name: "7' Medium Heavy Casting (In Stock)",
|
||||
price: "$189.00",
|
||||
imageSrc: "https://images.unsplash.com/photo-1599058917212-d750089bc07e?auto=format&fit=crop&q=80",
|
||||
onClick: () => console.log("View product")
|
||||
},
|
||||
{
|
||||
name: "6'6\" Light Spinning (Low Stock)",
|
||||
price: "$145.00",
|
||||
imageSrc: "https://images.unsplash.com/photo-1611078709506-641916327d7a?auto=format&fit=crop&q=80",
|
||||
onClick: () => console.log("View product")
|
||||
},
|
||||
{
|
||||
name: "9' 8wt Fly Rod (In Stock)",
|
||||
price: "$299.00",
|
||||
imageSrc: "https://images.unsplash.com/photo-1506869640319-fe1a24fd76dc?auto=format&fit=crop&q=80",
|
||||
onClick: () => console.log("View product")
|
||||
},
|
||||
{
|
||||
name: "7'2\" Heavy Jigging (Out of Stock)",
|
||||
price: "$210.00",
|
||||
imageSrc: "https://images.unsplash.com/photo-1544551763-46a013bb70d5?auto=format&fit=crop&q=80",
|
||||
onClick: () => console.log("View product")
|
||||
}
|
||||
]}
|
||||
/>
|
||||
</div>
|
||||
|
||||
<FeaturesIconCards
|
||||
tag="Logistics"
|
||||
title="Shipping & Pickup"
|
||||
description="We ensure your new rod arrives safely and quickly, no matter how you choose to receive it."
|
||||
features={[
|
||||
{
|
||||
icon: "Truck",
|
||||
title: "Secure Tube Shipping",
|
||||
description: "All shipped rods are packed in crush-proof PVC tubes and sent via insured priority mail to prevent any transit damage."
|
||||
},
|
||||
{
|
||||
icon: "Store",
|
||||
title: "Local Shop Pickup",
|
||||
description: "Order online and pick up your fully rigged rod at our marina location within 2 hours of placing your order."
|
||||
},
|
||||
{
|
||||
icon: "ShieldCheck",
|
||||
title: "Arrival Guarantee",
|
||||
description: "If your rod is damaged in transit, we replace it immediately, no questions asked. Your satisfaction is guaranteed."
|
||||
}
|
||||
]}
|
||||
/>
|
||||
</main>
|
||||
|
||||
<FooterMinimal
|
||||
brand="RodCraft"
|
||||
copyright="© 2024 RodCraft Outfitters. All rights reserved."
|
||||
/>
|
||||
</div>
|
||||
<>
|
||||
<div data-webild-section="HeroBillboard"><section aria-label="Hero section" className="relative pt-25 pb-20 md:pt-30"><HeroBackgroundSlot /><div className="flex flex-col gap-12 md:gap-15 w-content-width mx-auto"><div className="flex flex-col items-center gap-3 text-center"><AvatarGroup avatarsSrc={["https://img.freepik.com/free-photo/portrait-white-man-isolated_53876-40306.jpg","https://img.freepik.com/free-photo/close-up-portrait-young-bearded-man-white-shirt-jacket-posing-camera-isolated-blue-background_1258-100020.jpg","https://img.freepik.com/free-photo/handsome-confident-smiling-man-with-hands-crossed-chest_176420-18743.jpg"]} label="Trusted by Carlos R., Maria L., and local anglers" className="mb-1" /><TextAnimation text="High-Performance Fishing Rods" variant="fade-blur" gradientText={true} tag="h1" className="md:max-w-8/10 text-7xl 2xl:text-8xl leading-[1.15] font-semibold text-center text-balance" /><TextAnimation text="Browse our extensive inventory of premium fishing rods. Check real-time stock, compare pricing, and choose between fast shipping or in-store pickup." variant="fade-blur" gradientText={false} tag="p" className="md:max-w-7/10 text-lg md:text-xl leading-snug text-balance" /><div className="flex flex-wrap justify-center gap-3 mt-2 md:mt-3"><Button text="Shop All Rods" href="#categories" variant="primary" /><Button text="View In-Stock" href="#in-stock" variant="secondary" animationDelay={0.1} /></div></div><ScrollReveal variant="slide-up" delay={0.2} className="w-full p-2 xl:p-3 2xl:p-4 card rounded overflow-hidden"><ImageOrVideo imageSrc="https://picsum.photos/seed/989317248/1200/800" className="aspect-4/5 md:aspect-video" /></ScrollReveal></div></section></div>
|
||||
<div data-webild-section="ProductQuantityCards"><ProductQuantityCards
|
||||
tag="Rods Inventory"
|
||||
title="High-Performance Fishing Rods"
|
||||
description="Browse our selection of heavy-duty and lightweight rods. Built for durability and precision on the water."
|
||||
primaryButton={{"text":"View All Categories","href":"/products"}}
|
||||
products={[{"name":"Offshore Heavy Duty Rod","price":"$149.99","imageSrc":"https://img.freepik.com/free-photo/fishing-rod-lake_1150-12345.jpg"},{"name":"Inshore Spinning Rod","price":"$89.99","imageSrc":"https://img.freepik.com/free-photo/close-up-fishing-rod_23-2148138900.jpg"},{"name":"Carbon Fiber Casting Rod","price":"$129.99","imageSrc":"https://img.freepik.com/free-photo/fishing-equipment-wooden-background_23-2148138915.jpg"},{"name":"Telescopic Travel Rod","price":"$59.99","imageSrc":"https://img.freepik.com/free-photo/fishing-rod-with-reel-lake_23-2148138930.jpg"}]}
|
||||
/></div>
|
||||
<div data-webild-section="FeaturesAttributeCards"><FeaturesAttributeCards
|
||||
tag="Premium Rods"
|
||||
title="High-Performance Fishing Rods"
|
||||
description="Explore our curated selection of rugged fishing rods. Built for durability and precision, available for immediate pickup or fast shipping."
|
||||
primaryButton={{"text":"View All Gear","href":"/products"}}
|
||||
secondaryButton={{"text":"Shipping Policy","href":"/shipping"}}
|
||||
items={[{"title":"Kraken Offshore Troller","tags":"Saltwater • Heavy Power","badge":"In Stock","details":[{"icon":"DollarSign","label":"Price","value":"$249.99"},{"icon":"Package","label":"Inventory","value":"12 units"},{"icon":"Truck","label":"Fulfillment","value":"Ship / Pickup"}],"imageSrc":"https://img.freepik.com/premium-photo/fishing-rod-reel-boat-sea_1048944-2453186.jpg"},{"title":"Coastal Carbon Spinner","tags":"Inshore • Medium-Heavy","badge":"Low Stock","details":[{"icon":"DollarSign","label":"Price","value":"$159.00"},{"icon":"Package","label":"Inventory","value":"3 units"},{"icon":"Store","label":"Fulfillment","value":"Pickup Only"}],"imageSrc":"https://img.freepik.com/free-photo/close-up-fishing-rod-with-reel_23-2148138914.jpg"},{"title":"Tidal Wave Surf Caster","tags":"Surf • Extra Heavy","badge":"In Stock","details":[{"icon":"DollarSign","label":"Price","value":"$189.50"},{"icon":"Package","label":"Inventory","value":"24 units"},{"icon":"Truck","label":"Fulfillment","value":"Ship / Pickup"}],"imageSrc":"https://img.freepik.com/premium-photo/man-fishing-beach-with-fishing-rod_1048944-1845123.jpg"},{"title":"Lake Phantom Baitcaster","tags":"Freshwater • Medium","badge":"Out of Stock","details":[{"icon":"DollarSign","label":"Price","value":"$129.99"},{"icon":"Package","label":"Inventory","value":"0 units"},{"icon":"Clock","label":"Fulfillment","value":"Backorder"}],"imageSrc":"https://img.freepik.com/free-photo/fishing-rod-lake-with-nature-background_1150-15345.jpg"}]}
|
||||
/></div>
|
||||
</>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user