How devjanith/abc-paints works
ABC Paints is a bilingual React business website for presenting paint products and services, finding sellers, estimating materials, and contacting the company. The principal visitor flow is browser entry → routed page within the shared layout → product or seller information fetched from Google Sheets, or a contact/contractor submission handled through the API service. The calculator component exists, but the current /calculator route renders ComingSoon rather than CalculatorPage. Relationships for unsampled page implementations are limited to SOURCE INDEX references; the README documents the external integrations.
Main entry points: App.tsx Routes · api.ts Data and forms API · SEO.tsx SEO metadata · Layout.tsx Shared layout
Components 28
Application shell
- React entry
src/main.tsx - Routes
src/App.tsx - Shared layout
src/components/layout/Layout.tsx - Header
src/components/layout/Header.tsx - Footer
src/components/layout/Footer.tsx - Credits
src/components/layout/Credits.tsx
Business pages
- Home
src/pages/Home.tsx - About
src/pages/About.tsx - Services
src/pages/Services.tsx - Contact
src/pages/Contact.tsx - Contractors
src/pages/Contractors.tsx
Catalog and locations
- Products page
src/pages/Products.tsx - Paint colors
src/pages/PaintsColors.tsx - Product grid
src/components/ProductGrid.tsx - Product card
src/components/ProductCard.tsx - Calculator
src/components/Calculator.tsx - Calculator page
src/pages/CalculatorPage.tsx - Coming soon
src/pages/ComingSoon.tsx - Locations
src/pages/Locations.tsx - Seller map
src/pages/Sellers.tsx
Shared services
- Data and forms API
src/services/api.ts - SEO metadata
src/components/SEO.tsx - Translations
src/i18n.ts - Site configuration
src/config/site.ts - Trusted partners
src/components/common/TrustedPartners.tsx
Other components
- Site visitor
- Google Sheets
- Google Apps Script
Connections 37
- Site visitor → React entry: opens site
src/main.tsx - React entry → Routes: renders
src/main.tsx - Routes → Shared layout: wraps routes
src/App.tsx - Routes → Home: routes to
src/App.tsx - Routes → About: routes to
src/App.tsx - Routes → Products page: routes to
src/App.tsx - Routes → Paint colors: routes to
src/App.tsx - Routes → Services: routes to
src/App.tsx - Routes → Contractors: routes to
src/App.tsx - Routes → Locations: routes to
src/App.tsx - Routes → Seller map: routes to
src/App.tsx - Routes → Contact: routes to
src/App.tsx - Routes → Coming soon: routes calculator to
src/App.tsx - Shared layout → Header: renders
src/components/layout/Layout.tsx - Shared layout → Footer: renders
src/components/layout/Layout.tsx - Shared layout → Credits: renders
src/components/layout/Layout.tsx - Products page → Product grid: renders
src/pages/Products.tsx - Product grid → Data and forms API: fetches products
src/components/ProductGrid.tsx - Data and forms API → Google Sheets: reads CSV
README.md - Product grid → Product card: renders cards
src/components/ProductGrid.tsx - Calculator → Data and forms API: fetches products
src/components/Calculator.tsx - Calculator page → Calculator: renders
src/pages/CalculatorPage.tsx - Seller map → Data and forms API: fetches sellers
src/pages/Sellers.tsx - Contact → Data and forms API: submits form
src/pages/Contact.tsx - Contractors → Data and forms API: submits registration
README.md - Data and forms API → Google Apps Script: submits forms
README.md - Home → Trusted partners: renders
src/pages/Home.tsx - Home → SEO metadata: sets metadata
src/pages/Home.tsx - About → SEO metadata: sets metadata
src/pages/About.tsx - Contact → SEO metadata: sets metadata
src/pages/Contact.tsx - Contractors → SEO metadata: sets metadata
src/pages/Contractors.tsx - Services → SEO metadata: sets metadata
src/pages/Services.tsx - Seller map → SEO metadata: sets metadata
src/pages/Sellers.tsx - Products page → SEO metadata: sets metadata
src/pages/Products.tsx - Footer → Site configuration: reads details
src/components/layout/Footer.tsx - Locations → Site configuration: uses config
src/pages/Locations.tsx - React entry → Translations: loads translations
src/main.tsx