How issaafalkattan/react-landing-page-template-2021 works
This is a configurable Next.js single-page landing-page template. A visitor loads the home page, which assembles the hero, navigation, product, feature, pricing, and about sections; those sections read content from a shared JSON configuration. Canvas wave decorations provide visual treatment, while an analytics component integrates Google tracking. The README also describes responsive layout and SEO metadata. The graph follows the sampled home-page composition and indexed imports; unsampled implementation details are not inferred.
Main entry points: index.tsx Home page · index.json Page content config · Canvas.tsx Canvas decoration · Product.tsx Product section
Components 21
Page composition
- Home page
src/pages/index.tsx - Document metadata
src/pages/_document.tsx
Landing sections
- Navigation header
src/components/Header.tsx - Hero copy
src/components/MainHero.tsx - Hero image
src/components/MainHeroImage.tsx - Product section
src/components/Product.tsx - Feature list
src/components/Features.tsx - Pricing section
src/components/Pricing.tsx - About section
src/components/About.tsx
Visual effects
- Section divider
src/components/Divider.tsx - Lazy section wrapper
src/components/LazyShow.tsx - Canvas decoration
src/components/Canvas.tsx - Wave renderer
src/components/Wave.tsx - Wave drawing
src/utils/wave.ts - Canvas context
src/hooks/useCanvas.ts - Viewport sizing
src/hooks/useResponsiveSize.ts
Configuration and tracking
- Page content config
src/config/index.json - Analytics component
src/components/Analytics.tsx - Google Analytics calls
src/lib/gtag.ts - Google Ads ID
src/lib/googleAds.ts
Other components
- Site visitor
Connections 25
- Site visitor → Home page: opens
README.md - Home page → Navigation header: renders
src/pages/index.tsx - Home page → Hero copy: renders
src/pages/index.tsx - Home page → Hero image: renders
src/pages/index.tsx - Home page → Canvas decoration: renders
src/pages/index.tsx - Home page → Product section: renders
src/pages/index.tsx - Home page → Feature list: renders
src/pages/index.tsx - Home page → Pricing section: renders
src/pages/index.tsx - Home page → About section: renders
src/pages/index.tsx - Home page → Analytics component: renders
src/pages/index.tsx - Home page → Lazy section wrapper: wraps sections
src/pages/index.tsx - Navigation header → Page content config: reads content
src/components/Header.tsx - Hero copy → Page content config: reads content
src/components/MainHero.tsx - Hero image → Page content config: reads content
src/components/MainHeroImage.tsx - Product section → Page content config: reads content
src/components/Product.tsx - Feature list → Page content config: reads content
src/components/Features.tsx - Pricing section → Page content config: reads content
src/components/Pricing.tsx - About section → Page content config: reads content
src/components/About.tsx - Product section → Section divider: renders
src/components/Product.tsx - Canvas decoration → Canvas context: uses
src/components/Canvas.tsx - Canvas decoration → Viewport sizing: uses
src/components/Canvas.tsx - Canvas decoration → Wave renderer: renders
src/components/Canvas.tsx - Wave renderer → Wave drawing: uses drawing
src/components/Wave.tsx - Analytics component → Google Analytics calls: uses
src/components/Analytics.tsx - Analytics component → Google Ads ID: uses
src/components/Analytics.tsx