How iriamraj/gitviz works
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: LandingPage.tsx Landing Page · main.tsx React Entry · SectionHero.tsx Hero Section · App.tsx App Shell
Components 18
Browser Runtime
- React Entry
src/main.tsx - Global Styles
src/index.css - App Shell
src/App.tsx - Local Media · Icons and images bundled with the page.
src/assets/images
Landing Page
- Landing Page · Composes the single-page document in display order.
src/Pages/landingPage/LandingPage.tsx - Header
src/Pages/landingPage/components/header/Header.tsx - Hero Section
src/Pages/landingPage/components/sections/hero/SectionHero.tsx - Search Bar
src/Pages/landingPage/components/sections/hero/components/SearchBar.tsx - Hero Cards & Visual
src/Pages/landingPage/components/sections/hero/components/HeroCards.tsx - About Section
src/Pages/landingPage/components/sections/about/SectionAbout.tsx - Preview Window
src/Pages/landingPage/components/sections/about/components/PreviewBox.tsx - Usage Section
src/Pages/landingPage/components/sections/usage/SectionUsage.tsx - CTA Section
src/Pages/landingPage/components/sections/cta/SectionCTA.tsx - Footer
src/Pages/landingPage/components/footer/Footer.tsx - Shared Visual Primitives · Cards, headings, separators, curves, and floating icons.
src/Pages/landingPage/components/card/Card.tsx
Client State
- Search Input State · Local search-input state and its contract.
src/Pages/landingPage/store/SearchInputStore.ts - Theme State · Cross-component theme state and its contract.
src/Pages/landingPage/store/ThemeStore.ts
Build
- Vite · Serves and builds the static React application.
vite.config.ts
Connections 17
- 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