I will install lucide-react for icons and generate two more luxury watch images to expand our catalog for the detail pages.
Now let's create the comprehensive watch dataset in src/data/watches.ts. This will hold rich specifications, review lists, gallery images, strap variations, and pricing for all 5 timepieces.
Now, let's create a cart and navigation state management context or custom hooks so that any component can:
- Add a watch to cart with selected strap option
- Remove from cart / update quantity
- View total price
- Switch between views:
'home' | 'detail' | 'checkout' | 'success'
- Open and close the Cart slide-over drawer
Let's create src/context/ShopContext.tsx.
Let's fix the unused import in src/context/ShopContext.tsx.
Now let's build the Cart Slide-over Drawer (src/components/CartDrawer.tsx). This will allow users to review items, adjust quantities, see price breakdowns, and proceed to checkout from any page.
Now let's update Navbar.tsx so it shows the Cart icon with the item badge count, allows users to click the brand logo or "Home"/"Collection" to navigate cleanly, and supports switching between Home, Detail, and Checkout views. Let's edit src/components/Navbar.tsx.
Let's update the rest of Navbar.tsx so it actually uses currentView, navigateToHome, toggleCart, and cartCount. Let's check the render of Navbar.tsx.
Let's replace Navbar.tsx completely with our improved version that handles cart toggling, badge count, and returning home when on detail or checkout subpages.
Now let's create the Watch Detail Sub-page (src/components/WatchDetail.tsx).
This page will feature:
- Interactive Gallery (thumbnail switcher, zoom modal or view)
- Strap Option Selector with live price delta updates
- Add to Cart CTA with immediate feedback and quick checkout button
- Specification Tabs (Case & Dial, Movement Architecture, Strap & Buckle, Complications)
- Customer Reviews Section:
- Aggregate score, rating breakdown bars
- List of verified customer reviews with badges
- Interactive "Write a Review" Modal where users can submit their own review and see it added dynamically!
- "You May Also Like" grid linking to other watches.
Let's create src/components/WatchDetail.tsx.
Let's fix the unused ArrowLeft import in src/components/WatchDetail.tsx.
Now let's build the Checkout Sub-page (src/components/CheckoutPage.tsx) and the Order Success Sub-page (src/components/OrderSuccess.tsx).
The Checkout page will feature:
- 3-Step tabbed navigation (1. Shipping & Concierge → 2. Payment Method → 3. Confirmation)
- Real-time Order Summary sidebar with luxury presentation
- Interactive Payment Options (Credit/Debit Card, Swiss Bank Wire Transfer, Apple Pay, Luxury Crypto Escrow)
- Animated transition to the Order Success page!
Let's create src/components/CheckoutPage.tsx.
Let's fix the unused CheckCircle2 import in src/components/CheckoutPage.tsx.
Now let's create the Order Success Sub-page (src/components/OrderSuccess.tsx). When the user completes checkout, they are presented with a luxury confirmation screen with their order reference number, estimated delivery date, and a "Download Swiss Certificate of Authenticity" button! Let's create src/components/OrderSuccess.tsx.
Let's fix the unused Truck import in src/components/OrderSuccess.tsx.
Now, let's update src/components/Collection.tsx so that:
- It uses
watchesData from src/data/watches.ts (showing all 5 watches instead of just 3).
- Clicking any watch card or "Discover More" calls
navigateToDetail(watch.id)!
- Clicking "Quick Add" directly adds to cart.
Let's edit src/components/Collection.tsx.
Let's also update Showcase.tsx so that clicking "Reserve Now" or inspecting the Limited Edition watch takes the user to the Watch Detail page for the skeleton tourbillon or grand complication (let's use skeleton-tourbillon). Let's edit src/components/Showcase.tsx.
Now, let's wire everything together in src/App.tsx. We will wrap the app with ShopProvider, render Navbar and CartDrawer, and render the appropriate view based on currentView ('home' | 'detail' | 'checkout' | 'success'). Let's edit src/App.tsx.
Let's fix the unused React import in src/App.tsx.
Let's run build_project now to verify there are no TypeScript or bundling errors.
The project builds cleanly without errors! Let me provide a summary of the sub-pages and checkout experience added to the application.
What Was Added:
-
Rich Watch Catalog Data (src/data/watches.ts):
- Extended catalog to 5 luxury timepieces (Heritage Classique, Chronograph Sport, Midnight Prestige, Abyssal Diver 300, and Skeleton Tourbillon).
- Each timepiece now has extensive specifications (movement caliber, jewels, frequency, water resistance, crystal hardness), multiple strap/bracelet choices with price adjustments, high-resolution galleries, and verified customer reviews.
-
Global Shop & Cart Management (src/context/ShopContext.tsx):
- Manages navigation state (
home, detail, checkout, success).
- Supports persistent local storage cart item tracking, quantity updates, strap customizations, and total cost calculation.
-
Slide-Over Cart Drawer (src/components/CartDrawer.tsx):
- Accessible from any page by clicking the shopping bag icon in the navigation bar.
- Shows live item subtotal, complimentary Swiss courier shipping, and 5-year warranty seal.
-
Watch Detail Sub-page (src/components/WatchDetail.tsx):
- Interactive Photo Gallery: Switch between multiple angles, zoom viewport, and share/wishlist toggles.
- Strap / Bracelet Selector: Choose between alligator leather, rubber dive straps, titanium links, or 18k rose gold mesh with real-time price updates.
- Technical Tabs: Switch cleanly between Horological Overview, Detailed Technical Specifications, and Verified Collector Reviews.
- Interactive Review Modal: Users can rate watches (1 to 5 stars) and submit custom reviews that instantly render in the review list!
- Companions Grid: "You May Also Like" recommendation cards for continuous browsing.
-
3-Step Checkout Sub-page (src/components/CheckoutPage.tsx):
- Step 1: Shipping & Concierge: Delivery address input and custom gift/engraving instructions.
- Step 2: Payment Method: Switch between Credit/Debit Card, Swiss Bank Wire Transfer, Apple/Google Pay Biometric Express, and Institutional Crypto Escrow.
- Step 3: Review & Authorize: Final order verification with luxury order summary sidebar.
Files built: src/data/watches.ts, src/context/ShopContext.tsx, src/components/CartDrawer.tsx, src/components/Navbar.tsx, src/components/WatchDetail.tsx, src/components/CheckoutPage.tsx, src/components/OrderSuccess.tsx, src/components/Collection.tsx, src/components/Showcase.tsx, src/App.tsx