# anipnwr7777/landing-page-demo-project architecture

> Architecture diagram of the GitHub repository anipnwr7777/landing-page-demo-project, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-06-15). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/anipnwr7777/landing-page-demo-project
- Repository: https://github.com/anipnwr7777/landing-page-demo-project

## Overview

##### Project type and purpose
- This is a single-page React application (landing page) built with Vite and styled with Chakra UI.
- Its goal is to provide a modular, section-based front-end template for edtech/cohort-based businesses.

##### File structure
- Top-level config: `vite.config.js`, `package.json`, `.gitignore`, `eslint.config.js`.
- Source code under `src/`:
- `main.jsx` & `App.jsx` bootstrap the React app.
- `components/` holds each UI section (hero, navbar, footer, cohorts, testimonials, etc.) in its own subfolder.
- `assets/` holds lottie animations (`.lottie`), images (`png`, `svg`, `webp`).
- `theme/` encapsulates Chakra UI theming (`configs/heading.js`, `text.js`, `tokens.js`, `index.js`).
- `globals.css` for global resets or overrides.
- No backend code or database: purely front-end.

##### README for architecture hints
- Confirms React + Vite + Chakra UI stack.
- Deployment target: Vercel (static build).
- Local setup uses Yarn and Vite’s dev server.

##### Main components
a. Client (Web Browser)
b. CDN/Hosting (Vercel) serving static files
c. Build Pipeline:
- Source Repo (e.g., GitHub)
- Package Manager (Yarn ↔ NPM registry)
- Bundler (Vite) producing the production build
d. React App internals:
- App Shell (`App.jsx`)
- Theme Provider (Chakra UI config)
- UI Sections (Navbar, Hero, BodyContent, Footer, plus sub-components like CourseCard, TweetCard, etc.)
- Assets Module (Lottie animations, images)

##### Relationships and data flow
- Developer push → CI (GitHub Actions/Vercel) → Yarn install → Vite build → Deploy static assets to Vercel CDN.
- Browser requests `index.html` → downloaded JS/CSS bundles → React mounts `App.jsx`.
- `ThemeProvider` wraps all components → styling tokens applied.
- Components import assets (animations, images) and render UI.

##### Architectural patterns
- Component-based UI (React) with clear folder separation per feature/section.
- Theming abstraction (Chakra UI tokens and custom config).
- Static site hosting (no runtime backend).

## Diagram (Mermaid)

```mermaid
flowchart TD
    subgraph "Developer & Toolchain"
        GH["GitHub Repo"]:::tool
        NPM["NPM Registry"]:::tool
        YARN["Yarn"]:::tool
        VITE["Vite (Bundler)"]:::tool
    end

    subgraph "CI/CD & Deployment"
        CI["CI/CD (GitHub Actions/Vercel)"]:::tool
        BUILD["Build Pipeline"]:::tool
        VERCEL["Vercel CDN"]:::runtime
    end

    subgraph "Client Runtime"
        BROWSER["Web Browser"]:::runtime
    end

    GH --> CI --> BUILD --> VERCEL
    NPM --> YARN --> VITE --> BUILD
    BROWSER -->|HTTP GET index.html| VERCEL -->|Serves static files| BROWSER

    subgraph "React Application (Client)"
        subgraph "App Shell"
            MAIN["main.jsx"]:::ui
            APPJS["App.jsx"]:::ui
            HTML["index.html"]:::ui
        end

        subgraph "Theme Provider"
            THEMEIDX["index.js"]:::ui
            HEADING["heading.js"]:::ui
            TEXT["text.js"]:::ui
            TOKENS["tokens.js"]:::ui
        end

        subgraph "UI Component Layer"
            subgraph "Navbar"
                NAV["Navbar.jsx"]:::ui
            end
            subgraph "Hero Section"
                HEROIDX["index.jsx"]:::ui
                HERO_MAIN["MainContentHero.jsx"]:::ui
                HERO_THUMB["Thumbnail.jsx"]:::ui
            end
            subgraph "Body Content"
                BODY["BodyContent.jsx"]:::ui
            end
            subgraph "Cohorts Section"
                COHORTIDX["index.jsx"]:::ui
                GRID["GridLayout.jsx"]:::ui
                CCARD["CourseCard.jsx"]:::ui
            end
            subgraph "Testimonials"
                TESTIDX["index.jsx"]:::ui
            end
            subgraph "Tweet Love"
                TWEETIDX["index.jsx"]:::ui
                TWEETCARDS["TweetCards.jsx"]:::ui
                TWEETCARD["TweetCard.jsx"]:::ui
            end
            subgraph "Community Section"
                COMMUNITYIDX["index.jsx"]:::ui
            end
            subgraph "Alumni Network"
                ALUMIDX["index.jsx"]:::ui
            end
            subgraph "API Hub Section"
                APIIDX["index.jsx"]:::ui
            end
            subgraph "App Download Section"
                APPDLIDX["index.jsx"]:::ui
            end
            subgraph "Benefits Section"
                BENEFITIDX["index.jsx"]:::ui
            end
            subgraph "Topic Cloud Section"
                TOPICIDX["index.jsx"]:::ui
            end
            subgraph "Org Scroll Section"
                ORGIDX["index.jsx"]:::ui
            end
            subgraph "Udemy Section"
                UDEMYIDX["index.jsx"]:::ui
            end
            subgraph "Why Chai Code Section"
                WHYIDX["index.jsx"]:::ui
                ABOUTHITESH["AboutHitesh.jsx"]:::ui
                CHAI_PROS["ChaiCodePros.jsx"]:::ui
            end
            subgraph "Common Components"
                CTA["CTAButton.jsx"]:::ui
            end
        end

        subgraph "Assets Module"
            LOTTIE["Lottie Animations"]:::asset
            IMAGES["Images"]:::asset
            GLOBALCSS["globals.css"]:::asset
        end

        BROWSER -->|Bundle loads| MAIN --> APPJS --> THEMEIDX
        THEMEIDX --> HEADING & TEXT & TOKENS
        APPJS --> NAV & HEROIDX & BODY & COHORTIDX & TESTIDX & TWEETIDX & COMMUNITYIDX & ALUMIDX & APIIDX & APPDLIDX & BENEFITIDX & TOPICIDX & ORGIDX & UDEMYIDX & WHYIDX
        NAV & HEROIDX & BODY & COHORTIDX & TESTIDX & TWEETIDX & COMMUNITYIDX & ALUMIDX & APIIDX & APPDLIDX & BENEFITIDX & TOPICIDX & ORGIDX & UDEMYIDX & WHYIDX --> CTA
        NAV & HEROIDX & BODY & COHORTIDX & TESTIDX & TWEETIDX & COMMUNITYIDX & ALUMIDX & APIIDX & APPDLIDX & BENEFITIDX & TOPICIDX & ORGIDX & UDEMYIDX & WHYIDX --> LOTTIE
        NAV & HEROIDX & BODY & COHORTIDX & TESTIDX & TWEETIDX & COMMUNITYIDX & ALUMIDX & APIIDX & APPDLIDX & BENEFITIDX & TOPICIDX & ORGIDX & UDEMYIDX & WHYIDX --> IMAGES
        GLOBALCSS -.-> MAIN
    end

    click MAIN "https://github.com/anipnwr7777/landing-page-demo-project/blob/main/src/main.jsx"
    click APPJS "https://github.com/anipnwr7777/landing-page-demo-project/blob/main/src/App.jsx"
    click HTML "https://github.com/anipnwr7777/landing-page-demo-project/blob/main/index.html"
    click THEMEIDX "https://github.com/anipnwr7777/landing-page-demo-project/blob/main/src/theme/index.js"
    click HEADING "https://github.com/anipnwr7777/landing-page-demo-project/blob/main/src/theme/configs/heading.js"
    click TEXT "https://github.com/anipnwr7777/landing-page-demo-project/blob/main/src/theme/configs/text.js"
    click TOKENS "https://github.com/anipnwr7777/landing-page-demo-project/blob/main/src/theme/configs/tokens.js"
    click NAV "https://github.com/anipnwr7777/landing-page-demo-project/blob/main/src/components/Navbar.jsx"
    click HEROIDX "https://github.com/anipnwr7777/landing-page-demo-project/blob/main/src/components/hero/index.jsx"
    click HERO_MAIN "https://github.com/anipnwr7777/landing-page-demo-project/blob/main/src/components/hero/components/MainContentHero.jsx"
    click HERO_THUMB "https://github.com/anipnwr7777/landing-page-demo-project/blob/main/src/components/hero/components/Thumbnail.jsx"
    click BODY "https://github.com/anipnwr7777/landing-page-demo-project/blob/main/src/components/BodyContent.jsx"
    click COHORTIDX "https://github.com/anipnwr7777/landing-page-demo-project/blob/main/src/components/cohorts/index.jsx"
    click GRID "https://github.com/anipnwr7777/landing-page-demo-project/blob/main/src/components/cohorts/components/GridLayout.jsx"
    click CCARD "https://github.com/anipnwr7777/landing-page-demo-project/blob/main/src/components/cohorts/components/CourseCard.jsx"
    click TESTIDX "https://github.com/anipnwr7777/landing-page-demo-project/blob/main/src/components/testimonials/index.jsx"
    click TWEETIDX "https://github.com/anipnwr7777/landing-page-demo-project/blob/main/src/components/tweet-love/index.jsx"
    click TWEETCARDS "https://github.com/anipnwr7777/landing-page-demo-project/blob/main/src/components/tweet-love/components/TweetCards.jsx"
    click TWEETCARD "https://github.com/anipnwr7777/landing-page-demo-project/blob/main/src/components/tweet-love/components/TweetCard.jsx"
    click COMMUNITYIDX "https://github.com/anipnwr7777/landing-page-demo-project/blob/main/src/components/community/index.jsx"
    click ALUMIDX "https://github.com/anipnwr7777/landing-page-demo-project/blob/main/src/components/alumni-network/index.jsx"
    click APIIDX "https://github.com/anipnwr7777/landing-page-demo-project/blob/main/src/components/api-hub/index.jsx"
    click APPDLIDX "https://github.com/anipnwr7777/landing-page-demo-project/blob/main/src/components/app-download/index.jsx"
    click BENEFITIDX "https://github.com/anipnwr7777/landing-page-demo-project/blob/main/src/components/benefits/index.jsx"
    click TOPICIDX "https://github.com/anipnwr7777/landing-page-demo-project/blob/main/src/components/topic-cloud/index.jsx"
    click ORGIDX "https://github.com/anipnwr7777/landing-page-demo-project/blob/main/src/components/orgScroll/index.jsx"
    click UDEMYIDX "https://github.com/anipnwr7777/landing-page-demo-project/blob/main/src/components/udemy/index.jsx"
    click WHYIDX "https://github.com/anipnwr7777/landing-page-demo-project/blob/main/src/components/why-chai-code/index.jsx"
    click ABOUTHITESH "https://github.com/anipnwr7777/landing-page-demo-project/blob/main/src/components/why-chai-code/components/AboutHitesh.jsx"
    click CHAI_PROS "https://github.com/anipnwr7777/landing-page-demo-project/blob/main/src/components/why-chai-code/components/ChaiCodePros.jsx"
    click CTA "https://github.com/anipnwr7777/landing-page-demo-project/blob/main/src/components/common/CTAButton.jsx"
    click LOTTIE "https://github.com/anipnwr7777/landing-page-demo-project/tree/main/src/assets/lottie/"
    click IMAGES "https://github.com/anipnwr7777/landing-page-demo-project/tree/main/src/assets/png/"
    click GLOBALCSS "https://github.com/anipnwr7777/landing-page-demo-project/blob/main/src/globals.css"

    classDef tool fill:#D0E8FF,stroke:#0275d8;
    classDef runtime fill:#DFF2DB,stroke:#28a745;
    classDef ui fill:#FFE7C4,stroke:#F0A500;
    classDef asset fill:#EEEEEE,stroke:#999999;
```
