# dydev-1/portfolio-nuxt-content architecture

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

- Interactive diagram: https://gitdiagram.com/dydev-1/portfolio-nuxt-content
- Repository: https://github.com/dydev-1/portfolio-nuxt-content

## Overview

This is a Nuxt portfolio site: visitors browse a home page, profile, project listings and details, posts, and a contact form. The clearest runtime flow is the contact form’s POST to a validated server handler, which sends email through SMTP; the work listing queries project content and renders cards. Other page and content routes are represented as distinct capabilities, but their wiring is not fully evidenced in the excerpts. The README identifies the project as a Nuxt Content starter and does not document further product behavior.

Main entry points: [`components/Header.vue`](https://github.com/dydev-1/portfolio-nuxt-content/blob/main/components/Header.vue) (Header navigation), [`pages/work/index.vue`](https://github.com/dydev-1/portfolio-nuxt-content/blob/main/pages/work/index.vue) (Work listing), [`layouts/default.vue`](https://github.com/dydev-1/portfolio-nuxt-content/blob/main/layouts/default.vue) (Default layout), [`content/projects`](https://github.com/dydev-1/portfolio-nuxt-content/tree/main/content/projects) (Project content)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Site shell"]
  node_app["Nuxt app<br/>[app.vue]"]
  node_layout["Default layout<br/>[default.vue]"]
  node_header["Header navigation<br/>[Header.vue]"]
  node_navigation["Navigation component<br/>[Navigation.vue]"]
  node_footer["Footer<br/>[Footer.vue]"]
end

subgraph group_pages["Portfolio pages"]
  node_home["Home page<br/>[index.vue]"]
  node_about["About page<br/>[index.vue]"]
  node_work["Work listing<br/>[index.vue]"]
  node_workdetail["Work detail<br/>[&#91;...slug&#93;.vue]"]
  node_posts["Posts page<br/>[index.vue]"]
  node_postdetail["Post detail<br/>[&#91;...slug&#93;.vue]"]
  node_contactpage["Contact page<br/>[index.vue]"]
end

subgraph group_content["Content"]
  node_projectdata["Project content"]
  node_postdata["Post content"]
  node_projectlist["Project list component<br/>[ProjectList.vue]"]
  node_projectcard["Project card<br/>[ProjectCard.vue]"]
end

subgraph group_contact["Contact"]
  node_sendmail["Mail API handler<br/>[sendmail.post.ts]"]
end

node_visitor(("Visitor"))
node_smtp["SMTP mail service"]

node_visitor -->|"opens site"| node_app
node_app -->|"renders layout"| node_layout
node_layout -->|"renders"| node_header
node_layout -->|"renders"| node_footer
node_header -->|"links to"| node_home
node_header -->|"links to"| node_about
node_header -->|"links to"| node_work
node_header -->|"links to"| node_posts
node_header -->|"links to"| node_contactpage
node_work -->|"queries"| node_projectdata
node_work -->|"renders"| node_projectcard
node_projectcard -->|"displays item"| node_projectdata
node_work -.->|"links to"| node_workdetail
node_posts -.->|"links to"| node_postdetail
node_postdetail -.->|"loads content"| node_postdata
node_workdetail -.->|"loads content"| node_projectdata
node_contactpage -->|"POSTs form"| node_sendmail
node_sendmail -->|"sends email"| node_smtp

click node_app "https://github.com/dydev-1/portfolio-nuxt-content/blob/main/app.vue"
click node_layout "https://github.com/dydev-1/portfolio-nuxt-content/blob/main/layouts/default.vue"
click node_header "https://github.com/dydev-1/portfolio-nuxt-content/blob/main/components/Header.vue"
click node_navigation "https://github.com/dydev-1/portfolio-nuxt-content/blob/main/components/Navigation.vue"
click node_footer "https://github.com/dydev-1/portfolio-nuxt-content/blob/main/components/Footer.vue"
click node_home "https://github.com/dydev-1/portfolio-nuxt-content/blob/main/pages/index.vue"
click node_about "https://github.com/dydev-1/portfolio-nuxt-content/blob/main/pages/about/index.vue"
click node_work "https://github.com/dydev-1/portfolio-nuxt-content/blob/main/pages/work/index.vue"
click node_workdetail "https://github.com/dydev-1/portfolio-nuxt-content/blob/main/pages/work/%5B...slug%5D.vue"
click node_posts "https://github.com/dydev-1/portfolio-nuxt-content/blob/main/pages/posts/index.vue"
click node_postdetail "https://github.com/dydev-1/portfolio-nuxt-content/blob/main/pages/posts/%5B...slug%5D.vue"
click node_contactpage "https://github.com/dydev-1/portfolio-nuxt-content/blob/main/pages/contact/index.vue"
click node_projectdata "https://github.com/dydev-1/portfolio-nuxt-content/tree/main/content/projects"
click node_postdata "https://github.com/dydev-1/portfolio-nuxt-content/tree/main/content/posts"
click node_projectlist "https://github.com/dydev-1/portfolio-nuxt-content/blob/main/components/content/ProjectList.vue"
click node_projectcard "https://github.com/dydev-1/portfolio-nuxt-content/blob/main/components/ProjectCard.vue"
click node_sendmail "https://github.com/dydev-1/portfolio-nuxt-content/blob/main/server/api/sendmail.post.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_layout,node_header,node_navigation,node_footer toneBlue
class node_home,node_about,node_work,node_workdetail,node_posts,node_postdetail,node_contactpage toneAmber
class node_projectdata,node_postdata,node_projectlist,node_projectcard toneMint
class node_sendmail toneRose
class node_visitor,node_smtp toneIndigo
```

## Components

### Site shell

- [Nuxt app](https://github.com/dydev-1/portfolio-nuxt-content/blob/main/app.vue): `app.vue`
- [Default layout](https://github.com/dydev-1/portfolio-nuxt-content/blob/main/layouts/default.vue): `layouts/default.vue`
- [Header navigation](https://github.com/dydev-1/portfolio-nuxt-content/blob/main/components/Header.vue): `components/Header.vue`
- [Navigation component](https://github.com/dydev-1/portfolio-nuxt-content/blob/main/components/Navigation.vue): `components/Navigation.vue`
- [Footer](https://github.com/dydev-1/portfolio-nuxt-content/blob/main/components/Footer.vue): `components/Footer.vue`

### Portfolio pages

- [Home page](https://github.com/dydev-1/portfolio-nuxt-content/blob/main/pages/index.vue): `pages/index.vue`
- [About page](https://github.com/dydev-1/portfolio-nuxt-content/blob/main/pages/about/index.vue): `pages/about/index.vue`
- [Work listing](https://github.com/dydev-1/portfolio-nuxt-content/blob/main/pages/work/index.vue): `pages/work/index.vue`
- [Work detail](https://github.com/dydev-1/portfolio-nuxt-content/blob/main/pages/work/%5B...slug%5D.vue): `pages/work/[...slug].vue`
- [Posts page](https://github.com/dydev-1/portfolio-nuxt-content/blob/main/pages/posts/index.vue): `pages/posts/index.vue`
- [Post detail](https://github.com/dydev-1/portfolio-nuxt-content/blob/main/pages/posts/%5B...slug%5D.vue): `pages/posts/[...slug].vue`
- [Contact page](https://github.com/dydev-1/portfolio-nuxt-content/blob/main/pages/contact/index.vue): `pages/contact/index.vue`

### Content

- [Project content](https://github.com/dydev-1/portfolio-nuxt-content/tree/main/content/projects): `content/projects`
- [Post content](https://github.com/dydev-1/portfolio-nuxt-content/tree/main/content/posts): `content/posts`
- [Project list component](https://github.com/dydev-1/portfolio-nuxt-content/blob/main/components/content/ProjectList.vue): `components/content/ProjectList.vue`
- [Project card](https://github.com/dydev-1/portfolio-nuxt-content/blob/main/components/ProjectCard.vue): `components/ProjectCard.vue`

### Contact

- [Mail API handler](https://github.com/dydev-1/portfolio-nuxt-content/blob/main/server/api/sendmail.post.ts): `server/api/sendmail.post.ts`

### Other components

- **Visitor**
- **SMTP mail service**

## Connections

- Visitor → Nuxt app: opens site
- Nuxt app → Default layout: renders layout (evidence: `app.vue`)
- Default layout → Header navigation: renders (evidence: `layouts/default.vue`)
- Default layout → Footer: renders (evidence: `layouts/default.vue`)
- Header navigation → Home page: links to (evidence: `components/Header.vue`)
- Header navigation → About page: links to (evidence: `components/Header.vue`)
- Header navigation → Work listing: links to (evidence: `components/Header.vue`)
- Header navigation → Posts page: links to (evidence: `components/Header.vue`)
- Header navigation → Contact page: links to (evidence: `components/Header.vue`)
- Work listing → Project content: queries (evidence: `pages/work/index.vue`)
- Work listing → Project card: renders (evidence: `pages/work/index.vue`)
- Project card → Project content: displays item (evidence: `components/ProjectCard.vue`)
- Work listing → Work detail: links to
- Posts page → Post detail: links to
- Post detail → Post content: loads content
- Work detail → Project content: loads content
- Contact page → Mail API handler: POSTs form (evidence: `pages/contact/index.vue`)
- Mail API handler → SMTP mail service: sends email (evidence: `server/api/sendmail.post.ts`)
