# askraz/grandilastreroselli architecture

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

- Interactive diagram: https://gitdiagram.com/askraz/grandilastreroselli
- Repository: https://github.com/askraz/grandilastreroselli

## Overview

Grandi Lastre Roselli is a one-page company showcase for large-format stone supply and installation. Visitors browse the company’s work process and contact details, then can submit a quote request with project and contact information. The form posts to a Vercel serverless handler, which validates the required fields and sends an email through Resend. The process stages are documented content, not separate operational services. Source excerpts show the form/API/email flow; other page components are assembled by App as indicated by the source index.

Main entry points: [`src/App.tsx`](https://github.com/askraz/grandilastreroselli/blob/main/src/App.tsx) (Page composition), [`src/components/Navbar.tsx`](https://github.com/askraz/grandilastreroselli/blob/main/src/components/Navbar.tsx) (Navigation), [`api/send-quote.ts`](https://github.com/askraz/grandilastreroselli/blob/main/api/send-quote.ts) (Request validation), [`src/components/Preventivo.tsx`](https://github.com/askraz/grandilastreroselli/blob/main/src/components/Preventivo.tsx) (Quote form)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Company website"]
  node_app["Page composition<br/>[App.tsx]"]
  node_nav["Navigation<br/>[Navbar.tsx]"]
  node_hero["Home section<br/>[Hero.tsx]"]
  node_about["Company and process<br/>[About.tsx]"]
  node_contact["Contact details<br/>[Contact.tsx]"]
  node_footer["Footer<br/>[Footer.tsx]"]
end

subgraph group_quotes["Quote requests"]
  node_quoteform["Quote form<br/>[Preventivo.tsx]"]
  node_handler["Request validation<br/>[send-quote.ts]"]
  node_emailformat["Email formatting<br/>[send-quote.ts]"]
end

subgraph group_integrations["External services"]
  node_resend["Resend email service"]
  node_analytics["Vercel Analytics"]
end

node_visitor(("Visitor"))
node_recipient(("Quote recipient"))

node_visitor -->|"visits"| node_app
node_app -->|"renders"| node_nav
node_app -->|"renders"| node_hero
node_app -->|"renders"| node_about
node_app -->|"renders"| node_quoteform
node_app -->|"renders"| node_contact
node_app -->|"renders"| node_footer
node_nav -->|"links to"| node_hero
node_nav -->|"links to"| node_about
node_nav -->|"links to"| node_quoteform
node_nav -->|"links to"| node_contact
node_quoteform -->|"POSTs request"| node_handler
node_handler -->|"formats message"| node_emailformat
node_handler -->|"sends email"| node_resend
node_resend -->|"delivers email"| node_recipient
node_app -->|"renders"| node_analytics

click node_app "https://github.com/askraz/grandilastreroselli/blob/main/src/App.tsx"
click node_nav "https://github.com/askraz/grandilastreroselli/blob/main/src/components/Navbar.tsx"
click node_hero "https://github.com/askraz/grandilastreroselli/blob/main/src/components/Hero.tsx"
click node_about "https://github.com/askraz/grandilastreroselli/blob/main/src/components/About.tsx"
click node_contact "https://github.com/askraz/grandilastreroselli/blob/main/src/components/Contact.tsx"
click node_footer "https://github.com/askraz/grandilastreroselli/blob/main/src/components/Footer.tsx"
click node_quoteform "https://github.com/askraz/grandilastreroselli/blob/main/src/components/Preventivo.tsx"
click node_handler "https://github.com/askraz/grandilastreroselli/blob/main/api/send-quote.ts"
click node_emailformat "https://github.com/askraz/grandilastreroselli/blob/main/api/send-quote.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_app,node_nav,node_hero,node_about,node_contact,node_footer toneBlue
class node_quoteform,node_handler,node_emailformat toneAmber
class node_resend,node_analytics toneMint
class node_visitor,node_recipient toneIndigo
```

## Components

### Company website

- [Page composition](https://github.com/askraz/grandilastreroselli/blob/main/src/App.tsx): `src/App.tsx`
- [Navigation](https://github.com/askraz/grandilastreroselli/blob/main/src/components/Navbar.tsx): `src/components/Navbar.tsx`
- [Home section](https://github.com/askraz/grandilastreroselli/blob/main/src/components/Hero.tsx): `src/components/Hero.tsx`
- [Company and process](https://github.com/askraz/grandilastreroselli/blob/main/src/components/About.tsx): `src/components/About.tsx`
- [Contact details](https://github.com/askraz/grandilastreroselli/blob/main/src/components/Contact.tsx): `src/components/Contact.tsx`
- [Footer](https://github.com/askraz/grandilastreroselli/blob/main/src/components/Footer.tsx): `src/components/Footer.tsx`

### Quote requests

- [Quote form](https://github.com/askraz/grandilastreroselli/blob/main/src/components/Preventivo.tsx): `src/components/Preventivo.tsx`
- [Request validation](https://github.com/askraz/grandilastreroselli/blob/main/api/send-quote.ts): `api/send-quote.ts`
- [Email formatting](https://github.com/askraz/grandilastreroselli/blob/main/api/send-quote.ts): `api/send-quote.ts`

### External services

- **Resend email service**
- **Vercel Analytics**

### Other components

- **Visitor**
- **Quote recipient**

## Connections

- Visitor → Page composition: visits
- Page composition → Navigation: renders (evidence: `src/App.tsx`)
- Page composition → Home section: renders (evidence: `src/App.tsx`)
- Page composition → Company and process: renders (evidence: `src/App.tsx`)
- Page composition → Quote form: renders (evidence: `src/App.tsx`)
- Page composition → Contact details: renders (evidence: `src/App.tsx`)
- Page composition → Footer: renders (evidence: `src/App.tsx`)
- Navigation → Home section: links to (evidence: `src/components/Navbar.tsx`)
- Navigation → Company and process: links to (evidence: `src/components/Navbar.tsx`)
- Navigation → Quote form: links to (evidence: `src/components/Navbar.tsx`)
- Navigation → Contact details: links to (evidence: `src/components/Navbar.tsx`)
- Quote form → Request validation: POSTs request (evidence: `src/components/Preventivo.tsx`)
- Request validation → Email formatting: formats message (evidence: `api/send-quote.ts`)
- Request validation → Resend email service: sends email (evidence: `api/send-quote.ts`)
- Resend email service → Quote recipient: delivers email (evidence: `README.md`)
- Page composition → Vercel Analytics: renders (evidence: `src/App.tsx`)
