How cy-0120/dksh_dokdo works
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: layout.js Root layout · style.css Custom style hub · page.js Home route · package.json Next.js runtime
Components 19
Next.js App
App Router static landing page.
- Root layout · Defines document shell, fonts, and persistent chrome.
app/layout.js - Home route · Composes the Dokdo landing-page sections.
app/page.js - Global Tailwind CSS
app/globals.css
UI Components
Persistent chrome and page sections.
- Navigation · Handles scroll presentation and mobile-menu state.
components/Nav.js - Footer
components/Footer.js - Top button · Scrolls the page back to the top.
components/TopButton.js - Hero · Crossfades backgrounds by time of day.
components/Hero.js - Reveal initializer
components/RevealInit.js - Counters initializer · Animates factual counters and distance bars.
components/CountersInit.js
Styles & Assets
Bundled visual resources.
- Hero imagery · Time-of-day Dokdo backgrounds served from public assets.
public/img/dokdo-time - Custom style hub · Imports the primary custom visual system.
styles/style.css - Base styles
styles/base.css - Section styles · Styles major page sections.
styles/sections.css - Hero styles
styles/hero.css - Navigation styles · Includes responsive navigation presentation.
styles/nav.css - Reveal styles
styles/reveal.css
Runtime & Delivery
Build and deployment boundary.
- Next.js runtime · Next.js 16 and React 19 application runtime.
package.json - Next configuration
next.config.mjs - Vercel · Hosts the statically prerendered site.
Connections 17
- 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