How brightwebd318-ship-it/ekthacabscochin works
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 Next.js frontend · layout.jsx Root layout · Services.jsx Promotional sections · page.jsx Home page
Components 20
App Routes
Next.js App Router pages and crawler metadata.
- Root layout · Applies the shared shell and global styling.
app/layout.jsx - Global styles
app/globals.css - Header and footer · Shared navigation and branding boundary.
components/Header.jsx - Scroll restorer · Manages scroll behavior across route changes.
components/ScrollRestorer.jsx - Home page · Primary marketing landing route.
app/page.jsx - Robots and sitemap · Crawler discovery and indexing boundaries.
app/robots.js
Home Composition
Reusable promotional sections assembled on the landing page.
- Promotional sections · Services, sightseeing, fleet discovery, trust, FAQ, coverage, and package sections.
components/Services.jsx - Hero presentation · Home hero/video presentation.
components/Hero.jsx
Conversion Flows
Brochure journeys that lead visitors to direct contact actions.
- Booking route
app/book/page.jsx - Booking page UI · Contact-oriented booking journey without a verified backend.
components/BookingPage.jsx - Fleet route
app/fleet/page.jsx - Fleet page UI
components/FleetPage.jsx - Tour packages route
app/kerala-tour-packages/page.jsx - Package content · Dedicated and reusable Kerala package and pilgrimage content.
components/KeralaTourPackages.jsx - Phone and WhatsApp · 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 · Local vehicle and fleet images.
public/images/vehicles/innova-crysta.avif - Kerala imagery
- Hero videos · Local video served as public assets.
public/videos/EkthaHomeV.mp4
Other components
- Next.js frontend · The only verified application runtime and delivery boundary.
next.config.js - Dependency contract · Authoritative runtime dependency definition.
package.json
Connections 23
- 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