# manishbulchandani/optimum-hospitality architecture

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

- Interactive diagram: https://gitdiagram.com/manishbulchandani/optimum-hospitality
- Repository: https://github.com/manishbulchandani/optimum-hospitality

## Overview

#### Purpose and Runtime
This is a static marketing site for a hotel-management/consultancy business. It is a React single-page application written in TypeScript and built/served by Vite. Deployment is configured for Vercel via `vercel.json`; there is no backend, database, or external API integration represented in the tree.

#### Application Entry and Composition
Browser startup flows from `index.html` to `src/main.tsx`, which mounts the React application. `src/App.tsx` is the top-level application shell, while global and application styling are defined in `src/index.css` and `src/App.css`.

#### Route Boundary
Client-side route selection is centralized in `src/router/AppRouter.tsx`. Route-level pages are separate composition units:
- `src/pages/HomePage.tsx`
- `src/pages/AboutPage.tsx`
- `src/pages/ServicesPage.tsx`
- `src/pages/ContactPage.tsx`
- `src/pages/TeamPage.tsx`
- `src/pages/TeamMemberDetailPage.tsx`

Pages should own assembly of their domain sections rather than embedding cross-page navigation logic.

#### Shared Site Chrome
Reusable global layout is provided by `src/components/layout/Navbar.tsx` and `src/components/layout/Footer.tsx`. These form the persistent navigation and footer boundary around routed page content, and likely carry the primary navigation links between marketing sections.

#### Home and Service Content Stages
The home page is composed from independently reusable promotional/content sections, including hero, company overview, hotel-management offerings, evidence, and social proof:
- `src/components/home/HeroSection.tsx`
- `src/components/home/AboutUs.tsx`
- `src/components/home/CoreHotelManagement.tsx`
- `src/components/home/HotelCaseStudy.tsx`
- `src/components/home/TestimonialsSection.tsx`

Services use a parallel but distinct presentation layer in `src/components/services/HeroSection.tsx` and `src/components/services/CoreHotelManagement.tsx`.

#### About, Team, and Detail Flow
About content is broken into operational narrative, consulting, project, and presence sections:
- `src/components/about/HeroSection.tsx`
- `src/components/about/Operate.tsx`
- `src/components/about/Consultant.tsx`
- `src/components/about/ClientProjects.tsx`

The team domain has a meaningful data-to-detail boundary: `src/components/team/teamData.ts` supplies member information used by listing and detail components, while `src/pages/TeamMemberDetailPage.tsx` renders the selected member route. Core views are `src/components/team/TeamMembers.tsx` and `src/components/team/TeamDetail.tsx`.

#### Contact and Static Asset Boundary
Contact is a client-rendered form section at `src/components/contact/ContactForm.tsx`, paired with `src/components/contact/HeroSection.tsx`. No submission service is visible, so form handling is expected to remain browser-side unless an integration is added.

Visual content is local and bundled from `src/assets/image/`, organized by page/domain; custom brand fonts are served as static public assets under `public/fonts/`. Tailwind is present through `tailwind.config.ts`, alongside CSS stylesheets, with Vite configuration in `vite.config.ts`.

Main entry points: [`src/router/AppRouter.tsx`](https://github.com/manishbulchandani/optimum-hospitality/blob/main/src/router/AppRouter.tsx) (Client router), [`src/App.tsx`](https://github.com/manishbulchandani/optimum-hospitality/blob/main/src/App.tsx) (Application shell), [`src/assets/image`](https://github.com/manishbulchandani/optimum-hospitality/tree/main/src/assets/image) (Bundled imagery), [`vite.config.ts`](https://github.com/manishbulchandani/optimum-hospitality/blob/main/vite.config.ts) (Vite build)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Build &amp; Delivery"]
  node_html["Browser entry<br/>HTML entry<br/>[index.html]"]
  node_vite["Vite build<br/>build tool<br/>[vite.config.ts]"]
  node_vercel["Vercel deployment<br/>hosting config<br/>[vercel.json]"]
end

subgraph group_app["Application Shell"]
  node_main["React bootstrap<br/>TSX entry<br/>[main.tsx]"]
  node_appshell["Application shell<br/>React root<br/>[App.tsx]"]
  node_router{{"Client router<br/>route selector<br/>[AppRouter.tsx]"}}
  node_navbar["Navigation bar<br/>shared layout<br/>[Navbar.tsx]"]
  node_footer["Footer<br/>shared layout<br/>[Footer.tsx]"]
  node_styles["Global styles<br/>CSS<br/>[index.css]"]
end

subgraph group_pages["Routes &amp; Pages"]
  node_home["Home page<br/>route page<br/>[HomePage.tsx]"]
  node_about["About page<br/>route page<br/>[AboutPage.tsx]"]
  node_services["Services page<br/>route page<br/>[ServicesPage.tsx]"]
  node_contact["Contact page<br/>route page<br/>[ContactPage.tsx]"]
  node_team["Team page<br/>route page<br/>[TeamPage.tsx]"]
  node_memberpage["Member detail page<br/>route page"]
end

subgraph group_content["Domain Content"]
  node_homecontent["Home content sections<br/>section suite"]
  node_aboutcontent["About content sections<br/>section suite"]
  node_servicecontent["Service content sections<br/>section suite"]
  node_contactform["Contact form<br/>client form<br/>[ContactForm.tsx]"]
  node_teamlist["Team members view<br/>team listing<br/>[TeamMembers.tsx]"]
  node_teamdetail["Team detail view<br/>member detail<br/>[TeamDetail.tsx]"]
  node_teamdata["Team member data<br/>local data<br/>[teamData.ts]"]
  node_assets["Bundled imagery<br/>static assets"]
end

node_html -->|"loads"| node_main
node_vite -->|"builds"| node_html
node_vite -.->|"deploys build"| node_vercel
node_main -->|"mounts"| node_appshell
node_appshell -->|"renders"| node_router
node_appshell -->|"persistent chrome"| node_navbar
node_appshell -->|"persistent chrome"| node_footer
node_styles -->|"styles"| node_appshell
node_router -->|"home route"| node_home
node_router -->|"about route"| node_about
node_router -->|"services route"| node_services
node_router -->|"contact route"| node_contact
node_router -->|"team route"| node_team
node_router -->|"member route"| node_memberpage
node_home -->|"assembles"| node_homecontent
node_about -->|"assembles"| node_aboutcontent
node_services -->|"assembles"| node_servicecontent
node_contact -->|"renders"| node_contactform
node_team -->|"renders"| node_teamlist
node_memberpage -->|"renders"| node_teamdetail
node_teamdata -->|"supplies members"| node_teamlist
node_teamdata -->|"supplies member data"| node_teamdetail
node_homecontent -.->|"uses imagery"| node_assets
node_aboutcontent -.->|"uses imagery"| node_assets
node_servicecontent -.->|"uses imagery"| node_assets

click node_html "https://github.com/manishbulchandani/optimum-hospitality/blob/main/index.html"
click node_vite "https://github.com/manishbulchandani/optimum-hospitality/blob/main/vite.config.ts"
click node_vercel "https://github.com/manishbulchandani/optimum-hospitality/blob/main/vercel.json"
click node_main "https://github.com/manishbulchandani/optimum-hospitality/blob/main/src/main.tsx"
click node_appshell "https://github.com/manishbulchandani/optimum-hospitality/blob/main/src/App.tsx"
click node_router "https://github.com/manishbulchandani/optimum-hospitality/blob/main/src/router/AppRouter.tsx"
click node_navbar "https://github.com/manishbulchandani/optimum-hospitality/blob/main/src/components/layout/Navbar.tsx"
click node_footer "https://github.com/manishbulchandani/optimum-hospitality/blob/main/src/components/layout/Footer.tsx"
click node_styles "https://github.com/manishbulchandani/optimum-hospitality/blob/main/src/index.css"
click node_home "https://github.com/manishbulchandani/optimum-hospitality/blob/main/src/pages/HomePage.tsx"
click node_about "https://github.com/manishbulchandani/optimum-hospitality/blob/main/src/pages/AboutPage.tsx"
click node_services "https://github.com/manishbulchandani/optimum-hospitality/blob/main/src/pages/ServicesPage.tsx"
click node_contact "https://github.com/manishbulchandani/optimum-hospitality/blob/main/src/pages/ContactPage.tsx"
click node_team "https://github.com/manishbulchandani/optimum-hospitality/blob/main/src/pages/TeamPage.tsx"
click node_memberpage "https://github.com/manishbulchandani/optimum-hospitality/blob/main/src/pages/TeamMemberDetailPage.tsx"
click node_contactform "https://github.com/manishbulchandani/optimum-hospitality/blob/main/src/components/contact/ContactForm.tsx"
click node_teamlist "https://github.com/manishbulchandani/optimum-hospitality/blob/main/src/components/team/TeamMembers.tsx"
click node_teamdetail "https://github.com/manishbulchandani/optimum-hospitality/blob/main/src/components/team/TeamDetail.tsx"
click node_teamdata "https://github.com/manishbulchandani/optimum-hospitality/blob/main/src/components/team/teamData.ts"
click node_assets "https://github.com/manishbulchandani/optimum-hospitality/tree/main/src/assets/image"

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_html,node_vite,node_vercel toneBlue
class node_main,node_appshell,node_router,node_navbar,node_footer,node_styles toneAmber
class node_home,node_about,node_services,node_contact,node_team,node_memberpage toneMint
class node_homecontent,node_aboutcontent,node_servicecontent,node_contactform,node_teamlist,node_teamdetail,node_teamdata,node_assets toneRose
```

## Components

### Build & Delivery

- [Browser entry](https://github.com/manishbulchandani/optimum-hospitality/blob/main/index.html): HTML entry · `index.html`
- [Vite build](https://github.com/manishbulchandani/optimum-hospitality/blob/main/vite.config.ts): build tool · `vite.config.ts`
- [Vercel deployment](https://github.com/manishbulchandani/optimum-hospitality/blob/main/vercel.json): hosting config · `vercel.json`

### Application Shell

- [React bootstrap](https://github.com/manishbulchandani/optimum-hospitality/blob/main/src/main.tsx): TSX entry · `src/main.tsx`
- [Application shell](https://github.com/manishbulchandani/optimum-hospitality/blob/main/src/App.tsx): React root · `src/App.tsx`
- [Client router](https://github.com/manishbulchandani/optimum-hospitality/blob/main/src/router/AppRouter.tsx): route selector · `src/router/AppRouter.tsx`
- [Navigation bar](https://github.com/manishbulchandani/optimum-hospitality/blob/main/src/components/layout/Navbar.tsx): shared layout · `src/components/layout/Navbar.tsx`
- [Footer](https://github.com/manishbulchandani/optimum-hospitality/blob/main/src/components/layout/Footer.tsx): shared layout · `src/components/layout/Footer.tsx`
- [Global styles](https://github.com/manishbulchandani/optimum-hospitality/blob/main/src/index.css): CSS · Global and app-level styling. · `src/index.css`

### Routes & Pages

- [Home page](https://github.com/manishbulchandani/optimum-hospitality/blob/main/src/pages/HomePage.tsx): route page · `src/pages/HomePage.tsx`
- [About page](https://github.com/manishbulchandani/optimum-hospitality/blob/main/src/pages/AboutPage.tsx): route page · `src/pages/AboutPage.tsx`
- [Services page](https://github.com/manishbulchandani/optimum-hospitality/blob/main/src/pages/ServicesPage.tsx): route page · `src/pages/ServicesPage.tsx`
- [Contact page](https://github.com/manishbulchandani/optimum-hospitality/blob/main/src/pages/ContactPage.tsx): route page · `src/pages/ContactPage.tsx`
- [Team page](https://github.com/manishbulchandani/optimum-hospitality/blob/main/src/pages/TeamPage.tsx): route page · `src/pages/TeamPage.tsx`
- [Member detail page](https://github.com/manishbulchandani/optimum-hospitality/blob/main/src/pages/TeamMemberDetailPage.tsx): route page · Renders the selected team-member route. · `src/pages/TeamMemberDetailPage.tsx`

### Domain Content

- **Home content sections**: section suite · Hero, overview, offerings, case study, and testimonials.
- **About content sections**: section suite · Hero, operations, consulting, and client projects.
- **Service content sections**: section suite · Service hero and hotel-management presentation.
- [Contact form](https://github.com/manishbulchandani/optimum-hospitality/blob/main/src/components/contact/ContactForm.tsx): client form · Browser-side form with no visible submission service. · `src/components/contact/ContactForm.tsx`
- [Team members view](https://github.com/manishbulchandani/optimum-hospitality/blob/main/src/components/team/TeamMembers.tsx): team listing · `src/components/team/TeamMembers.tsx`
- [Team detail view](https://github.com/manishbulchandani/optimum-hospitality/blob/main/src/components/team/TeamDetail.tsx): member detail · `src/components/team/TeamDetail.tsx`
- [Team member data](https://github.com/manishbulchandani/optimum-hospitality/blob/main/src/components/team/teamData.ts): local data · Supplies member information to listing and detail views. · `src/components/team/teamData.ts`
- [Bundled imagery](https://github.com/manishbulchandani/optimum-hospitality/tree/main/src/assets/image): static assets · Local visual content organized by page and domain. · `src/assets/image`

## Connections

- Browser entry → React bootstrap: loads
- Vite build → Browser entry: builds
- Vite build → Vercel deployment: deploys build
- React bootstrap → Application shell: mounts
- Application shell → Client router: renders
- Application shell → Navigation bar: persistent chrome
- Application shell → Footer: persistent chrome
- Global styles → Application shell: styles
- Client router → Home page: home route
- Client router → About page: about route
- Client router → Services page: services route
- Client router → Contact page: contact route
- Client router → Team page: team route
- Client router → Member detail page: member route
- Home page → Home content sections: assembles
- About page → About content sections: assembles
- Services page → Service content sections: assembles
- Contact page → Contact form: renders
- Team page → Team members view: renders
- Member detail page → Team detail view: renders
- Team member data → Team members view: supplies members
- Team member data → Team detail view: supplies member data
- Home content sections → Bundled imagery: uses imagery
- About content sections → Bundled imagery: uses imagery
- Service content sections → Bundled imagery: uses imagery
