How manishbulchandani/optimum-hospitality works
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: AppRouter.tsx Client router · App.tsx Application shell · image Bundled imagery · vite.config.ts Vite build
Components 23
Build & Delivery
- Browser entry
index.html - Vite build
vite.config.ts - Vercel deployment
vercel.json
Application Shell
- React bootstrap
src/main.tsx - Application shell
src/App.tsx - Client router
src/router/AppRouter.tsx - Navigation bar
src/components/layout/Navbar.tsx - Footer
src/components/layout/Footer.tsx - Global styles · Global and app-level styling.
src/index.css
Routes & Pages
- Home page
src/pages/HomePage.tsx - About page
src/pages/AboutPage.tsx - Services page
src/pages/ServicesPage.tsx - Contact page
src/pages/ContactPage.tsx - Team page
src/pages/TeamPage.tsx - Member detail page · Renders the selected team-member route.
src/pages/TeamMemberDetailPage.tsx
Domain Content
- Home content sections · Hero, overview, offerings, case study, and testimonials.
- About content sections · Hero, operations, consulting, and client projects.
- Service content sections · Service hero and hotel-management presentation.
- Contact form · Browser-side form with no visible submission service.
src/components/contact/ContactForm.tsx - Team members view
src/components/team/TeamMembers.tsx - Team detail view
src/components/team/TeamDetail.tsx - Team member data · Supplies member information to listing and detail views.
src/components/team/teamData.ts - Bundled imagery · Local visual content organized by page and domain.
src/assets/image
Connections 25
- 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