# iriamraj/gitviz architecture

> Architecture diagram of the GitHub repository iriamraj/gitviz, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-07-19). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/iriamraj/gitviz
- Repository: https://github.com/iriamraj/gitviz

## Overview

#### Purpose and Runtime
This is a Vite-served React + TypeScript single-page landing page. It appears to be a presentation-focused UI rather than a backend-integrated application: the tree contains no API, server, database, authentication, or deployment modules. Static media is local under `src/assets/icons` and `src/assets/images`.

#### Application Entry and Composition
The browser entry mounts the React application through `src/main.tsx`, with global styling in `src/index.css`. `src/App.tsx` is the application shell and likely selects the landing-page root, `src/Pages/landingPage/LandingPage.tsx`. There is no route hierarchy evident; the landing page is the primary application surface.

#### Landing-Page Orchestrator
`src/Pages/landingPage/LandingPage.tsx` is the page-level composition boundary. It assembles common chrome and sequential content sections, including:
- `src/Pages/landingPage/components/header/Header.tsx`
- `src/Pages/landingPage/components/sections/hero/SectionHero.tsx`
- `src/Pages/landingPage/components/sections/about/SectionAbout.tsx`
- `src/Pages/landingPage/components/sections/usage/SectionUsage.tsx`
- `src/Pages/landingPage/components/sections/cta/SectionCTA.tsx`
- `src/Pages/landingPage/components/footer/Footer.tsx`

The likely control flow is top-to-bottom document rendering, with header/footer framing navigational and closing content.

#### Hero: Primary Interactive Stage
The hero section is the highest-density feature area: `src/Pages/landingPage/components/sections/hero/SectionHero.tsx` composes heading, concise details, search input, and a visual/card illustration. Relevant components are:
- `src/Pages/landingPage/components/sections/hero/components/SearchBar.tsx`
- `src/Pages/landingPage/components/sections/hero/components/HeroCards.tsx`
- `src/Pages/landingPage/components/sections/hero/components/Visual.tsx`

Search input behavior crosses a state boundary via `src/Pages/landingPage/store/SearchInputStore.ts`; its associated contract is `src/Pages/landingPage/types/SearchInputType.ts`. This is local client-side state, not a visible external search integration.

#### Shared UI and Visual System
Reusable visual primitives support page sections rather than defining independent features:
- Content card rendering: `src/Pages/landingPage/components/card/Card.tsx`
- Decorative layout curve: `src/Pages/landingPage/components/curve/Curve.tsx`
- Section separators: `src/Pages/landingPage/components/DivideLine/DivideLine.tsx`
- Animated/decorative icon layer: `src/Pages/landingPage/components/floatingIcons/FloatingIcons.tsx`
- General heading abstraction: `src/Pages/landingPage/components/heading/Heading.tsx`

Their props are modeled in adjacent landing-page `types` files, keeping component data contracts local to this page domain.

#### About and Usage Content Stages
The about section uses a preview/window visual hierarchy:
`src/Pages/landingPage/components/sections/about/SectionAbout.tsx`,
`src/Pages/landingPage/components/sections/about/components/PreviewBox.tsx`, and
`src/Pages/landingPage/components/sections/about/components/IOSwindow.tsx`.

Usage is isolated as `src/Pages/landingPage/components/sections/usage/SectionUsage.tsx`, while conversion-oriented closing content is isolated in `src/Pages/landingPage/components/sections/cta/SectionCTA.tsx`. These section boundaries allow content/layout changes without affecting hero state or shared chrome.

#### Theme State and Build Boundary
`src/Pages/landingPage/store/ThemeStore.ts` and `src/Pages/landingPage/types/ThemeStoreType.ts` define another cross-component client-state boundary, presumably consumed by theme-aware UI. Build/dev infrastructure is Vite (`vite.config.ts`) with React/TypeScript compilation (`tsconfig.app.json`); it provides HMR during development and static frontend output for deployment. No material external runtime services are represented.

Main entry points: [`src/Pages/landingPage/LandingPage.tsx`](https://github.com/iriamraj/gitviz/blob/main/src/Pages/landingPage/LandingPage.tsx) (Landing Page), [`src/main.tsx`](https://github.com/iriamraj/gitviz/blob/main/src/main.tsx) (React Entry), [`src/Pages/landingPage/components/sections/hero/SectionHero.tsx`](https://github.com/iriamraj/gitviz/blob/main/src/Pages/landingPage/components/sections/hero/SectionHero.tsx) (Hero Section), [`src/App.tsx`](https://github.com/iriamraj/gitviz/blob/main/src/App.tsx) (App Shell)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Browser Runtime"]
  node_entry["React Entry<br/>browser entry<br/>[main.tsx]"]
  node_global_css["Global Styles<br/>CSS<br/>[index.css]"]
  node_app["App Shell<br/>React component<br/>[App.tsx]"]
  node_media["Local Media<br/>static assets"]
end

subgraph group_landing["Landing Page"]
  node_landing_page["Landing Page<br/>page orchestrator<br/>[LandingPage.tsx]"]
  node_header["Header<br/>page chrome<br/>[Header.tsx]"]
  node_hero["Hero Section<br/>interactive section<br/>[SectionHero.tsx]"]
  node_search_bar["Search Bar<br/>input component<br/>[SearchBar.tsx]"]
  node_hero_visuals["Hero Cards &amp; Visual<br/>hero illustration<br/>[HeroCards.tsx]"]
  node_about["About Section<br/>content section<br/>[SectionAbout.tsx]"]
  node_preview["Preview Window<br/>about visual<br/>[PreviewBox.tsx]"]
  node_usage["Usage Section<br/>content section<br/>[SectionUsage.tsx]"]
  node_cta["CTA Section<br/>conversion section<br/>[SectionCTA.tsx]"]
  node_footer["Footer<br/>page chrome<br/>[Footer.tsx]"]
  node_shared_ui["Shared Visual Primitives<br/>reusable components<br/>[Card.tsx]"]
end

subgraph group_state["Client State"]
  node_search_state[("Search Input State<br/>client state")]
  node_theme_state[("Theme State<br/>client state<br/>[ThemeStore.ts]")]
end

subgraph group_build["Build"]
  node_vite{{"Vite<br/>build tool<br/>[vite.config.ts]"}}
end

node_vite -->|"serves/builds"| node_entry
node_entry -->|"loads"| node_global_css
node_entry -->|"mounts"| node_app
node_app -->|"renders"| node_landing_page
node_landing_page -->|"frames"| node_header
node_landing_page -->|"renders first"| node_hero
node_landing_page -->|"renders"| node_about
node_landing_page -->|"renders"| node_usage
node_landing_page -->|"renders"| node_cta
node_landing_page -->|"closes"| node_footer
node_hero -->|"composes"| node_search_bar
node_hero -->|"composes"| node_hero_visuals
node_search_bar -->|"reads/writes"| node_search_state
node_about -->|"composes"| node_preview
node_landing_page -.->|"uses"| node_shared_ui
node_hero_visuals -->|"uses"| node_media
node_theme_state -.->|"theme-aware UI"| node_landing_page

click node_vite "https://github.com/iriamraj/gitviz/blob/main/vite.config.ts"
click node_entry "https://github.com/iriamraj/gitviz/blob/main/src/main.tsx"
click node_global_css "https://github.com/iriamraj/gitviz/blob/main/src/index.css"
click node_app "https://github.com/iriamraj/gitviz/blob/main/src/App.tsx"
click node_landing_page "https://github.com/iriamraj/gitviz/blob/main/src/Pages/landingPage/LandingPage.tsx"
click node_header "https://github.com/iriamraj/gitviz/blob/main/src/Pages/landingPage/components/header/Header.tsx"
click node_hero "https://github.com/iriamraj/gitviz/blob/main/src/Pages/landingPage/components/sections/hero/SectionHero.tsx"
click node_search_bar "https://github.com/iriamraj/gitviz/blob/main/src/Pages/landingPage/components/sections/hero/components/SearchBar.tsx"
click node_hero_visuals "https://github.com/iriamraj/gitviz/blob/main/src/Pages/landingPage/components/sections/hero/components/HeroCards.tsx"
click node_about "https://github.com/iriamraj/gitviz/blob/main/src/Pages/landingPage/components/sections/about/SectionAbout.tsx"
click node_preview "https://github.com/iriamraj/gitviz/blob/main/src/Pages/landingPage/components/sections/about/components/PreviewBox.tsx"
click node_usage "https://github.com/iriamraj/gitviz/blob/main/src/Pages/landingPage/components/sections/usage/SectionUsage.tsx"
click node_cta "https://github.com/iriamraj/gitviz/blob/main/src/Pages/landingPage/components/sections/cta/SectionCTA.tsx"
click node_footer "https://github.com/iriamraj/gitviz/blob/main/src/Pages/landingPage/components/footer/Footer.tsx"
click node_shared_ui "https://github.com/iriamraj/gitviz/blob/main/src/Pages/landingPage/components/card/Card.tsx"
click node_search_state "https://github.com/iriamraj/gitviz/blob/main/src/Pages/landingPage/store/SearchInputStore.ts"
click node_theme_state "https://github.com/iriamraj/gitviz/blob/main/src/Pages/landingPage/store/ThemeStore.ts"
click node_media "https://github.com/iriamraj/gitviz/tree/main/src/assets/images"

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_entry,node_global_css,node_app,node_media toneBlue
class node_landing_page,node_header,node_hero,node_search_bar,node_hero_visuals,node_about,node_preview,node_usage,node_cta,node_footer,node_shared_ui toneAmber
class node_search_state,node_theme_state toneMint
class node_vite toneRose
```

## Components

### Browser Runtime

- [React Entry](https://github.com/iriamraj/gitviz/blob/main/src/main.tsx): browser entry · `src/main.tsx`
- [Global Styles](https://github.com/iriamraj/gitviz/blob/main/src/index.css): CSS · `src/index.css`
- [App Shell](https://github.com/iriamraj/gitviz/blob/main/src/App.tsx): React component · `src/App.tsx`
- [Local Media](https://github.com/iriamraj/gitviz/tree/main/src/assets/images): static assets · Icons and images bundled with the page. · `src/assets/images`

### Landing Page

- [Landing Page](https://github.com/iriamraj/gitviz/blob/main/src/Pages/landingPage/LandingPage.tsx): page orchestrator · Composes the single-page document in display order. · `src/Pages/landingPage/LandingPage.tsx`
- [Header](https://github.com/iriamraj/gitviz/blob/main/src/Pages/landingPage/components/header/Header.tsx): page chrome · `src/Pages/landingPage/components/header/Header.tsx`
- [Hero Section](https://github.com/iriamraj/gitviz/blob/main/src/Pages/landingPage/components/sections/hero/SectionHero.tsx): interactive section · `src/Pages/landingPage/components/sections/hero/SectionHero.tsx`
- [Search Bar](https://github.com/iriamraj/gitviz/blob/main/src/Pages/landingPage/components/sections/hero/components/SearchBar.tsx): input component · `src/Pages/landingPage/components/sections/hero/components/SearchBar.tsx`
- [Hero Cards & Visual](https://github.com/iriamraj/gitviz/blob/main/src/Pages/landingPage/components/sections/hero/components/HeroCards.tsx): hero illustration · `src/Pages/landingPage/components/sections/hero/components/HeroCards.tsx`
- [About Section](https://github.com/iriamraj/gitviz/blob/main/src/Pages/landingPage/components/sections/about/SectionAbout.tsx): content section · `src/Pages/landingPage/components/sections/about/SectionAbout.tsx`
- [Preview Window](https://github.com/iriamraj/gitviz/blob/main/src/Pages/landingPage/components/sections/about/components/PreviewBox.tsx): about visual · `src/Pages/landingPage/components/sections/about/components/PreviewBox.tsx`
- [Usage Section](https://github.com/iriamraj/gitviz/blob/main/src/Pages/landingPage/components/sections/usage/SectionUsage.tsx): content section · `src/Pages/landingPage/components/sections/usage/SectionUsage.tsx`
- [CTA Section](https://github.com/iriamraj/gitviz/blob/main/src/Pages/landingPage/components/sections/cta/SectionCTA.tsx): conversion section · `src/Pages/landingPage/components/sections/cta/SectionCTA.tsx`
- [Footer](https://github.com/iriamraj/gitviz/blob/main/src/Pages/landingPage/components/footer/Footer.tsx): page chrome · `src/Pages/landingPage/components/footer/Footer.tsx`
- [Shared Visual Primitives](https://github.com/iriamraj/gitviz/blob/main/src/Pages/landingPage/components/card/Card.tsx): reusable components · Cards, headings, separators, curves, and floating icons. · `src/Pages/landingPage/components/card/Card.tsx`

### Client State

- [Search Input State](https://github.com/iriamraj/gitviz/blob/main/src/Pages/landingPage/store/SearchInputStore.ts): client state · Local search-input state and its contract. · `src/Pages/landingPage/store/SearchInputStore.ts`
- [Theme State](https://github.com/iriamraj/gitviz/blob/main/src/Pages/landingPage/store/ThemeStore.ts): client state · Cross-component theme state and its contract. · `src/Pages/landingPage/store/ThemeStore.ts`

### Build

- [Vite](https://github.com/iriamraj/gitviz/blob/main/vite.config.ts): build tool · Serves and builds the static React application. · `vite.config.ts`

## Connections

- Vite → React Entry: serves/builds
- React Entry → Global Styles: loads
- React Entry → App Shell: mounts
- App Shell → Landing Page: renders
- Landing Page → Header: frames
- Landing Page → Hero Section: renders first
- Landing Page → About Section: renders
- Landing Page → Usage Section: renders
- Landing Page → CTA Section: renders
- Landing Page → Footer: closes
- Hero Section → Search Bar: composes
- Hero Section → Hero Cards & Visual: composes
- Search Bar → Search Input State: reads/writes
- About Section → Preview Window: composes
- Landing Page → Shared Visual Primitives: uses
- Hero Cards & Visual → Local Media: uses
- Theme State → Landing Page: theme-aware UI
