# brightwebd318-ship-it/ekthacabscochin architecture

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

- Interactive diagram: https://gitdiagram.com/brightwebd318-ship-it/ekthacabscochin
- Repository: https://github.com/brightwebd318-ship-it/ekthacabscochin

## Overview

#### Purpose and Runtime
This is a Next.js App Router marketing site for a Kerala travel/taxi service, presenting fleet options, bookings, local sightseeing, interstate travel, and Kerala tour packages. The README is stale (Create React App); the actual route structure and runtime are Next.js, indicated by `app/`, `next.config.js`, and route metadata files.

#### Application Entry and Routing
The root application shell is `app/layout.jsx`, with global styles in `app/globals.css`. The primary landing page is `app/page.jsx`. Route-level pages provide focused journeys:
- Booking: `app/book/page.jsx`
- Fleet: `app/fleet/page.jsx`
- Tour packages: `app/kerala-tour-packages/page.jsx`

SEO crawler boundaries are explicitly handled by `app/robots.js` and `app/sitemap.js`.

#### Shared Site Shell and Navigation
`components/Header.jsx` and `components/Footer.jsx` form the shared navigational and branding boundary across pages. `components/ScrollRestorer.jsx` supports client-side route navigation by restoring or managing scroll position. Persistent conversion actions are exposed through:
- `components/FloatingCallButton.jsx`
- `components/FloatingWhatsAppButton.jsx`

These controls likely route users to phone/WhatsApp external device or service handlers rather than an internal booking backend.

#### Landing-Page Content Composition
The home route is assembled from reusable promotional sections rather than a data/API-driven content layer. Key stages are:
- Hero/video presentation: `components/Hero.jsx`, `public/videos/EkthaHomeV.mp4`
- Service offerings: `components/Services.jsx`, `components/LocalSightseeing.jsx`
- Vehicle discovery: `components/VehicleSlider.jsx`, `components/GallerySection.jsx`
- Trust and FAQs: `components/WhyChooseUs.jsx`, `components/FAQ.jsx`
- Geographic/service coverage: `components/InterstateSection.jsx`, `components/MapSection.jsx`

Each presentation component has colocated CSS, making styling component-scoped by convention, though loaded through standard CSS imports rather than a design-system layer.

#### Booking, Fleet, and Package Flows
The booking journey is centered on `components/BookingPage.jsx`, rendered from `app/book/page.jsx`; no server endpoint, payment provider, database schema, or API route exists in the tree. Fleet content is similarly isolated in `components/FleetPage.jsx` and `app/fleet/page.jsx`. Tour-oriented content is split between reusable package/service sections and a dedicated route:
- `components/KeralaPackages.jsx`
- `components/KeralaTourPackages.jsx`
- `components/SabarimalaService.jsx`
- `app/kerala-tour-packages/page.jsx`

The visible architecture is therefore brochure/conversion-oriented: route → composed UI sections → user contact action, with no verified transaction-processing boundary.

#### Static Media Infrastructure
All visible product media is bundled locally under `public/`, allowing Next.js to serve it as static assets. Vehicle inventory imagery is under `public/images/vehicles/`, including `innova-crysta.avif` and `Force-Urbania-Van.avif`; broader fleet and Kerala imagery reside in `public/images/fleet/` and `public/images/kerala/`. Hero/video content is local under `public/videos/`, including `EkthaHero1.mp4`.

#### External Dependencies and Operational Boundaries
The repository exposes no backend services, authentication, CMS, payment integration, database, or deployment infrastructure. The material execution boundary is the Next.js frontend configured by `next.config.js`; browser-side telephone and WhatsApp actions are the likely external conversion integrations. `package.json` and `package-lock.json` define the actual dependency/runtime contract and should be treated as authoritative over the outdated README.

Main entry points: [`next.config.js`](https://github.com/brightwebd318-ship-it/ekthacabscochin/blob/main/next.config.js) (Next.js frontend), [`app/layout.jsx`](https://github.com/brightwebd318-ship-it/ekthacabscochin/blob/main/app/layout.jsx) (Root layout), [`components/Services.jsx`](https://github.com/brightwebd318-ship-it/ekthacabscochin/blob/main/components/Services.jsx) (Promotional sections), [`app/page.jsx`](https://github.com/brightwebd318-ship-it/ekthacabscochin/blob/main/app/page.jsx) (Home page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_routes["App Routes"]
  node_root_layout["Root layout<br/>app shell<br/>[layout.jsx]"]
  node_global_styles["Global styles<br/>CSS<br/>[globals.css]"]
  node_header_footer["Header and footer<br/>shared UI<br/>[Header.jsx]"]
  node_scroll["Scroll restorer<br/>client navigation<br/>[ScrollRestorer.jsx]"]
  node_home_route["Home page<br/>route<br/>[page.jsx]"]
  node_seo["Robots and sitemap<br/>SEO metadata<br/>[robots.js]"]
end

subgraph group_home["Home Composition"]
  node_home_sections["Promotional sections<br/>UI composition<br/>[Services.jsx]"]
  node_hero["Hero presentation<br/>media UI<br/>[Hero.jsx]"]
end

subgraph group_conversion["Conversion Flows"]
  node_booking_route["Booking route<br/>[page.jsx]"]
  node_booking_ui["Booking page UI<br/>conversion UI<br/>[BookingPage.jsx]"]
  node_fleet_route["Fleet route<br/>[page.jsx]"]
  node_fleet_ui["Fleet page UI<br/>content UI<br/>[FleetPage.jsx]"]
  node_packages_route["Tour packages route<br/>[page.jsx]"]
  node_packages_ui["Package content<br/>content UI"]
  node_contact_actions(("Phone and WhatsApp<br/>external contact"))
end

subgraph group_media["Static Media"]
  node_vehicle_media["Vehicle imagery<br/>static assets<br/>[innova-crysta.avif]"]
  node_kerala_media["Kerala imagery<br/>static assets"]
  node_video_media["Hero videos<br/>static assets<br/>[EkthaHomeV.mp4]"]
end

node_next{{"Next.js frontend<br/>runtime<br/>[next.config.js]"}}
node_deps["Dependency contract<br/>package manifest<br/>[package.json]"]

node_deps -->|"defines"| node_next
node_next -->|"runs"| node_root_layout
node_root_layout -->|"loads"| node_global_styles
node_root_layout -->|"shares"| node_header_footer
node_root_layout -->|"includes"| node_scroll
node_next -->|"serves"| node_home_route
node_next -->|"serves"| node_booking_route
node_next -->|"serves"| node_fleet_route
node_next -->|"serves"| node_packages_route
node_next -->|"exposes"| node_seo
node_home_route -->|"composes"| node_hero
node_home_route -->|"composes"| node_home_sections
node_hero -->|"uses"| node_video_media
node_home_sections -->|"displays"| node_vehicle_media
node_home_sections -->|"displays"| node_kerala_media
node_booking_route -->|"renders"| node_booking_ui
node_fleet_route -->|"renders"| node_fleet_ui
node_fleet_ui -->|"displays"| node_vehicle_media
node_packages_route -->|"renders"| node_packages_ui
node_packages_ui -->|"displays"| node_kerala_media
node_booking_ui -->|"converts via"| node_contact_actions
node_header_footer -.->|"supports navigation to"| node_contact_actions
node_home_sections -.->|"drives conversion to"| node_contact_actions

click node_next "https://github.com/brightwebd318-ship-it/ekthacabscochin/blob/main/next.config.js"
click node_deps "https://github.com/brightwebd318-ship-it/ekthacabscochin/blob/main/package.json"
click node_root_layout "https://github.com/brightwebd318-ship-it/ekthacabscochin/blob/main/app/layout.jsx"
click node_global_styles "https://github.com/brightwebd318-ship-it/ekthacabscochin/blob/main/app/globals.css"
click node_header_footer "https://github.com/brightwebd318-ship-it/ekthacabscochin/blob/main/components/Header.jsx"
click node_scroll "https://github.com/brightwebd318-ship-it/ekthacabscochin/blob/main/components/ScrollRestorer.jsx"
click node_home_route "https://github.com/brightwebd318-ship-it/ekthacabscochin/blob/main/app/page.jsx"
click node_booking_route "https://github.com/brightwebd318-ship-it/ekthacabscochin/blob/main/app/book/page.jsx"
click node_booking_ui "https://github.com/brightwebd318-ship-it/ekthacabscochin/blob/main/components/BookingPage.jsx"
click node_fleet_route "https://github.com/brightwebd318-ship-it/ekthacabscochin/blob/main/app/fleet/page.jsx"
click node_fleet_ui "https://github.com/brightwebd318-ship-it/ekthacabscochin/blob/main/components/FleetPage.jsx"
click node_packages_route "https://github.com/brightwebd318-ship-it/ekthacabscochin/blob/main/app/kerala-tour-packages/page.jsx"
click node_packages_ui "https://github.com/brightwebd318-ship-it/ekthacabscochin/blob/main/components/KeralaTourPackages.jsx"
click node_home_sections "https://github.com/brightwebd318-ship-it/ekthacabscochin/blob/main/components/Services.jsx"
click node_hero "https://github.com/brightwebd318-ship-it/ekthacabscochin/blob/main/components/Hero.jsx"
click node_seo "https://github.com/brightwebd318-ship-it/ekthacabscochin/blob/main/app/robots.js"
click node_contact_actions "https://github.com/brightwebd318-ship-it/ekthacabscochin/blob/main/components/FloatingWhatsAppButton.jsx"
click node_vehicle_media "https://github.com/brightwebd318-ship-it/ekthacabscochin/blob/main/public/images/vehicles/innova-crysta.avif"
click node_video_media "https://github.com/brightwebd318-ship-it/ekthacabscochin/blob/main/public/videos/EkthaHomeV.mp4"

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_root_layout,node_global_styles,node_header_footer,node_scroll,node_home_route,node_seo toneBlue
class node_home_sections,node_hero toneAmber
class node_booking_route,node_booking_ui,node_fleet_route,node_fleet_ui,node_packages_route,node_packages_ui,node_contact_actions toneMint
class node_vehicle_media,node_kerala_media,node_video_media toneRose
class node_next,node_deps toneNeutral
```

## Components

### App Routes

Next.js App Router pages and crawler metadata.

- [Root layout](https://github.com/brightwebd318-ship-it/ekthacabscochin/blob/main/app/layout.jsx): app shell · Applies the shared shell and global styling. · `app/layout.jsx`
- [Global styles](https://github.com/brightwebd318-ship-it/ekthacabscochin/blob/main/app/globals.css): CSS · `app/globals.css`
- [Header and footer](https://github.com/brightwebd318-ship-it/ekthacabscochin/blob/main/components/Header.jsx): shared UI · Shared navigation and branding boundary. · `components/Header.jsx`
- [Scroll restorer](https://github.com/brightwebd318-ship-it/ekthacabscochin/blob/main/components/ScrollRestorer.jsx): client navigation · Manages scroll behavior across route changes. · `components/ScrollRestorer.jsx`
- [Home page](https://github.com/brightwebd318-ship-it/ekthacabscochin/blob/main/app/page.jsx): route · Primary marketing landing route. · `app/page.jsx`
- [Robots and sitemap](https://github.com/brightwebd318-ship-it/ekthacabscochin/blob/main/app/robots.js): SEO metadata · Crawler discovery and indexing boundaries. · `app/robots.js`

### Home Composition

Reusable promotional sections assembled on the landing page.

- [Promotional sections](https://github.com/brightwebd318-ship-it/ekthacabscochin/blob/main/components/Services.jsx): UI composition · Services, sightseeing, fleet discovery, trust, FAQ, coverage, and package sections. · `components/Services.jsx`
- [Hero presentation](https://github.com/brightwebd318-ship-it/ekthacabscochin/blob/main/components/Hero.jsx): media UI · Home hero/video presentation. · `components/Hero.jsx`

### Conversion Flows

Brochure journeys that lead visitors to direct contact actions.

- [Booking route](https://github.com/brightwebd318-ship-it/ekthacabscochin/blob/main/app/book/page.jsx): route · `app/book/page.jsx`
- [Booking page UI](https://github.com/brightwebd318-ship-it/ekthacabscochin/blob/main/components/BookingPage.jsx): conversion UI · Contact-oriented booking journey without a verified backend. · `components/BookingPage.jsx`
- [Fleet route](https://github.com/brightwebd318-ship-it/ekthacabscochin/blob/main/app/fleet/page.jsx): route · `app/fleet/page.jsx`
- [Fleet page UI](https://github.com/brightwebd318-ship-it/ekthacabscochin/blob/main/components/FleetPage.jsx): content UI · `components/FleetPage.jsx`
- [Tour packages route](https://github.com/brightwebd318-ship-it/ekthacabscochin/blob/main/app/kerala-tour-packages/page.jsx): route · `app/kerala-tour-packages/page.jsx`
- [Package content](https://github.com/brightwebd318-ship-it/ekthacabscochin/blob/main/components/KeralaTourPackages.jsx): content UI · Dedicated and reusable Kerala package and pilgrimage content. · `components/KeralaTourPackages.jsx`
- [Phone and WhatsApp](https://github.com/brightwebd318-ship-it/ekthacabscochin/blob/main/components/FloatingWhatsAppButton.jsx): external contact · Browser/device handoff for conversion; no internal transaction backend is present. · `components/FloatingWhatsAppButton.jsx`

### Static Media

Locally bundled images and video served by Next.js.

- [Vehicle imagery](https://github.com/brightwebd318-ship-it/ekthacabscochin/blob/main/public/images/vehicles/innova-crysta.avif): static assets · Local vehicle and fleet images. · `public/images/vehicles/innova-crysta.avif`
- **Kerala imagery**: static assets
- [Hero videos](https://github.com/brightwebd318-ship-it/ekthacabscochin/blob/main/public/videos/EkthaHomeV.mp4): static assets · Local video served as public assets. · `public/videos/EkthaHomeV.mp4`

### Other components

- [Next.js frontend](https://github.com/brightwebd318-ship-it/ekthacabscochin/blob/main/next.config.js): runtime · The only verified application runtime and delivery boundary. · `next.config.js`
- [Dependency contract](https://github.com/brightwebd318-ship-it/ekthacabscochin/blob/main/package.json): package manifest · Authoritative runtime dependency definition. · `package.json`

## Connections

- Dependency contract → Next.js frontend: defines
- Next.js frontend → Root layout: runs
- Root layout → Global styles: loads
- Root layout → Header and footer: shares
- Root layout → Scroll restorer: includes
- Next.js frontend → Home page: serves
- Next.js frontend → Booking route: serves
- Next.js frontend → Fleet route: serves
- Next.js frontend → Tour packages route: serves
- Next.js frontend → Robots and sitemap: exposes
- Home page → Hero presentation: composes
- Home page → Promotional sections: composes
- Hero presentation → Hero videos: uses
- Promotional sections → Vehicle imagery: displays
- Promotional sections → Kerala imagery: displays
- Booking route → Booking page UI: renders
- Fleet route → Fleet page UI: renders
- Fleet page UI → Vehicle imagery: displays
- Tour packages route → Package content: renders
- Package content → Kerala imagery: displays
- Booking page UI → Phone and WhatsApp: converts via
- Header and footer → Phone and WhatsApp: supports navigation to
- Promotional sections → Phone and WhatsApp: drives conversion to
