Switch to version 27: modified src/pages/ProductsPage.tsx
This commit is contained in:
@@ -4,15 +4,28 @@ 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 { ArrowUpRight, Loader2 } from "lucide-react";
|
||||
import GridOrCarousel from "@/components/ui/GridOrCarousel";
|
||||
import useProducts from "@/hooks/useProducts";
|
||||
import ProductQuantityCards from "@/components/sections/product/ProductQuantityCards";
|
||||
import FeaturesAttributeCards from "@/components/sections/features/FeaturesAttributeCards";
|
||||
|
||||
export default function ProductsPage() {
|
||||
return (
|
||||
<>
|
||||
<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-fisherman-holding-fishing-rod_23-2148995383.jpg","https://img.freepik.com/free-photo/man-fishing-river_1303-22363.jpg","https://img.freepik.com/free-photo/close-up-man-holding-fish_23-2148995395.jpg"]} label="Trusted by pro anglers" className="mb-1" /><TextAnimation text="High-Performance Offshore Lures" 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="Equip yourself with rugged, proven lures designed to attract marlin, tuna, and wahoo. Built for the toughest offshore conditions." 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 Lures" href="#shop" variant="primary" /><Button text="View Categories" href="#categories" 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://img.freepik.com/premium-photo/colorful-fishing-lure-with-hooks-water_1048944-18451833.jpg" className="aspect-4/5 md:aspect-video" /></ScrollReveal></div></section></div>
|
||||
<div data-webild-section="ProductMediaCards"><section aria-label="Products section" className="py-20"><div className="w-content-width mx-auto flex justify-center"><Loader2 className="size-8 animate-spin text-foreground" strokeWidth={1.5} /></div></section></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