# greadualy/dinail.co-ai-full-stack-dev architecture

> Architecture diagram of the GitHub repository greadualy/dinail.co-ai-full-stack-dev, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-06). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/greadualy/dinail.co-ai-full-stack-dev
- Repository: https://github.com/greadualy/dinail.co-ai-full-stack-dev

## Overview

Dinail.co is a nail-art studio storefront and customer portal. Visitors browse the home page, catalog, and price list; the home page also presents ordering guidance, testimonials, and studio location. The profile page provides account-related and order-oriented UI, while role state is a client-side mock backed by localStorage rather than a demonstrated server or persistent order system. The map follows only relationships visible in excerpts or the source index; unsampled page behavior is kept at the page level.

Main entry points: [`src/app/page.tsx`](https://github.com/greadualy/dinail.co-ai-full-stack-dev/blob/main/src/app/page.tsx) (Home page), [`src/components/Navbar.tsx`](https://github.com/greadualy/dinail.co-ai-full-stack-dev/blob/main/src/components/Navbar.tsx) (Navigation), [`src/context/RoleContext.tsx`](https://github.com/greadualy/dinail.co-ai-full-stack-dev/blob/main/src/context/RoleContext.tsx) (Role and session state), [`src/components/Footer.tsx`](https://github.com/greadualy/dinail.co-ai-full-stack-dev/blob/main/src/components/Footer.tsx) (Help and footer)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_pages["Storefront pages"]
  node_home["Home page<br/>[page.tsx]"]
  node_catalog["Design catalog<br/>[page.tsx]"]
  node_pricelist["Price list<br/>[page.tsx]"]
  node_profile["Profile portal<br/>[page.tsx]"]
end

subgraph group_experience["Shared experience"]
  node_navbar["Navigation<br/>[Navbar.tsx]"]
  node_footer["Help and footer<br/>[Footer.tsx]"]
  node_hero["Hero showcase<br/>[HeroSection.tsx]"]
  node_ordersteps["Order guidance<br/>[OrderSteps.tsx]"]
  node_testimonials["Testimonials"]
  node_location["Studio location"]
end

subgraph group_domain["Catalog and profile"]
end

subgraph group_state["Client state and content"]
  node_rolecontext["Role and session state<br/>[RoleContext.tsx]"]
  node_rolemodal["Role switcher"]
  node_mockdata["Mock content<br/>[mockData.ts]"]
  node_assets["Image path registry<br/>[assets.ts]"]
end

node_visitor(("Visitor"))
node_browserstorage[("Browser localStorage")]
node_whatsapp["WhatsApp"]

node_visitor -->|"opens"| node_home
node_visitor -->|"browses"| node_catalog
node_visitor -->|"checks prices"| node_pricelist
node_visitor -->|"opens"| node_profile
node_home -->|"renders"| node_navbar
node_home -->|"renders"| node_hero
node_home -->|"renders"| node_ordersteps
node_home -->|"renders"| node_testimonials
node_home -->|"renders"| node_location
node_home -->|"renders"| node_footer
node_catalog -->|"renders"| node_navbar
node_catalog -->|"renders"| node_footer
node_pricelist -->|"renders"| node_navbar
node_pricelist -->|"renders"| node_footer
node_profile -->|"renders"| node_navbar
node_profile -->|"renders"| node_footer
node_navbar -->|"reads role"| node_rolecontext
node_navbar -->|"uses images"| node_assets
node_ordersteps -->|"opens modal"| node_rolecontext
node_ordersteps -->|"uses images"| node_assets
node_testimonials -->|"reads reviews"| node_mockdata
node_hero -->|"reads role"| node_rolecontext
node_hero -->|"uses images"| node_assets
node_profile -->|"reads role"| node_rolecontext
node_rolecontext -->|"persists session"| node_browserstorage
node_rolemodal -->|"updates role"| node_rolecontext
node_mockdata -->|"references images"| node_assets
node_footer -->|"links to"| node_whatsapp

click node_home "https://github.com/greadualy/dinail.co-ai-full-stack-dev/blob/main/src/app/page.tsx"
click node_catalog "https://github.com/greadualy/dinail.co-ai-full-stack-dev/blob/main/src/app/catalog/page.tsx"
click node_pricelist "https://github.com/greadualy/dinail.co-ai-full-stack-dev/blob/main/src/app/pricelist/page.tsx"
click node_profile "https://github.com/greadualy/dinail.co-ai-full-stack-dev/blob/main/src/app/profil/page.tsx"
click node_navbar "https://github.com/greadualy/dinail.co-ai-full-stack-dev/blob/main/src/components/Navbar.tsx"
click node_footer "https://github.com/greadualy/dinail.co-ai-full-stack-dev/blob/main/src/components/Footer.tsx"
click node_hero "https://github.com/greadualy/dinail.co-ai-full-stack-dev/blob/main/src/components/HeroSection.tsx"
click node_ordersteps "https://github.com/greadualy/dinail.co-ai-full-stack-dev/blob/main/src/components/OrderSteps.tsx"
click node_testimonials "https://github.com/greadualy/dinail.co-ai-full-stack-dev/blob/main/src/components/TestimonialCarousel.tsx"
click node_location "https://github.com/greadualy/dinail.co-ai-full-stack-dev/blob/main/src/components/LocationSection.tsx"
click node_rolecontext "https://github.com/greadualy/dinail.co-ai-full-stack-dev/blob/main/src/context/RoleContext.tsx"
click node_rolemodal "https://github.com/greadualy/dinail.co-ai-full-stack-dev/blob/main/src/components/RoleSwitcherModal.tsx"
click node_mockdata "https://github.com/greadualy/dinail.co-ai-full-stack-dev/blob/main/src/data/mockData.ts"
click node_assets "https://github.com/greadualy/dinail.co-ai-full-stack-dev/blob/main/src/constants/assets.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_home,node_catalog,node_pricelist,node_profile toneBlue
class node_navbar,node_footer,node_hero,node_ordersteps,node_testimonials,node_location,node_browserstorage toneAmber
class node_rolecontext,node_rolemodal,node_mockdata,node_assets toneRose
class node_visitor,node_whatsapp toneIndigo
```

## Components

### Storefront pages

- [Home page](https://github.com/greadualy/dinail.co-ai-full-stack-dev/blob/main/src/app/page.tsx): `src/app/page.tsx`
- [Design catalog](https://github.com/greadualy/dinail.co-ai-full-stack-dev/blob/main/src/app/catalog/page.tsx): `src/app/catalog/page.tsx`
- [Price list](https://github.com/greadualy/dinail.co-ai-full-stack-dev/blob/main/src/app/pricelist/page.tsx): `src/app/pricelist/page.tsx`
- [Profile portal](https://github.com/greadualy/dinail.co-ai-full-stack-dev/blob/main/src/app/profil/page.tsx): `src/app/profil/page.tsx`

### Shared experience

- [Navigation](https://github.com/greadualy/dinail.co-ai-full-stack-dev/blob/main/src/components/Navbar.tsx): `src/components/Navbar.tsx`
- [Help and footer](https://github.com/greadualy/dinail.co-ai-full-stack-dev/blob/main/src/components/Footer.tsx): `src/components/Footer.tsx`
- [Hero showcase](https://github.com/greadualy/dinail.co-ai-full-stack-dev/blob/main/src/components/HeroSection.tsx): `src/components/HeroSection.tsx`
- [Order guidance](https://github.com/greadualy/dinail.co-ai-full-stack-dev/blob/main/src/components/OrderSteps.tsx): `src/components/OrderSteps.tsx`
- [Testimonials](https://github.com/greadualy/dinail.co-ai-full-stack-dev/blob/main/src/components/TestimonialCarousel.tsx): `src/components/TestimonialCarousel.tsx`
- [Studio location](https://github.com/greadualy/dinail.co-ai-full-stack-dev/blob/main/src/components/LocationSection.tsx): `src/components/LocationSection.tsx`

### Client state and content

- [Role and session state](https://github.com/greadualy/dinail.co-ai-full-stack-dev/blob/main/src/context/RoleContext.tsx): `src/context/RoleContext.tsx`
- [Role switcher](https://github.com/greadualy/dinail.co-ai-full-stack-dev/blob/main/src/components/RoleSwitcherModal.tsx): `src/components/RoleSwitcherModal.tsx`
- [Mock content](https://github.com/greadualy/dinail.co-ai-full-stack-dev/blob/main/src/data/mockData.ts): `src/data/mockData.ts`
- [Image path registry](https://github.com/greadualy/dinail.co-ai-full-stack-dev/blob/main/src/constants/assets.ts): `src/constants/assets.ts`

### Other components

- **Visitor**
- **Browser localStorage**
- **WhatsApp**

## Connections

- Visitor → Home page: opens (evidence: `src/app/page.tsx`)
- Visitor → Design catalog: browses (evidence: `src/app/catalog/page.tsx`)
- Visitor → Price list: checks prices (evidence: `src/app/pricelist/page.tsx`)
- Visitor → Profile portal: opens (evidence: `src/app/profil/page.tsx`)
- Home page → Navigation: renders (evidence: `src/app/page.tsx`)
- Home page → Hero showcase: renders (evidence: `src/app/page.tsx`)
- Home page → Order guidance: renders (evidence: `src/app/page.tsx`)
- Home page → Testimonials: renders (evidence: `src/app/page.tsx`)
- Home page → Studio location: renders (evidence: `src/app/page.tsx`)
- Home page → Help and footer: renders (evidence: `src/app/page.tsx`)
- Design catalog → Navigation: renders (evidence: `src/app/catalog/page.tsx`)
- Design catalog → Help and footer: renders (evidence: `src/app/catalog/page.tsx`)
- Price list → Navigation: renders (evidence: `src/app/pricelist/page.tsx`)
- Price list → Help and footer: renders (evidence: `src/app/pricelist/page.tsx`)
- Profile portal → Navigation: renders (evidence: `src/app/profil/page.tsx`)
- Profile portal → Help and footer: renders (evidence: `src/app/profil/page.tsx`)
- Navigation → Role and session state: reads role (evidence: `src/components/Navbar.tsx`)
- Navigation → Image path registry: uses images (evidence: `src/components/Navbar.tsx`)
- Order guidance → Role and session state: opens modal (evidence: `src/components/OrderSteps.tsx`)
- Order guidance → Image path registry: uses images (evidence: `src/components/OrderSteps.tsx`)
- Testimonials → Mock content: reads reviews (evidence: `src/components/TestimonialCarousel.tsx`)
- Hero showcase → Role and session state: reads role (evidence: `src/components/HeroSection.tsx`)
- Hero showcase → Image path registry: uses images (evidence: `src/components/HeroSection.tsx`)
- Profile portal → Role and session state: reads role (evidence: `src/app/profil/page.tsx`)
- Role and session state → Browser localStorage: persists session (evidence: `src/context/RoleContext.tsx`)
- Role switcher → Role and session state: updates role (evidence: `src/components/RoleSwitcherModal.tsx`)
- Mock content → Image path registry: references images (evidence: `src/data/mockData.ts`)
- Help and footer → WhatsApp: links to (evidence: `src/components/Footer.tsx`)
