# gara-vi04/fusion-space-website-kit architecture

> Architecture diagram of the GitHub repository gara-vi04/fusion-space-website-kit, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/gara-vi04/fusion-space-website-kit
- Repository: https://github.com/gara-vi04/fusion-space-website-kit

## Overview

This is a React single-page website for a design and construction studio. The user-facing path is the site entry point through the app router to a landing page presenting studio information, services, portfolio work, and contact details; the contact form handles its fields locally, with no submission service shown. Shared UI infrastructure includes app-level tooltip and notification providers, a toast state hook, and reusable sidebar components. The graph reflects the shown imports and routing; no backend or external submission integration is evidenced.

Main entry points: [`src/pages/Index.tsx`](https://github.com/gara-vi04/fusion-space-website-kit/blob/main/src/pages/Index.tsx) (Landing page), [`src/App.tsx`](https://github.com/gara-vi04/fusion-space-website-kit/blob/main/src/App.tsx) (App router), [`src/components/ui/sidebar.tsx`](https://github.com/gara-vi04/fusion-space-website-kit/blob/main/src/components/ui/sidebar.tsx) (Sidebar), [`src/components/ui/toaster.tsx`](https://github.com/gara-vi04/fusion-space-website-kit/blob/main/src/components/ui/toaster.tsx) (Toast renderer)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Site composition"]
  node_entry["React entry<br/>[main.tsx]"]
  node_app["App router<br/>[App.tsx]"]
  node_landing["Landing page<br/>[Index.tsx]"]
  node_notfound["Not found<br/>[NotFound.tsx]"]
  node_header["Header<br/>[Header.tsx]"]
  node_hero["Hero<br/>[Hero.tsx]"]
  node_about["About<br/>[About.tsx]"]
  node_services["Services<br/>[Services.tsx]"]
  node_portfolio["Portfolio<br/>[Portfolio.tsx]"]
  node_contact["Contact form<br/>[Contact.tsx]"]
  node_footer["Footer<br/>[Footer.tsx]"]
end

subgraph group_shared["Shared UI"]
  node_button["Button<br/>[button.tsx]"]
  node_dialog["Dialog<br/>[dialog.tsx]"]
  node_sheet["Sheet<br/>[sheet.tsx]"]
  node_sidebar["Sidebar<br/>[sidebar.tsx]"]
  node_tooltip["Tooltip<br/>[tooltip.tsx]"]
  node_sonner["Sonner notifications<br/>[sonner.tsx]"]
  node_toaster["Toast renderer<br/>[toaster.tsx]"]
  node_toastui["Toast primitives<br/>[toast.tsx]"]
end

subgraph group_state["UI state"]
  node_toaststate["Toast state hook<br/>[use-toast.ts]"]
  node_mobile["Mobile breakpoint hook<br/>[use-mobile.tsx]"]
end

node_visitor(("Site visitor"))

node_visitor -->|"opens"| node_entry
node_entry -->|"renders"| node_app
node_app -->|"routes /"| node_landing
node_app -->|"routes fallback"| node_notfound
node_landing -->|"renders"| node_header
node_landing -->|"renders"| node_hero
node_landing -->|"renders"| node_about
node_landing -->|"renders"| node_services
node_landing -->|"renders"| node_portfolio
node_landing -->|"renders"| node_contact
node_landing -->|"renders"| node_footer
node_app -->|"renders"| node_toaster
node_app -->|"renders"| node_sonner
node_app -->|"provides"| node_tooltip
node_toaster -->|"reads state"| node_toaststate
node_toaster -->|"renders"| node_toastui
node_sidebar -->|"checks breakpoint"| node_mobile
node_sidebar -->|"uses mobile panel"| node_sheet
node_sidebar -->|"uses tooltips"| node_tooltip
node_sidebar -->|"uses button"| node_button

click node_entry "https://github.com/gara-vi04/fusion-space-website-kit/blob/main/src/main.tsx"
click node_app "https://github.com/gara-vi04/fusion-space-website-kit/blob/main/src/App.tsx"
click node_landing "https://github.com/gara-vi04/fusion-space-website-kit/blob/main/src/pages/Index.tsx"
click node_notfound "https://github.com/gara-vi04/fusion-space-website-kit/blob/main/src/pages/NotFound.tsx"
click node_header "https://github.com/gara-vi04/fusion-space-website-kit/blob/main/src/components/Header.tsx"
click node_hero "https://github.com/gara-vi04/fusion-space-website-kit/blob/main/src/components/Hero.tsx"
click node_about "https://github.com/gara-vi04/fusion-space-website-kit/blob/main/src/components/About.tsx"
click node_services "https://github.com/gara-vi04/fusion-space-website-kit/blob/main/src/components/Services.tsx"
click node_portfolio "https://github.com/gara-vi04/fusion-space-website-kit/blob/main/src/components/Portfolio.tsx"
click node_contact "https://github.com/gara-vi04/fusion-space-website-kit/blob/main/src/components/Contact.tsx"
click node_footer "https://github.com/gara-vi04/fusion-space-website-kit/blob/main/src/components/Footer.tsx"
click node_button "https://github.com/gara-vi04/fusion-space-website-kit/blob/main/src/components/ui/button.tsx"
click node_dialog "https://github.com/gara-vi04/fusion-space-website-kit/blob/main/src/components/ui/dialog.tsx"
click node_sheet "https://github.com/gara-vi04/fusion-space-website-kit/blob/main/src/components/ui/sheet.tsx"
click node_sidebar "https://github.com/gara-vi04/fusion-space-website-kit/blob/main/src/components/ui/sidebar.tsx"
click node_tooltip "https://github.com/gara-vi04/fusion-space-website-kit/blob/main/src/components/ui/tooltip.tsx"
click node_sonner "https://github.com/gara-vi04/fusion-space-website-kit/blob/main/src/components/ui/sonner.tsx"
click node_toaster "https://github.com/gara-vi04/fusion-space-website-kit/blob/main/src/components/ui/toaster.tsx"
click node_toastui "https://github.com/gara-vi04/fusion-space-website-kit/blob/main/src/components/ui/toast.tsx"
click node_toaststate "https://github.com/gara-vi04/fusion-space-website-kit/blob/main/src/hooks/use-toast.ts"
click node_mobile "https://github.com/gara-vi04/fusion-space-website-kit/blob/main/src/hooks/use-mobile.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_entry,node_app,node_landing,node_notfound,node_header,node_hero,node_about,node_services,node_portfolio,node_contact,node_footer toneBlue
class node_button,node_dialog,node_sheet,node_sidebar,node_tooltip,node_sonner,node_toaster,node_toastui toneAmber
class node_toaststate,node_mobile toneMint
class node_visitor toneIndigo
```

## Components

### Site composition

- [React entry](https://github.com/gara-vi04/fusion-space-website-kit/blob/main/src/main.tsx): `src/main.tsx`
- [App router](https://github.com/gara-vi04/fusion-space-website-kit/blob/main/src/App.tsx): `src/App.tsx`
- [Landing page](https://github.com/gara-vi04/fusion-space-website-kit/blob/main/src/pages/Index.tsx): `src/pages/Index.tsx`
- [Not found](https://github.com/gara-vi04/fusion-space-website-kit/blob/main/src/pages/NotFound.tsx): `src/pages/NotFound.tsx`
- [Header](https://github.com/gara-vi04/fusion-space-website-kit/blob/main/src/components/Header.tsx): `src/components/Header.tsx`
- [Hero](https://github.com/gara-vi04/fusion-space-website-kit/blob/main/src/components/Hero.tsx): `src/components/Hero.tsx`
- [About](https://github.com/gara-vi04/fusion-space-website-kit/blob/main/src/components/About.tsx): `src/components/About.tsx`
- [Services](https://github.com/gara-vi04/fusion-space-website-kit/blob/main/src/components/Services.tsx): `src/components/Services.tsx`
- [Portfolio](https://github.com/gara-vi04/fusion-space-website-kit/blob/main/src/components/Portfolio.tsx): `src/components/Portfolio.tsx`
- [Contact form](https://github.com/gara-vi04/fusion-space-website-kit/blob/main/src/components/Contact.tsx): `src/components/Contact.tsx`
- [Footer](https://github.com/gara-vi04/fusion-space-website-kit/blob/main/src/components/Footer.tsx): `src/components/Footer.tsx`

### Shared UI

- [Button](https://github.com/gara-vi04/fusion-space-website-kit/blob/main/src/components/ui/button.tsx): `src/components/ui/button.tsx`
- [Dialog](https://github.com/gara-vi04/fusion-space-website-kit/blob/main/src/components/ui/dialog.tsx): `src/components/ui/dialog.tsx`
- [Sheet](https://github.com/gara-vi04/fusion-space-website-kit/blob/main/src/components/ui/sheet.tsx): `src/components/ui/sheet.tsx`
- [Sidebar](https://github.com/gara-vi04/fusion-space-website-kit/blob/main/src/components/ui/sidebar.tsx): `src/components/ui/sidebar.tsx`
- [Tooltip](https://github.com/gara-vi04/fusion-space-website-kit/blob/main/src/components/ui/tooltip.tsx): `src/components/ui/tooltip.tsx`
- [Sonner notifications](https://github.com/gara-vi04/fusion-space-website-kit/blob/main/src/components/ui/sonner.tsx): `src/components/ui/sonner.tsx`
- [Toast renderer](https://github.com/gara-vi04/fusion-space-website-kit/blob/main/src/components/ui/toaster.tsx): `src/components/ui/toaster.tsx`
- [Toast primitives](https://github.com/gara-vi04/fusion-space-website-kit/blob/main/src/components/ui/toast.tsx): `src/components/ui/toast.tsx`

### UI state

- [Toast state hook](https://github.com/gara-vi04/fusion-space-website-kit/blob/main/src/hooks/use-toast.ts): `src/hooks/use-toast.ts`
- [Mobile breakpoint hook](https://github.com/gara-vi04/fusion-space-website-kit/blob/main/src/hooks/use-mobile.tsx): `src/hooks/use-mobile.tsx`

### Other components

- **Site visitor**

## Connections

- Site visitor → React entry: opens
- React entry → App router: renders (evidence: `src/main.tsx`)
- App router → Landing page: routes / (evidence: `src/App.tsx`)
- App router → Not found: routes fallback (evidence: `src/App.tsx`)
- Landing page → Header: renders (evidence: `src/pages/Index.tsx`)
- Landing page → Hero: renders (evidence: `src/pages/Index.tsx`)
- Landing page → About: renders (evidence: `src/pages/Index.tsx`)
- Landing page → Services: renders (evidence: `src/pages/Index.tsx`)
- Landing page → Portfolio: renders (evidence: `src/pages/Index.tsx`)
- Landing page → Contact form: renders (evidence: `src/pages/Index.tsx`)
- Landing page → Footer: renders (evidence: `src/pages/Index.tsx`)
- App router → Toast renderer: renders (evidence: `src/App.tsx`)
- App router → Sonner notifications: renders (evidence: `src/App.tsx`)
- App router → Tooltip: provides (evidence: `src/App.tsx`)
- Toast renderer → Toast state hook: reads state (evidence: `src/components/ui/toaster.tsx`)
- Toast renderer → Toast primitives: renders (evidence: `src/components/ui/toaster.tsx`)
- Sidebar → Mobile breakpoint hook: checks breakpoint (evidence: `src/components/ui/sidebar.tsx`)
- Sidebar → Sheet: uses mobile panel (evidence: `src/components/ui/sidebar.tsx`)
- Sidebar → Tooltip: uses tooltips (evidence: `src/components/ui/sidebar.tsx`)
- Sidebar → Button: uses button (evidence: `src/components/ui/sidebar.tsx`)
