# muneebabadar/bakery-shop-the-daily-crumbs architecture

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

- Interactive diagram: https://gitdiagram.com/muneebabadar/bakery-shop-the-daily-crumbs
- Repository: https://github.com/muneebabadar/bakery-shop-the-daily-crumbs

## Overview

The repository is a small bakery website: visitors can view a bakery landing page and submit a contact form. The form posts to a server route, which validates the message and sends it through Gmail using Nodemailer. The shared layout adds site navigation around page content. The excerpts show these main relationships; other navigation destinations are not present in the supplied tree.

Main entry points: [`src/app/contact/page.tsx`](https://github.com/muneebabadar/bakery-shop-the-daily-crumbs/blob/main/src/app/contact/page.tsx) (Contact Form), [`src/app/layout.tsx`](https://github.com/muneebabadar/bakery-shop-the-daily-crumbs/blob/main/src/app/layout.tsx) (Shared Layout), [`src/app/api/contact/route.ts`](https://github.com/muneebabadar/bakery-shop-the-daily-crumbs/blob/main/src/app/api/contact/route.ts) (Contact Handler), [`src/app/page.tsx`](https://github.com/muneebabadar/bakery-shop-the-daily-crumbs/blob/main/src/app/page.tsx) (Bakery Landing)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Website"]
  node_layout["Shared Layout<br/>[layout.tsx]"]
  node_header["Site Navigation<br/>[header.tsx]"]
  node_home["Bakery Landing<br/>[page.tsx]"]
end

subgraph group_contact["Contact Messaging"]
  node_contact_page["Contact Form<br/>[page.tsx]"]
  node_contact_api["Contact Handler<br/>[route.ts]"]
  node_gmail["Gmail SMTP"]
end

node_visitor(("Visitor"))

node_visitor -->|"views"| node_home
node_visitor -->|"opens"| node_contact_page
node_layout -->|"renders"| node_header
node_layout -->|"renders page"| node_home
node_layout -->|"renders page"| node_contact_page
node_contact_page -->|"posts form"| node_contact_api
node_contact_api -->|"sends email"| node_gmail
node_contact_api -->|"returns status"| node_contact_page

click node_layout "https://github.com/muneebabadar/bakery-shop-the-daily-crumbs/blob/main/src/app/layout.tsx"
click node_header "https://github.com/muneebabadar/bakery-shop-the-daily-crumbs/blob/main/src/app/components/header.tsx"
click node_home "https://github.com/muneebabadar/bakery-shop-the-daily-crumbs/blob/main/src/app/page.tsx"
click node_contact_page "https://github.com/muneebabadar/bakery-shop-the-daily-crumbs/blob/main/src/app/contact/page.tsx"
click node_contact_api "https://github.com/muneebabadar/bakery-shop-the-daily-crumbs/blob/main/src/app/api/contact/route.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_layout,node_header,node_home toneBlue
class node_contact_page,node_contact_api,node_gmail toneAmber
class node_visitor toneIndigo
```

## Components

### Website

- [Shared Layout](https://github.com/muneebabadar/bakery-shop-the-daily-crumbs/blob/main/src/app/layout.tsx): `src/app/layout.tsx`
- [Site Navigation](https://github.com/muneebabadar/bakery-shop-the-daily-crumbs/blob/main/src/app/components/header.tsx): `src/app/components/header.tsx`
- [Bakery Landing](https://github.com/muneebabadar/bakery-shop-the-daily-crumbs/blob/main/src/app/page.tsx): `src/app/page.tsx`

### Contact Messaging

- [Contact Form](https://github.com/muneebabadar/bakery-shop-the-daily-crumbs/blob/main/src/app/contact/page.tsx): `src/app/contact/page.tsx`
- [Contact Handler](https://github.com/muneebabadar/bakery-shop-the-daily-crumbs/blob/main/src/app/api/contact/route.ts): `src/app/api/contact/route.ts`
- **Gmail SMTP**

### Other components

- **Visitor**

## Connections

- Visitor → Bakery Landing: views (evidence: `src/app/page.tsx`)
- Visitor → Contact Form: opens (evidence: `src/app/contact/page.tsx`)
- Shared Layout → Site Navigation: renders (evidence: `src/app/layout.tsx`)
- Shared Layout → Bakery Landing: renders page (evidence: `src/app/layout.tsx`)
- Shared Layout → Contact Form: renders page (evidence: `src/app/layout.tsx`)
- Contact Form → Contact Handler: posts form (evidence: `src/app/contact/page.tsx`)
- Contact Handler → Gmail SMTP: sends email (evidence: `src/app/api/contact/route.ts`)
- Contact Handler → Contact Form: returns status (evidence: `src/app/contact/page.tsx`)
