# saikatcs/swaadyfood architecture

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

- Interactive diagram: https://gitdiagram.com/saikatcs/swaadyfood
- Repository: https://github.com/saikatcs/swaadyfood

## Overview

Swaady is a promotional showcase for a food-delivery app, not an ordering platform. Visitors enter the home page, learn the brand and delivery story, explore app screens and features, then can follow the download call to action; they can also read FAQs and contact the business. Reviews form a separate read-and-submit flow backed by Supabase. The home-page composition and review data calls are confirmed in sampled source; other README-described sections are represented by their exact tree paths, with uncertain implementation wiring omitted.

Main entry points: [`src/routes/index.tsx`](https://github.com/saikatcs/swaadyfood/blob/main/src/routes/index.tsx) (Home page), [`src/components/sections/Contact.tsx`](https://github.com/saikatcs/swaadyfood/blob/main/src/components/sections/Contact.tsx) (Contact), [`src/components/sections/DownloadCTA.tsx`](https://github.com/saikatcs/swaadyfood/blob/main/src/components/sections/DownloadCTA.tsx) (Download CTA), [`src/components/sections/Reviews.tsx`](https://github.com/saikatcs/swaadyfood/blob/main/src/components/sections/Reviews.tsx) (Reviews)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_story["Brand story"]
  node_hero["Hero<br/>[Hero.tsx]"]
  node_announcement["Announcement"]
  node_storyscene["Scroll story<br/>[ScrollStory.tsx]"]
  node_why["Why Swaady<br/>[WhySwaady.tsx]"]
  node_about["About<br/>[About.tsx]"]
end

subgraph group_showcase["App showcase"]
  node_showcase["App showcase<br/>[AppShowcase.tsx]"]
  node_features["Feature grid<br/>[FeaturesGrid.tsx]"]
  node_download["Download CTA<br/>[DownloadCTA.tsx]"]
end

subgraph group_engage["Visitor engagement"]
  node_reviews["Reviews<br/>[Reviews.tsx]"]
  node_faq["FAQ<br/>[Faq.tsx]"]
  node_contact["Contact<br/>[Contact.tsx]"]
  node_actionbar["Floating actions"]
end

subgraph group_runtime["Site runtime"]
  node_home["Home page<br/>[index.tsx]"]
  node_nav["Navigation<br/>[Nav.tsx]"]
  node_smooth["Smooth scroll<br/>[SmoothScroll.tsx]"]
  node_footer["Footer<br/>[Footer.tsx]"]
  node_privacy["Privacy policy<br/>[privacy-policy.tsx]"]
  node_deletepolicy["Delete policy"]
  node_sitemap["Sitemap route<br/>[sitemap&#91;.&#93;xml.ts]"]
end

node_visitor(("Visitor"))
node_supabase[("Supabase")]
node_phone(("Phone service"))
node_whatsapp(("WhatsApp"))
node_email(("Email service"))
node_map(("Google Maps"))
node_appstore(("Google Play"))

node_visitor -->|"opens"| node_home
node_home -->|"renders"| node_smooth
node_home -->|"renders"| node_nav
node_home -->|"renders"| node_hero
node_home -->|"renders"| node_announcement
node_home -->|"renders"| node_storyscene
node_home -->|"renders"| node_why
node_home -->|"renders"| node_about
node_home -->|"renders"| node_showcase
node_home -->|"renders"| node_features
node_home -->|"renders"| node_download
node_home -->|"renders"| node_reviews
node_home -->|"renders"| node_faq
node_home -->|"renders"| node_contact
node_home -->|"renders"| node_footer
node_home -->|"renders"| node_actionbar
node_visitor -->|"opens"| node_privacy
node_visitor -->|"opens"| node_deletepolicy
node_visitor -->|"requests"| node_sitemap
node_reviews -->|"reads and writes"| node_supabase
node_contact -.->|"offers calling"| node_phone
node_contact -.->|"offers messaging"| node_whatsapp
node_contact -.->|"offers email"| node_email
node_contact -.->|"embeds map"| node_map
node_download -.->|"links to download"| node_appstore

click node_home "https://github.com/saikatcs/swaadyfood/blob/main/src/routes/index.tsx"
click node_nav "https://github.com/saikatcs/swaadyfood/blob/main/src/components/Nav.tsx"
click node_smooth "https://github.com/saikatcs/swaadyfood/blob/main/src/components/SmoothScroll.tsx"
click node_hero "https://github.com/saikatcs/swaadyfood/blob/main/src/components/sections/Hero.tsx"
click node_announcement "https://github.com/saikatcs/swaadyfood/blob/main/src/components/sections/AnnouncementBar.tsx"
click node_storyscene "https://github.com/saikatcs/swaadyfood/blob/main/src/components/sections/ScrollStory.tsx"
click node_why "https://github.com/saikatcs/swaadyfood/blob/main/src/components/sections/WhySwaady.tsx"
click node_about "https://github.com/saikatcs/swaadyfood/blob/main/src/components/sections/About.tsx"
click node_showcase "https://github.com/saikatcs/swaadyfood/blob/main/src/components/sections/AppShowcase.tsx"
click node_features "https://github.com/saikatcs/swaadyfood/blob/main/src/components/sections/FeaturesGrid.tsx"
click node_download "https://github.com/saikatcs/swaadyfood/blob/main/src/components/sections/DownloadCTA.tsx"
click node_reviews "https://github.com/saikatcs/swaadyfood/blob/main/src/components/sections/Reviews.tsx"
click node_faq "https://github.com/saikatcs/swaadyfood/blob/main/src/components/sections/Faq.tsx"
click node_contact "https://github.com/saikatcs/swaadyfood/blob/main/src/components/sections/Contact.tsx"
click node_actionbar "https://github.com/saikatcs/swaadyfood/blob/main/src/components/FloatingActionBar.tsx"
click node_footer "https://github.com/saikatcs/swaadyfood/blob/main/src/components/Footer.tsx"
click node_privacy "https://github.com/saikatcs/swaadyfood/blob/main/src/routes/privacy-policy.tsx"
click node_deletepolicy "https://github.com/saikatcs/swaadyfood/blob/main/src/routes/delete-account-policy.tsx"
click node_sitemap "https://github.com/saikatcs/swaadyfood/blob/main/src/routes/sitemap%5B.%5Dxml.ts"

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_hero,node_announcement,node_storyscene,node_why,node_about toneBlue
class node_showcase,node_features,node_download,node_supabase toneAmber
class node_reviews,node_faq,node_contact,node_actionbar toneMint
class node_home,node_nav,node_smooth,node_footer,node_privacy,node_deletepolicy,node_sitemap toneRose
class node_visitor,node_phone,node_whatsapp,node_email,node_map,node_appstore toneIndigo
```

## Components

### Brand story

- [Hero](https://github.com/saikatcs/swaadyfood/blob/main/src/components/sections/Hero.tsx): `src/components/sections/Hero.tsx`
- [Announcement](https://github.com/saikatcs/swaadyfood/blob/main/src/components/sections/AnnouncementBar.tsx): `src/components/sections/AnnouncementBar.tsx`
- [Scroll story](https://github.com/saikatcs/swaadyfood/blob/main/src/components/sections/ScrollStory.tsx): `src/components/sections/ScrollStory.tsx`
- [Why Swaady](https://github.com/saikatcs/swaadyfood/blob/main/src/components/sections/WhySwaady.tsx): `src/components/sections/WhySwaady.tsx`
- [About](https://github.com/saikatcs/swaadyfood/blob/main/src/components/sections/About.tsx): `src/components/sections/About.tsx`

### App showcase

- [App showcase](https://github.com/saikatcs/swaadyfood/blob/main/src/components/sections/AppShowcase.tsx): `src/components/sections/AppShowcase.tsx`
- [Feature grid](https://github.com/saikatcs/swaadyfood/blob/main/src/components/sections/FeaturesGrid.tsx): `src/components/sections/FeaturesGrid.tsx`
- [Download CTA](https://github.com/saikatcs/swaadyfood/blob/main/src/components/sections/DownloadCTA.tsx): `src/components/sections/DownloadCTA.tsx`

### Visitor engagement

- [Reviews](https://github.com/saikatcs/swaadyfood/blob/main/src/components/sections/Reviews.tsx): `src/components/sections/Reviews.tsx`
- [FAQ](https://github.com/saikatcs/swaadyfood/blob/main/src/components/sections/Faq.tsx): `src/components/sections/Faq.tsx`
- [Contact](https://github.com/saikatcs/swaadyfood/blob/main/src/components/sections/Contact.tsx): `src/components/sections/Contact.tsx`
- [Floating actions](https://github.com/saikatcs/swaadyfood/blob/main/src/components/FloatingActionBar.tsx): `src/components/FloatingActionBar.tsx`

### Site runtime

- [Home page](https://github.com/saikatcs/swaadyfood/blob/main/src/routes/index.tsx): `src/routes/index.tsx`
- [Navigation](https://github.com/saikatcs/swaadyfood/blob/main/src/components/Nav.tsx): `src/components/Nav.tsx`
- [Smooth scroll](https://github.com/saikatcs/swaadyfood/blob/main/src/components/SmoothScroll.tsx): `src/components/SmoothScroll.tsx`
- [Footer](https://github.com/saikatcs/swaadyfood/blob/main/src/components/Footer.tsx): `src/components/Footer.tsx`
- [Privacy policy](https://github.com/saikatcs/swaadyfood/blob/main/src/routes/privacy-policy.tsx): `src/routes/privacy-policy.tsx`
- [Delete policy](https://github.com/saikatcs/swaadyfood/blob/main/src/routes/delete-account-policy.tsx): `src/routes/delete-account-policy.tsx`
- [Sitemap route](https://github.com/saikatcs/swaadyfood/blob/main/src/routes/sitemap%5B.%5Dxml.ts): `src/routes/sitemap[.]xml.ts`

### Other components

- **Visitor**
- **Supabase**
- **Phone service**
- **WhatsApp**
- **Email service**
- **Google Maps**
- **Google Play**

## Connections

- Visitor → Home page: opens
- Home page → Smooth scroll: renders
- Home page → Navigation: renders
- Home page → Hero: renders
- Home page → Announcement: renders
- Home page → Scroll story: renders
- Home page → Why Swaady: renders
- Home page → About: renders
- Home page → App showcase: renders
- Home page → Feature grid: renders
- Home page → Download CTA: renders
- Home page → Reviews: renders
- Home page → FAQ: renders
- Home page → Contact: renders
- Home page → Footer: renders
- Home page → Floating actions: renders
- Visitor → Privacy policy: opens
- Visitor → Delete policy: opens
- Visitor → Sitemap route: requests
- Reviews → Supabase: reads and writes
- Contact → Phone service: offers calling
- Contact → WhatsApp: offers messaging
- Contact → Email service: offers email
- Contact → Google Maps: embeds map
- Download CTA → Google Play: links to download
