# pacmanarm0/umty1020_portfolio architecture

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

- Interactive diagram: https://gitdiagram.com/pacmanarm0/umty1020_portfolio
- Repository: https://github.com/pacmanarm0/umty1020_portfolio

## Overview

This is a small Next.js portfolio site. Visitors view the designer/developer profile and project gallery, then open a project card to browse its summary and images; outside clicks and Escape close the detail view. Project/profile content is defined as static data, and local image paths refer to assets under public. The graph reflects the sampled page and component code; no README was provided, so broader product capabilities are not documented.

Main entry points: [`src/app/page.tsx`](https://github.com/pacmanarm0/umty1020_portfolio/blob/main/src/app/page.tsx) (Home page), [`src/components/expandable-card.tsx`](https://github.com/pacmanarm0/umty1020_portfolio/blob/main/src/components/expandable-card.tsx) (Project gallery), [`src/data/projects.ts`](https://github.com/pacmanarm0/umty1020_portfolio/blob/main/src/data/projects.ts) (Profile data), [`public`](https://github.com/pacmanarm0/umty1020_portfolio/tree/main/public) (Portfolio images)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_presentation["Portfolio experience"]
  node_home["Home page<br/>[page.tsx]"]
  node_profile["Profile header<br/>[page.tsx]"]
  node_projectgallery["Project gallery"]
  node_projectdetail["Project detail modal"]
  node_outsideclick["Outside-click hook"]
  node_layout["Root layout<br/>[layout.tsx]"]
end

subgraph group_content["Portfolio content"]
  node_profiledata["Profile data<br/>[projects.ts]"]
  node_projectdata["Project data<br/>[projects.ts]"]
  node_assets["Portfolio images"]
end

node_visitor(("Visitor"))

node_visitor -->|"opens"| node_home
node_home -->|"renders"| node_profile
node_home -->|"renders"| node_projectgallery
node_home -->|"reads"| node_profiledata
node_home -->|"reads"| node_projectdata
node_projectgallery -->|"opens"| node_projectdetail
node_projectgallery -->|"renders"| node_projectdata
node_projectdetail -->|"uses"| node_outsideclick
node_projectdetail -->|"loads"| node_assets
node_profile -->|"renders"| node_profiledata
node_profile -->|"loads"| node_assets
node_layout -->|"configures metadata"| node_profiledata

click node_home "https://github.com/pacmanarm0/umty1020_portfolio/blob/main/src/app/page.tsx"
click node_profile "https://github.com/pacmanarm0/umty1020_portfolio/blob/main/src/app/page.tsx"
click node_projectgallery "https://github.com/pacmanarm0/umty1020_portfolio/blob/main/src/components/expandable-card.tsx"
click node_projectdetail "https://github.com/pacmanarm0/umty1020_portfolio/blob/main/src/components/expandable-card.tsx"
click node_outsideclick "https://github.com/pacmanarm0/umty1020_portfolio/blob/main/src/hooks/use-outside-click.ts"
click node_profiledata "https://github.com/pacmanarm0/umty1020_portfolio/blob/main/src/data/projects.ts"
click node_projectdata "https://github.com/pacmanarm0/umty1020_portfolio/blob/main/src/data/projects.ts"
click node_assets "https://github.com/pacmanarm0/umty1020_portfolio/tree/main/public"
click node_layout "https://github.com/pacmanarm0/umty1020_portfolio/blob/main/src/app/layout.tsx"

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_profile,node_projectgallery,node_projectdetail,node_outsideclick,node_layout toneBlue
class node_profiledata,node_projectdata,node_assets toneAmber
class node_visitor toneIndigo
```

## Components

### Portfolio experience

- [Home page](https://github.com/pacmanarm0/umty1020_portfolio/blob/main/src/app/page.tsx): `src/app/page.tsx`
- [Profile header](https://github.com/pacmanarm0/umty1020_portfolio/blob/main/src/app/page.tsx): `src/app/page.tsx`
- [Project gallery](https://github.com/pacmanarm0/umty1020_portfolio/blob/main/src/components/expandable-card.tsx): `src/components/expandable-card.tsx`
- [Project detail modal](https://github.com/pacmanarm0/umty1020_portfolio/blob/main/src/components/expandable-card.tsx): `src/components/expandable-card.tsx`
- [Outside-click hook](https://github.com/pacmanarm0/umty1020_portfolio/blob/main/src/hooks/use-outside-click.ts): `src/hooks/use-outside-click.ts`
- [Root layout](https://github.com/pacmanarm0/umty1020_portfolio/blob/main/src/app/layout.tsx): `src/app/layout.tsx`

### Portfolio content

- [Profile data](https://github.com/pacmanarm0/umty1020_portfolio/blob/main/src/data/projects.ts): `src/data/projects.ts`
- [Project data](https://github.com/pacmanarm0/umty1020_portfolio/blob/main/src/data/projects.ts): `src/data/projects.ts`
- [Portfolio images](https://github.com/pacmanarm0/umty1020_portfolio/tree/main/public): `public`

### Other components

- **Visitor**

## Connections

- Visitor → Home page: opens
- Home page → Profile header: renders (evidence: `src/app/page.tsx`)
- Home page → Project gallery: renders (evidence: `src/app/page.tsx`)
- Home page → Profile data: reads (evidence: `src/app/page.tsx`)
- Home page → Project data: reads (evidence: `src/app/page.tsx`)
- Project gallery → Project detail modal: opens (evidence: `src/components/expandable-card.tsx`)
- Project gallery → Project data: renders (evidence: `src/components/expandable-card.tsx`)
- Project detail modal → Outside-click hook: uses (evidence: `src/components/expandable-card.tsx`)
- Project detail modal → Portfolio images: loads (evidence: `src/components/expandable-card.tsx`)
- Profile header → Profile data: renders (evidence: `src/app/page.tsx`)
- Profile header → Portfolio images: loads (evidence: `src/app/page.tsx`)
- Root layout → Profile data: configures metadata (evidence: `src/app/layout.tsx`)
