# issaafalkattan/react-landing-page-template-2021 architecture

> Architecture diagram of the GitHub repository issaafalkattan/react-landing-page-template-2021, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/issaafalkattan/react-landing-page-template-2021
- Repository: https://github.com/issaafalkattan/react-landing-page-template-2021

## Overview

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: [`src/pages/index.tsx`](https://github.com/issaafalkattan/react-landing-page-template-2021/blob/main/src/pages/index.tsx) (Home page), [`src/config/index.json`](https://github.com/issaafalkattan/react-landing-page-template-2021/blob/main/src/config/index.json) (Page content config), [`src/components/Canvas.tsx`](https://github.com/issaafalkattan/react-landing-page-template-2021/blob/main/src/components/Canvas.tsx) (Canvas decoration), [`src/components/Product.tsx`](https://github.com/issaafalkattan/react-landing-page-template-2021/blob/main/src/components/Product.tsx) (Product section)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Page composition"]
  node_home["Home page<br/>[index.tsx]"]
  node_document["Document metadata<br/>[_document.tsx]"]
end

subgraph group_content["Landing sections"]
  node_header["Navigation header<br/>[Header.tsx]"]
  node_hero["Hero copy<br/>[MainHero.tsx]"]
  node_heroimage["Hero image<br/>[MainHeroImage.tsx]"]
  node_product["Product section<br/>[Product.tsx]"]
  node_features["Feature list<br/>[Features.tsx]"]
  node_pricing["Pricing section<br/>[Pricing.tsx]"]
  node_about["About section<br/>[About.tsx]"]
end

subgraph group_visual["Visual effects"]
  node_divider["Section divider<br/>[Divider.tsx]"]
  node_lazy["Lazy section wrapper<br/>[LazyShow.tsx]"]
  node_canvas["Canvas decoration<br/>[Canvas.tsx]"]
  node_waveview["Wave renderer<br/>[Wave.tsx]"]
  node_wave["Wave drawing<br/>[wave.ts]"]
  node_canvascontext["Canvas context<br/>[useCanvas.ts]"]
  node_responsive["Viewport sizing"]
end

subgraph group_support["Configuration and tracking"]
  node_config["Page content config<br/>[index.json]"]
  node_analytics["Analytics component<br/>[Analytics.tsx]"]
  node_gtag["Google Analytics calls<br/>[gtag.ts]"]
  node_googleads["Google Ads ID<br/>[googleAds.ts]"]
end

node_visitor(("Site visitor"))

node_visitor -->|"opens"| node_home
node_home -->|"renders"| node_header
node_home -->|"renders"| node_hero
node_home -->|"renders"| node_heroimage
node_home -->|"renders"| node_canvas
node_home -->|"renders"| node_product
node_home -->|"renders"| node_features
node_home -->|"renders"| node_pricing
node_home -->|"renders"| node_about
node_home -->|"renders"| node_analytics
node_home -->|"wraps sections"| node_lazy
node_header -->|"reads content"| node_config
node_hero -->|"reads content"| node_config
node_heroimage -->|"reads content"| node_config
node_product -->|"reads content"| node_config
node_features -->|"reads content"| node_config
node_pricing -->|"reads content"| node_config
node_about -->|"reads content"| node_config
node_product -->|"renders"| node_divider
node_canvas -->|"uses"| node_canvascontext
node_canvas -->|"uses"| node_responsive
node_canvas -->|"renders"| node_waveview
node_waveview -->|"uses drawing"| node_wave
node_analytics -->|"uses"| node_gtag
node_analytics -->|"uses"| node_googleads

click node_home "https://github.com/issaafalkattan/react-landing-page-template-2021/blob/main/src/pages/index.tsx"
click node_header "https://github.com/issaafalkattan/react-landing-page-template-2021/blob/main/src/components/Header.tsx"
click node_hero "https://github.com/issaafalkattan/react-landing-page-template-2021/blob/main/src/components/MainHero.tsx"
click node_heroimage "https://github.com/issaafalkattan/react-landing-page-template-2021/blob/main/src/components/MainHeroImage.tsx"
click node_product "https://github.com/issaafalkattan/react-landing-page-template-2021/blob/main/src/components/Product.tsx"
click node_features "https://github.com/issaafalkattan/react-landing-page-template-2021/blob/main/src/components/Features.tsx"
click node_pricing "https://github.com/issaafalkattan/react-landing-page-template-2021/blob/main/src/components/Pricing.tsx"
click node_about "https://github.com/issaafalkattan/react-landing-page-template-2021/blob/main/src/components/About.tsx"
click node_divider "https://github.com/issaafalkattan/react-landing-page-template-2021/blob/main/src/components/Divider.tsx"
click node_lazy "https://github.com/issaafalkattan/react-landing-page-template-2021/blob/main/src/components/LazyShow.tsx"
click node_canvas "https://github.com/issaafalkattan/react-landing-page-template-2021/blob/main/src/components/Canvas.tsx"
click node_waveview "https://github.com/issaafalkattan/react-landing-page-template-2021/blob/main/src/components/Wave.tsx"
click node_wave "https://github.com/issaafalkattan/react-landing-page-template-2021/blob/main/src/utils/wave.ts"
click node_canvascontext "https://github.com/issaafalkattan/react-landing-page-template-2021/blob/main/src/hooks/useCanvas.ts"
click node_responsive "https://github.com/issaafalkattan/react-landing-page-template-2021/blob/main/src/hooks/useResponsiveSize.ts"
click node_config "https://github.com/issaafalkattan/react-landing-page-template-2021/blob/main/src/config/index.json"
click node_analytics "https://github.com/issaafalkattan/react-landing-page-template-2021/blob/main/src/components/Analytics.tsx"
click node_gtag "https://github.com/issaafalkattan/react-landing-page-template-2021/blob/main/src/lib/gtag.ts"
click node_googleads "https://github.com/issaafalkattan/react-landing-page-template-2021/blob/main/src/lib/googleAds.ts"
click node_document "https://github.com/issaafalkattan/react-landing-page-template-2021/blob/main/src/pages/_document.tsx"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_home,node_document toneBlue
class node_header,node_hero,node_heroimage,node_product,node_features,node_pricing,node_about toneAmber
class node_divider,node_lazy,node_canvas,node_waveview,node_wave,node_canvascontext,node_responsive toneMint
class node_config,node_analytics,node_gtag,node_googleads toneRose
class node_visitor toneIndigo
```

## Components

### Page composition

- [Home page](https://github.com/issaafalkattan/react-landing-page-template-2021/blob/main/src/pages/index.tsx): `src/pages/index.tsx`
- [Document metadata](https://github.com/issaafalkattan/react-landing-page-template-2021/blob/main/src/pages/_document.tsx): `src/pages/_document.tsx`

### Landing sections

- [Navigation header](https://github.com/issaafalkattan/react-landing-page-template-2021/blob/main/src/components/Header.tsx): `src/components/Header.tsx`
- [Hero copy](https://github.com/issaafalkattan/react-landing-page-template-2021/blob/main/src/components/MainHero.tsx): `src/components/MainHero.tsx`
- [Hero image](https://github.com/issaafalkattan/react-landing-page-template-2021/blob/main/src/components/MainHeroImage.tsx): `src/components/MainHeroImage.tsx`
- [Product section](https://github.com/issaafalkattan/react-landing-page-template-2021/blob/main/src/components/Product.tsx): `src/components/Product.tsx`
- [Feature list](https://github.com/issaafalkattan/react-landing-page-template-2021/blob/main/src/components/Features.tsx): `src/components/Features.tsx`
- [Pricing section](https://github.com/issaafalkattan/react-landing-page-template-2021/blob/main/src/components/Pricing.tsx): `src/components/Pricing.tsx`
- [About section](https://github.com/issaafalkattan/react-landing-page-template-2021/blob/main/src/components/About.tsx): `src/components/About.tsx`

### Visual effects

- [Section divider](https://github.com/issaafalkattan/react-landing-page-template-2021/blob/main/src/components/Divider.tsx): `src/components/Divider.tsx`
- [Lazy section wrapper](https://github.com/issaafalkattan/react-landing-page-template-2021/blob/main/src/components/LazyShow.tsx): `src/components/LazyShow.tsx`
- [Canvas decoration](https://github.com/issaafalkattan/react-landing-page-template-2021/blob/main/src/components/Canvas.tsx): `src/components/Canvas.tsx`
- [Wave renderer](https://github.com/issaafalkattan/react-landing-page-template-2021/blob/main/src/components/Wave.tsx): `src/components/Wave.tsx`
- [Wave drawing](https://github.com/issaafalkattan/react-landing-page-template-2021/blob/main/src/utils/wave.ts): `src/utils/wave.ts`
- [Canvas context](https://github.com/issaafalkattan/react-landing-page-template-2021/blob/main/src/hooks/useCanvas.ts): `src/hooks/useCanvas.ts`
- [Viewport sizing](https://github.com/issaafalkattan/react-landing-page-template-2021/blob/main/src/hooks/useResponsiveSize.ts): `src/hooks/useResponsiveSize.ts`

### Configuration and tracking

- [Page content config](https://github.com/issaafalkattan/react-landing-page-template-2021/blob/main/src/config/index.json): `src/config/index.json`
- [Analytics component](https://github.com/issaafalkattan/react-landing-page-template-2021/blob/main/src/components/Analytics.tsx): `src/components/Analytics.tsx`
- [Google Analytics calls](https://github.com/issaafalkattan/react-landing-page-template-2021/blob/main/src/lib/gtag.ts): `src/lib/gtag.ts`
- [Google Ads ID](https://github.com/issaafalkattan/react-landing-page-template-2021/blob/main/src/lib/googleAds.ts): `src/lib/googleAds.ts`

### Other components

- **Site visitor**

## Connections

- Site visitor → Home page: opens (evidence: `README.md`)
- Home page → Navigation header: renders (evidence: `src/pages/index.tsx`)
- Home page → Hero copy: renders (evidence: `src/pages/index.tsx`)
- Home page → Hero image: renders (evidence: `src/pages/index.tsx`)
- Home page → Canvas decoration: renders (evidence: `src/pages/index.tsx`)
- Home page → Product section: renders (evidence: `src/pages/index.tsx`)
- Home page → Feature list: renders (evidence: `src/pages/index.tsx`)
- Home page → Pricing section: renders (evidence: `src/pages/index.tsx`)
- Home page → About section: renders (evidence: `src/pages/index.tsx`)
- Home page → Analytics component: renders (evidence: `src/pages/index.tsx`)
- Home page → Lazy section wrapper: wraps sections (evidence: `src/pages/index.tsx`)
- Navigation header → Page content config: reads content (evidence: `src/components/Header.tsx`)
- Hero copy → Page content config: reads content (evidence: `src/components/MainHero.tsx`)
- Hero image → Page content config: reads content (evidence: `src/components/MainHeroImage.tsx`)
- Product section → Page content config: reads content (evidence: `src/components/Product.tsx`)
- Feature list → Page content config: reads content (evidence: `src/components/Features.tsx`)
- Pricing section → Page content config: reads content (evidence: `src/components/Pricing.tsx`)
- About section → Page content config: reads content (evidence: `src/components/About.tsx`)
- Product section → Section divider: renders (evidence: `src/components/Product.tsx`)
- Canvas decoration → Canvas context: uses (evidence: `src/components/Canvas.tsx`)
- Canvas decoration → Viewport sizing: uses (evidence: `src/components/Canvas.tsx`)
- Canvas decoration → Wave renderer: renders (evidence: `src/components/Canvas.tsx`)
- Wave renderer → Wave drawing: uses drawing (evidence: `src/components/Wave.tsx`)
- Analytics component → Google Analytics calls: uses (evidence: `src/components/Analytics.tsx`)
- Analytics component → Google Ads ID: uses (evidence: `src/components/Analytics.tsx`)
