# ashwinak0301/ashtravels architecture

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

- Interactive diagram: https://gitdiagram.com/ashwinak0301/ashtravels
- Repository: https://github.com/ashwinak0301/ashtravels

## Overview

Ashwin Travels is a one-page Chennai cab and driver-services website. Visitors browse the service and coverage information, then use the booking section to contact the company through WhatsApp or phone; navigation and floating buttons provide additional routes to those actions. The graph distinguishes the rendered landing-page sections from booking/contact actions and supporting trust content. HowItWorks, Packages, and Testimonials are present in the source tree, but the sampled page does not show them being rendered, so their connections are not inferred.

Main entry points: [`src/app/page.tsx`](https://github.com/ashwinak0301/ashtravels/blob/main/src/app/page.tsx) (Home route), [`src/components/BookingForm.tsx`](https://github.com/ashwinak0301/ashtravels/blob/main/src/components/BookingForm.tsx) (Booking options), [`src/components/FloatingButtons.tsx`](https://github.com/ashwinak0301/ashtravels/blob/main/src/components/FloatingButtons.tsx) (Floating actions), [`src/app/layout.tsx`](https://github.com/ashwinak0301/ashtravels/blob/main/src/app/layout.tsx) (Root layout)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Landing page"]
  node_home["Home route<br/>[page.tsx]"]
  node_layout["Root layout<br/>[layout.tsx]"]
  node_header["Navigation<br/>[Header.tsx]"]
  node_hero["Hero section<br/>[Hero.tsx]"]
  node_about["About section<br/>[About.tsx]"]
  node_services["Services<br/>[Services.tsx]"]
  node_areas["Coverage areas<br/>[Areas.tsx]"]
end

subgraph group_booking["Booking and contact"]
  node_bookingform["Booking options<br/>[BookingForm.tsx]"]
  node_contact["Contact details<br/>[Contact.tsx]"]
  node_floating["Floating actions"]
end

subgraph group_content["Supporting content"]
  node_footer["Footer<br/>[Footer.tsx]"]
  node_howitworks["How it works<br/>[HowItWorks.tsx]"]
  node_packages["Travel packages<br/>[Packages.tsx]"]
  node_testimonials["Testimonials<br/>[Testimonials.tsx]"]
end

node_visitor(("Visitor"))
node_whatsapp["WhatsApp"]
node_phone["Phone service"]

node_visitor -->|"opens"| node_home
node_layout -->|"wraps route"| node_home
node_home -->|"renders"| node_header
node_home -->|"renders"| node_hero
node_home -->|"renders"| node_about
node_home -->|"renders"| node_services
node_home -->|"renders"| node_bookingform
node_home -->|"renders"| node_areas
node_home -->|"renders"| node_contact
node_home -->|"renders"| node_footer
node_home -->|"renders"| node_floating
node_bookingform -->|"opens booking"| node_whatsapp
node_bookingform -->|"calls"| node_phone
node_floating -->|"opens chat"| node_whatsapp
node_floating -->|"calls"| node_phone

click node_home "https://github.com/ashwinak0301/ashtravels/blob/main/src/app/page.tsx"
click node_layout "https://github.com/ashwinak0301/ashtravels/blob/main/src/app/layout.tsx"
click node_header "https://github.com/ashwinak0301/ashtravels/blob/main/src/components/Header.tsx"
click node_hero "https://github.com/ashwinak0301/ashtravels/blob/main/src/components/Hero.tsx"
click node_about "https://github.com/ashwinak0301/ashtravels/blob/main/src/components/About.tsx"
click node_services "https://github.com/ashwinak0301/ashtravels/blob/main/src/components/Services.tsx"
click node_areas "https://github.com/ashwinak0301/ashtravels/blob/main/src/components/Areas.tsx"
click node_bookingform "https://github.com/ashwinak0301/ashtravels/blob/main/src/components/BookingForm.tsx"
click node_contact "https://github.com/ashwinak0301/ashtravels/blob/main/src/components/Contact.tsx"
click node_floating "https://github.com/ashwinak0301/ashtravels/blob/main/src/components/FloatingButtons.tsx"
click node_footer "https://github.com/ashwinak0301/ashtravels/blob/main/src/components/Footer.tsx"
click node_howitworks "https://github.com/ashwinak0301/ashtravels/blob/main/src/components/HowItWorks.tsx"
click node_packages "https://github.com/ashwinak0301/ashtravels/blob/main/src/components/Packages.tsx"
click node_testimonials "https://github.com/ashwinak0301/ashtravels/blob/main/src/components/Testimonials.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_home,node_layout,node_header,node_hero,node_about,node_services,node_areas toneBlue
class node_bookingform,node_contact,node_floating toneAmber
class node_footer,node_howitworks,node_packages,node_testimonials toneMint
class node_visitor,node_whatsapp,node_phone toneIndigo
```

## Components

### Landing page

- [Home route](https://github.com/ashwinak0301/ashtravels/blob/main/src/app/page.tsx): `src/app/page.tsx`
- [Root layout](https://github.com/ashwinak0301/ashtravels/blob/main/src/app/layout.tsx): `src/app/layout.tsx`
- [Navigation](https://github.com/ashwinak0301/ashtravels/blob/main/src/components/Header.tsx): `src/components/Header.tsx`
- [Hero section](https://github.com/ashwinak0301/ashtravels/blob/main/src/components/Hero.tsx): `src/components/Hero.tsx`
- [About section](https://github.com/ashwinak0301/ashtravels/blob/main/src/components/About.tsx): `src/components/About.tsx`
- [Services](https://github.com/ashwinak0301/ashtravels/blob/main/src/components/Services.tsx): `src/components/Services.tsx`
- [Coverage areas](https://github.com/ashwinak0301/ashtravels/blob/main/src/components/Areas.tsx): `src/components/Areas.tsx`

### Booking and contact

- [Booking options](https://github.com/ashwinak0301/ashtravels/blob/main/src/components/BookingForm.tsx): `src/components/BookingForm.tsx`
- [Contact details](https://github.com/ashwinak0301/ashtravels/blob/main/src/components/Contact.tsx): `src/components/Contact.tsx`
- [Floating actions](https://github.com/ashwinak0301/ashtravels/blob/main/src/components/FloatingButtons.tsx): `src/components/FloatingButtons.tsx`

### Supporting content

- [Footer](https://github.com/ashwinak0301/ashtravels/blob/main/src/components/Footer.tsx): `src/components/Footer.tsx`
- [How it works](https://github.com/ashwinak0301/ashtravels/blob/main/src/components/HowItWorks.tsx): `src/components/HowItWorks.tsx`
- [Travel packages](https://github.com/ashwinak0301/ashtravels/blob/main/src/components/Packages.tsx): `src/components/Packages.tsx`
- [Testimonials](https://github.com/ashwinak0301/ashtravels/blob/main/src/components/Testimonials.tsx): `src/components/Testimonials.tsx`

### Other components

- **Visitor**
- **WhatsApp**
- **Phone service**

## Connections

- Visitor → Home route: opens (evidence: `README.md`)
- Root layout → Home route: wraps route (evidence: `src/app/layout.tsx`)
- Home route → Navigation: renders (evidence: `src/app/page.tsx`)
- Home route → Hero section: renders (evidence: `src/app/page.tsx`)
- Home route → About section: renders (evidence: `src/app/page.tsx`)
- Home route → Services: renders (evidence: `src/app/page.tsx`)
- Home route → Booking options: renders (evidence: `src/app/page.tsx`)
- Home route → Coverage areas: renders (evidence: `src/app/page.tsx`)
- Home route → Contact details: renders (evidence: `src/app/page.tsx`)
- Home route → Footer: renders (evidence: `src/app/page.tsx`)
- Home route → Floating actions: renders (evidence: `src/app/page.tsx`)
- Booking options → WhatsApp: opens booking (evidence: `src/components/BookingForm.tsx`)
- Booking options → Phone service: calls (evidence: `src/components/BookingForm.tsx`)
- Floating actions → WhatsApp: opens chat (evidence: `src/components/FloatingButtons.tsx`)
- Floating actions → Phone service: calls (evidence: `src/components/FloatingButtons.tsx`)
