# harumao/john architecture

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

- Interactive diagram: https://gitdiagram.com/harumao/john
- Repository: https://github.com/harumao/john

## Overview

This is a small Next.js personal portfolio site. Visitors see a home page with profile content and a Pokémon image, alongside About and Contact pages; the shared layout supplies navigation and a footer. The home page and shared navigation fetch Pokémon data through a small request helper. The source excerpts show that the active layout uses BNav rather than the separate Nav component. The README is a generic Next.js starter guide, so it documents no additional product capabilities.

Main entry points: [`src/app/layout.tsx`](https://github.com/harumao/john/blob/main/src/app/layout.tsx) (Site layout), [`src/requests/poke.js`](https://github.com/harumao/john/blob/main/src/requests/poke.js) (Pokémon request), [`src/components/bas-nav.js`](https://github.com/harumao/john/blob/main/src/components/bas-nav.js) (Active navigation), [`src/app/page.jsx`](https://github.com/harumao/john/blob/main/src/app/page.jsx) (Home page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_pages["Portfolio pages"]
  node_home["Home page<br/>[page.jsx]"]
  node_about["About page<br/>[page.jsx]"]
  node_contact["Contact page<br/>[page.jsx]"]
end

subgraph group_shared["Shared interface"]
  node_layout["Site layout<br/>[layout.tsx]"]
  node_active_nav["Active navigation<br/>[bas-nav.js]"]
  node_legacy_nav["Alternate navigation<br/>[Nav.js]"]
  node_footer["Footer<br/>[Footer.js]"]
  node_acme_icon["Acme icon<br/>[acme.js]"]
end

subgraph group_pokemon["Pokémon data"]
  node_poke_request["Pokémon request<br/>[poke.js]"]
  node_pokeapi["PokéAPI"]
end

node_visitor(("Visitor"))

node_visitor -.->|"visits"| node_layout
node_layout -->|"renders"| node_active_nav
node_layout -->|"renders"| node_footer
node_home -->|"fetches data"| node_poke_request
node_active_nav -->|"fetches data"| node_poke_request
node_poke_request -->|"requests data"| node_pokeapi

click node_layout "https://github.com/harumao/john/blob/main/src/app/layout.tsx"
click node_home "https://github.com/harumao/john/blob/main/src/app/page.jsx"
click node_about "https://github.com/harumao/john/blob/main/src/app/about/page.jsx"
click node_contact "https://github.com/harumao/john/blob/main/src/app/contact/page.jsx"
click node_active_nav "https://github.com/harumao/john/blob/main/src/components/bas-nav.js"
click node_legacy_nav "https://github.com/harumao/john/blob/main/src/components/Nav.js"
click node_footer "https://github.com/harumao/john/blob/main/src/components/Footer.js"
click node_acme_icon "https://github.com/harumao/john/blob/main/src/components/acme.js"
click node_poke_request "https://github.com/harumao/john/blob/main/src/requests/poke.js"

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_about,node_contact toneBlue
class node_layout,node_active_nav,node_legacy_nav,node_footer,node_acme_icon toneAmber
class node_poke_request,node_pokeapi toneMint
class node_visitor toneIndigo
```

## Components

### Portfolio pages

- [Home page](https://github.com/harumao/john/blob/main/src/app/page.jsx): `src/app/page.jsx`
- [About page](https://github.com/harumao/john/blob/main/src/app/about/page.jsx): `src/app/about/page.jsx`
- [Contact page](https://github.com/harumao/john/blob/main/src/app/contact/page.jsx): `src/app/contact/page.jsx`

### Shared interface

- [Site layout](https://github.com/harumao/john/blob/main/src/app/layout.tsx): `src/app/layout.tsx`
- [Active navigation](https://github.com/harumao/john/blob/main/src/components/bas-nav.js): `src/components/bas-nav.js`
- [Alternate navigation](https://github.com/harumao/john/blob/main/src/components/Nav.js): `src/components/Nav.js`
- [Footer](https://github.com/harumao/john/blob/main/src/components/Footer.js): `src/components/Footer.js`
- [Acme icon](https://github.com/harumao/john/blob/main/src/components/acme.js): `src/components/acme.js`

### Pokémon data

- [Pokémon request](https://github.com/harumao/john/blob/main/src/requests/poke.js): `src/requests/poke.js`
- **PokéAPI**

### Other components

- **Visitor**

## Connections

- Visitor → Site layout: visits
- Site layout → Active navigation: renders (evidence: `src/app/layout.tsx`)
- Site layout → Footer: renders (evidence: `src/app/layout.tsx`)
- Home page → Pokémon request: fetches data (evidence: `src/app/page.jsx`)
- Active navigation → Pokémon request: fetches data (evidence: `src/components/bas-nav.js`)
- Pokémon request → PokéAPI: requests data (evidence: `src/requests/poke.js`)
