How ravneet0628/insurance-site works
Project type and purpose
• From the file tree and README, this is a single‐page application (SPA) for an insurance broker website.
• It’s purely a frontend project (React + TypeScript + Tailwind) built with Vite, producing a static site deployed to a CDN (e.g., Cloudflare Pages).
File structure
• Top‐level directories and files:
• public/ – static assets (images, favicon, index.html)
• src/ – all TypeScript source code
• components/ – reusable UI building blocks (Accordion, Hero, Navbar, etc.)
• pages/ – page‐level React components (HomePage, AboutPage, ContactPage)
• content/ – content‐as‐code (data, hooks, types, utils) to drive pages
• utils/ – low‐level helpers (api.ts)
• __tests__/ & test/ – unit and integration tests (Vitest + Testing Library)
• config files – vite.config.ts, tsconfig.json, ESLint/Prettier, package.json
• Patterns:
• Component-based architecture with a design system (Layout, UI elements)
• Content stratification: content/data separate from UI
• Routing: React Router DOM for page navigation
• Build & deploy: Vite builds to a static dist directory for CDN
README for additional insights
• Confirms tech stack (React 19, TypeScript, Tailwind, Vite)
• Mentions lazy‐loaded routes (code splitting) and SEO meta tags
• Deployment recommended to Cloudflare Pages, but any static host applies