# cy-0120/dksh_dokdo architecture

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

- Interactive diagram: https://gitdiagram.com/cy-0120/dksh_dokdo
- Repository: https://github.com/cy-0120/dksh_dokdo

## Overview

#### Purpose and Delivery Model
A Korean informational single-page site introducing Dokdo. It is a Next.js App Router application with no database, API, or server state; content and media are statically prerendered for Vercel deployment.

- Application shell and document-level composition: `app/layout.js`
- Main static route (`/`): `app/page.js`
- Static images and bundled fonts: `public/img`, `public/fonts`

#### Entry Points and Page Composition
`app/layout.js` establishes the root layout, global styles, fonts, and persistent UI chrome. `app/page.js` composes the landing page’s content stages: hero, overview, location, and factual/statistical sections.

- Root layout: `app/layout.js`
- Home-page orchestration: `app/page.js`
- Global Tailwind entry point: `app/globals.css`

#### Persistent Navigation and Page Controls
The layout-owned navigation, footer, and top-of-page control span the whole route. Navigation manages scroll-dependent presentation and mobile-menu toggling; the top button provides a scroll-to-top interaction.

- Navigation and responsive menu state: `components/Nav.js`
- Shared footer: `components/Footer.js`
- Scroll-to-top UI: `components/TopButton.js`

#### Hero and Static Media
The hero is the primary visual entry stage and performs time-of-day background crossfades. Image assets are served directly from `public`, avoiding a media backend or runtime asset service.

- Hero behavior and markup: `components/Hero.js`
- Hero/time imagery: `public/img/dokdo-time`
- Additional prepared but currently unconnected nature/history imagery: `public/img/about`

#### Client-Side Enhancement Boundary
The page is fundamentally static, with client-side components enhancing interaction after load. Scroll-reveal initialization and number/distance-bar animation are isolated from static content rendering.

- Reveal animation initialization: `components/RevealInit.js`
- Counter and distance-bar initialization: `components/CountersInit.js`
- Reveal-related styling: `styles/reveal.css`

#### Styling Architecture
Styling is hybrid: `app/globals.css` is the Tailwind entry point for newer work, while the visual system is primarily organized as imported custom CSS modules under `styles/`. This keeps section-specific presentation separate from React component composition.

- Legacy style import hub: `styles/style.css`
- Core/reset-like visual rules: `styles/base.css`
- Major section and hero styling: `styles/sections.css`, `styles/hero.css`
- Navigation and responsive styling: `styles/nav.css`

#### Runtime and Infrastructure
The material runtime is Next.js 16 with React 19, using App Router and Turbopack during development. Production deployment targets Vercel’s standard Next.js detection and static prerendering workflow. Google Fonts (Noto Sans KR and Nanum Myeongjo) are used through the root layout; there are no external data services, authentication systems, or persistence layers.

- Framework configuration: `next.config.mjs`
- Dependency/runtime definition: `package.json`
- Import alias configuration: `jsconfig.json`

Main entry points: [`app/layout.js`](https://github.com/cy-0120/dksh_dokdo/blob/main/app/layout.js) (Root layout), [`styles/style.css`](https://github.com/cy-0120/dksh_dokdo/blob/main/styles/style.css) (Custom style hub), [`app/page.js`](https://github.com/cy-0120/dksh_dokdo/blob/main/app/page.js) (Home route), [`package.json`](https://github.com/cy-0120/dksh_dokdo/blob/main/package.json) (Next.js runtime)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Next.js App"]
  node_layout["Root layout<br/>App Router layout<br/>[layout.js]"]
  node_home["Home route<br/>static page<br/>[page.js]"]
  node_global_css["Global Tailwind CSS<br/>global stylesheet<br/>[globals.css]"]
end

subgraph group_ui["UI Components"]
  node_nav["Navigation<br/>client UI<br/>[Nav.js]"]
  node_footer["Footer<br/>shared UI<br/>[Footer.js]"]
  node_top_button["Top button<br/>client UI<br/>[TopButton.js]"]
  node_hero["Hero<br/>page section<br/>[Hero.js]"]
  node_reveal_init["Reveal initializer<br/>client enhancement<br/>[RevealInit.js]"]
  node_counters_init["Counters initializer<br/>client enhancement<br/>[CountersInit.js]"]
end

subgraph group_presentation["Styles &amp; Assets"]
  node_hero_images["Hero imagery<br/>static assets"]
  node_style_hub["Custom style hub<br/>stylesheet entry<br/>[style.css]"]
  node_base_css["Base styles<br/>stylesheet<br/>[base.css]"]
  node_section_css["Section styles<br/>stylesheet<br/>[sections.css]"]
  node_hero_css["Hero styles<br/>stylesheet<br/>[hero.css]"]
  node_nav_css["Navigation styles<br/>stylesheet<br/>[nav.css]"]
  node_reveal_css["Reveal styles<br/>stylesheet<br/>[reveal.css]"]
end

subgraph group_delivery["Runtime &amp; Delivery"]
  node_runtime{{"Next.js runtime<br/>runtime definition<br/>[package.json]"}}
  node_next_config["Next configuration<br/>framework config<br/>[next.config.mjs]"]
  node_vercel{{"Vercel<br/>deployment target"}}
end

node_runtime -->|"runs"| node_layout
node_next_config -->|"configures"| node_runtime
node_layout -->|"wraps"| node_home
node_layout -->|"loads"| node_global_css
node_layout -->|"renders"| node_nav
node_layout -->|"renders"| node_footer
node_layout -->|"renders"| node_top_button
node_home -->|"composes"| node_hero
node_home -->|"initializes"| node_reveal_init
node_home -->|"initializes"| node_counters_init
node_hero -->|"uses"| node_hero_images
node_style_hub -->|"imports"| node_base_css
node_style_hub -->|"imports"| node_section_css
node_style_hub -->|"imports"| node_hero_css
node_style_hub -->|"imports"| node_nav_css
node_reveal_init -->|"uses"| node_reveal_css
node_runtime -->|"prerendered and deployed to"| node_vercel

click node_layout "https://github.com/cy-0120/dksh_dokdo/blob/main/app/layout.js"
click node_home "https://github.com/cy-0120/dksh_dokdo/blob/main/app/page.js"
click node_global_css "https://github.com/cy-0120/dksh_dokdo/blob/main/app/globals.css"
click node_nav "https://github.com/cy-0120/dksh_dokdo/blob/main/components/Nav.js"
click node_footer "https://github.com/cy-0120/dksh_dokdo/blob/main/components/Footer.js"
click node_top_button "https://github.com/cy-0120/dksh_dokdo/blob/main/components/TopButton.js"
click node_hero "https://github.com/cy-0120/dksh_dokdo/blob/main/components/Hero.js"
click node_reveal_init "https://github.com/cy-0120/dksh_dokdo/blob/main/components/RevealInit.js"
click node_counters_init "https://github.com/cy-0120/dksh_dokdo/blob/main/components/CountersInit.js"
click node_hero_images "https://github.com/cy-0120/dksh_dokdo/tree/main/public/img/dokdo-time"
click node_style_hub "https://github.com/cy-0120/dksh_dokdo/blob/main/styles/style.css"
click node_base_css "https://github.com/cy-0120/dksh_dokdo/blob/main/styles/base.css"
click node_section_css "https://github.com/cy-0120/dksh_dokdo/blob/main/styles/sections.css"
click node_hero_css "https://github.com/cy-0120/dksh_dokdo/blob/main/styles/hero.css"
click node_nav_css "https://github.com/cy-0120/dksh_dokdo/blob/main/styles/nav.css"
click node_reveal_css "https://github.com/cy-0120/dksh_dokdo/blob/main/styles/reveal.css"
click node_runtime "https://github.com/cy-0120/dksh_dokdo/blob/main/package.json"
click node_next_config "https://github.com/cy-0120/dksh_dokdo/blob/main/next.config.mjs"

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_layout,node_home,node_global_css toneBlue
class node_nav,node_footer,node_top_button,node_hero,node_reveal_init,node_counters_init toneAmber
class node_hero_images,node_style_hub,node_base_css,node_section_css,node_hero_css,node_nav_css,node_reveal_css toneMint
class node_runtime,node_next_config,node_vercel toneRose
```

## Components

### Next.js App

App Router static landing page.

- [Root layout](https://github.com/cy-0120/dksh_dokdo/blob/main/app/layout.js): App Router layout · Defines document shell, fonts, and persistent chrome. · `app/layout.js`
- [Home route](https://github.com/cy-0120/dksh_dokdo/blob/main/app/page.js): static page · Composes the Dokdo landing-page sections. · `app/page.js`
- [Global Tailwind CSS](https://github.com/cy-0120/dksh_dokdo/blob/main/app/globals.css): global stylesheet · `app/globals.css`

### UI Components

Persistent chrome and page sections.

- [Navigation](https://github.com/cy-0120/dksh_dokdo/blob/main/components/Nav.js): client UI · Handles scroll presentation and mobile-menu state. · `components/Nav.js`
- [Footer](https://github.com/cy-0120/dksh_dokdo/blob/main/components/Footer.js): shared UI · `components/Footer.js`
- [Top button](https://github.com/cy-0120/dksh_dokdo/blob/main/components/TopButton.js): client UI · Scrolls the page back to the top. · `components/TopButton.js`
- [Hero](https://github.com/cy-0120/dksh_dokdo/blob/main/components/Hero.js): page section · Crossfades backgrounds by time of day. · `components/Hero.js`
- [Reveal initializer](https://github.com/cy-0120/dksh_dokdo/blob/main/components/RevealInit.js): client enhancement · `components/RevealInit.js`
- [Counters initializer](https://github.com/cy-0120/dksh_dokdo/blob/main/components/CountersInit.js): client enhancement · Animates factual counters and distance bars. · `components/CountersInit.js`

### Styles & Assets

Bundled visual resources.

- [Hero imagery](https://github.com/cy-0120/dksh_dokdo/tree/main/public/img/dokdo-time): static assets · Time-of-day Dokdo backgrounds served from public assets. · `public/img/dokdo-time`
- [Custom style hub](https://github.com/cy-0120/dksh_dokdo/blob/main/styles/style.css): stylesheet entry · Imports the primary custom visual system. · `styles/style.css`
- [Base styles](https://github.com/cy-0120/dksh_dokdo/blob/main/styles/base.css): stylesheet · `styles/base.css`
- [Section styles](https://github.com/cy-0120/dksh_dokdo/blob/main/styles/sections.css): stylesheet · Styles major page sections. · `styles/sections.css`
- [Hero styles](https://github.com/cy-0120/dksh_dokdo/blob/main/styles/hero.css): stylesheet · `styles/hero.css`
- [Navigation styles](https://github.com/cy-0120/dksh_dokdo/blob/main/styles/nav.css): stylesheet · Includes responsive navigation presentation. · `styles/nav.css`
- [Reveal styles](https://github.com/cy-0120/dksh_dokdo/blob/main/styles/reveal.css): stylesheet · `styles/reveal.css`

### Runtime & Delivery

Build and deployment boundary.

- [Next.js runtime](https://github.com/cy-0120/dksh_dokdo/blob/main/package.json): runtime definition · Next.js 16 and React 19 application runtime. · `package.json`
- [Next configuration](https://github.com/cy-0120/dksh_dokdo/blob/main/next.config.mjs): framework config · `next.config.mjs`
- **Vercel**: deployment target · Hosts the statically prerendered site.

## Connections

- Next.js runtime → Root layout: runs
- Next configuration → Next.js runtime: configures
- Root layout → Home route: wraps
- Root layout → Global Tailwind CSS: loads
- Root layout → Navigation: renders
- Root layout → Footer: renders
- Root layout → Top button: renders
- Home route → Hero: composes
- Home route → Reveal initializer: initializes
- Home route → Counters initializer: initializes
- Hero → Hero imagery: uses
- Custom style hub → Base styles: imports
- Custom style hub → Section styles: imports
- Custom style hub → Hero styles: imports
- Custom style hub → Navigation styles: imports
- Reveal initializer → Reveal styles: uses
- Next.js runtime → Vercel: prerendered and deployed to
