How aqsa-yahya/apna-tailor-v2 works
ApnaTailor is a React web app for browsing garment styles and preparing a visual design to share with a tailor. Visitors navigate from the home page to a catalog or AI builder; catalog selections open detail pages with tailor guidance and downloadable design cards, while the builder requests generated outfit images and can export its preview. The graph reflects documented routing and sampled calls. The README is only the Vite template, and unsampled modules are represented only where their paths and role are supported by the source index.
Main entry points: App.jsx Route shell · DesignDetail.jsx Design details · DesignBuilder.jsx Design builder · Home.jsx Home page
Components 22
Application shell
- React entry
src/main.jsx - Route shell
src/App.jsx - Navigation
src/components/Navbar.jsx - Site footer
src/components/Footer.jsx
Style discovery
- Home page
src/pages/Home.jsx - Hero section
src/components/Hero.jsx - Value highlights
src/components/WhyUseUs.jsx - Design catalog
src/pages/Design.jsx - Design catalog data
src/pages/designData.js - Design details
src/pages/DesignDetail.jsx - Design card export
src/pages/downloadDesignCard.js - Trending styles
src/pages/TrendingStyles.jsx - Trending data
src/pages/trendingDesigns.js
Design creation
- Design builder
src/pages/DesignBuilder.jsx - Image generation client
src/lib/imageGen.js - Image endpoint
netlify/functions/generate-image.js - Gemini helper
src/lib/gemini.js
Product information
- About page
src/pages/About.jsx - How it works
src/pages/HowItWorks.jsx - Contact page
src/pages/Contact.jsx
Other components
- Visitor
- Image generation service
Connections 24
- Visitor → React entry: opens app
src/main.jsx - React entry → Route shell: renders
src/main.jsx - Route shell → Navigation: renders
src/App.jsx - Route shell → Home page: routes to
src/App.jsx - Route shell → Design catalog: routes to
src/App.jsx - Route shell → Design builder: routes to
src/App.jsx - Route shell → Trending styles: routes to
src/App.jsx - Route shell → Design details: routes to
src/App.jsx - Route shell → About page: routes to
src/App.jsx - Route shell → How it works: routes to
src/App.jsx - Route shell → Contact page: routes to
src/App.jsx - Home page → Hero section: renders
src/pages/Home.jsx - Home page → Value highlights: renders
src/pages/Home.jsx - Home page → Site footer: renders
src/pages/Home.jsx - Hero section → Design builder: links to
src/components/Hero.jsx - Design catalog → Design catalog data: reads designs
src/pages/Design.jsx - Design catalog → Design details: navigates to
src/pages/Design.jsx - Design details → Design catalog data: reads details
src/pages/DesignDetail.jsx - Design details → Design card export: requests export
src/pages/DesignDetail.jsx - Design details → Design builder: links to
src/pages/DesignDetail.jsx - Trending styles → Trending data: reads styles
src/pages/TrendingStyles.jsx - Design builder → Image generation client: requests images
src/pages/DesignBuilder.jsx - Image generation client → Image endpoint: fetches image
src/lib/imageGen.js - Design builder → Image generation service: exports preview
src/pages/DesignBuilder.jsx