# xzcxvc/dariru-codes architecture

> Architecture diagram of the GitHub repository xzcxvc/dariru-codes, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-07-04). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/xzcxvc/dariru-codes
- Repository: https://github.com/xzcxvc/dariru-codes

## Overview

##### Project type and purpose
- This is a Next.js (React-based) front-end web application scaffolded via `create-next-app`.
- It delivers a multi-page, component-driven website (pages: home, about, contact, projects), optimized for static generation/SSR and deployed (typically) on Vercel.

##### File structure
- Top-level config:
- next.config.ts – Next.js runtime/build settings
- tsconfig.json – TypeScript compiler options
- postcss.config.mjs, eslint.config.mjs – linting and CSS tooling
- “app” directory (Next.js App Router):
- app/layout.tsx – root layout wrapper
- app/page.tsx – the default landing page
- app/pages/*.tsx – per-route pages (home, about, contact, projects)
- app/components/*.tsx – reusable UI components (Button, Card, Navbar, Timeline, etc.)
- app/helpers/constants – shared constants and interfaces
- app/globals.css – global styling
- Other:
- package.json / package-lock.json – dependencies and scripts

##### Extract insights from the README
- Confirms usage of Next.js App Router, automatic font optimization with `next/font` (Geist).
- Development commands, deployment recommended on Vercel.
- No external API integrations documented—purely a static/SSR website.

## Diagram (Mermaid)

```mermaid
flowchart TB
    Client["Browser"]:::runtime

    subgraph "Configuration"
        direction TB
        nextConfig["next.config.ts"]:::code
        tsconfig["tsconfig.json"]:::code
        postcss["postcss.config.mjs"]:::code
        eslint["eslint.config.mjs"]:::code
        pkg["package.json / package-lock.json"]:::code
    end

    subgraph "Code Artifacts"
        direction TB
        subgraph "App Router"
            direction TB
            layout["Root Layout\n(app/layout.tsx)"]:::code
            pageRoot["Landing Page\n(app/page.tsx)"]:::code
            subgraph "Page Routes"
                direction TB
                home["Home\n(app/pages/home.tsx)"]:::code
                about["About\n(app/pages/about.tsx)"]:::code
                contact["Contact\n(app/pages/contact.tsx)"]:::code
                projects["Projects\n(app/pages/projects.tsx)"]:::code
            end
        end
        subgraph "UI Components"
            direction TB
            button["Button\n(app/components/button.tsx)"]:::code
            card["Card\n(app/components/card.tsx)"]:::code
            cardContent["Card Content\n(app/components/cardCotent.tsx)"]:::code
            logo["Logo\n(app/components/logo.tsx)"]:::code
            mobileNavbar["Mobile Navbar\n(app/components/mobileNavbar.tsx)"]:::code
            navbar["Navbar\n(app/components/navbar.tsx)"]:::code
            navlink["NavLink\n(app/components/navlink.tsx)"]:::code
            sectionText["Section Text\n(app/components/sectionText.tsx)"]:::code
            timeline["Timeline\n(app/components/timeline.tsx)"]:::code
        end
        subgraph "Helpers & Constants"
            direction TB
            interfaces["Interfaces\n(app/helpers/constants/interfaces.tsx)"]:::code
            lists["Lists\n(app/helpers/constants/lists.tsx)"]:::code
        end
    end

    subgraph "Styling & Assets"
        direction TB
        globals["Global CSS\n(app/globals.css)"]:::assets
        public["Static Assets\n(public/)"]:::assets
    end

    subgraph "Next.js Server Runtime"
        direction TB
        Router["Next.js Server\n(App Router)"]:::runtime
    end

    subgraph "Build & Deployment"
        direction TB
        build["Vercel CI/CD Pipeline"]:::infra
    end

    Client -->|"HTTP GET"| Router
    Router -->|"resolves layout"| layout
    layout --> pageRoot
    Router -->|"routes to"| home
    Router -->|"routes to"| about
    Router -->|"routes to"| contact
    Router -->|"routes to"| projects
    pageRoot --> button
    pageRoot --> card
    pageRoot --> logo
    home --> navbar
    about --> sectionText
    projects --> timeline
    navbar --> navlink
    card --> cardContent
    allComponentsClick[ ] --> interfaces
    allComponentsClick[ ] --> lists
    Router --> globals
    Router --> public
    Router -->|"serves assets"| public
    Router -->|"injects CSS"| globals
    Router -->|"injects fonts"| globals
    build --> nextConfig
    build --> tsconfig
    build --> postcss
    build --> eslint
    build --> pkg
    build --> Router
    build --> public
    Router -->|"HTML/CSS/JS"| Client

    click nextConfig "https://github.com/xzcxvc/dariru-codes/blob/main/next.config.ts"
    click tsconfig "https://github.com/xzcxvc/dariru-codes/blob/main/tsconfig.json"
    click postcss "https://github.com/xzcxvc/dariru-codes/blob/main/postcss.config.mjs"
    click eslint "https://github.com/xzcxvc/dariru-codes/blob/main/eslint.config.mjs"
    click pkg "https://github.com/xzcxvc/dariru-codes/blob/main/package.json"
    click layout "https://github.com/xzcxvc/dariru-codes/blob/main/app/layout.tsx"
    click pageRoot "https://github.com/xzcxvc/dariru-codes/blob/main/app/page.tsx"
    click home "https://github.com/xzcxvc/dariru-codes/blob/main/app/pages/home.tsx"
    click about "https://github.com/xzcxvc/dariru-codes/blob/main/app/pages/about.tsx"
    click contact "https://github.com/xzcxvc/dariru-codes/blob/main/app/pages/contact.tsx"
    click projects "https://github.com/xzcxvc/dariru-codes/blob/main/app/pages/projects.tsx"
    click button "https://github.com/xzcxvc/dariru-codes/blob/main/app/components/button.tsx"
    click card "https://github.com/xzcxvc/dariru-codes/blob/main/app/components/card.tsx"
    click cardContent "https://github.com/xzcxvc/dariru-codes/blob/main/app/components/cardCotent.tsx"
    click logo "https://github.com/xzcxvc/dariru-codes/blob/main/app/components/logo.tsx"
    click mobileNavbar "https://github.com/xzcxvc/dariru-codes/blob/main/app/components/mobileNavbar.tsx"
    click navbar "https://github.com/xzcxvc/dariru-codes/blob/main/app/components/navbar.tsx"
    click navlink "https://github.com/xzcxvc/dariru-codes/blob/main/app/components/navlink.tsx"
    click sectionText "https://github.com/xzcxvc/dariru-codes/blob/main/app/components/sectionText.tsx"
    click timeline "https://github.com/xzcxvc/dariru-codes/blob/main/app/components/timeline.tsx"
    click interfaces "https://github.com/xzcxvc/dariru-codes/blob/main/app/helpers/constants/interfaces.tsx"
    click lists "https://github.com/xzcxvc/dariru-codes/blob/main/app/helpers/constants/lists.tsx"
    click globals "https://github.com/xzcxvc/dariru-codes/blob/main/app/globals.css"
    click public "https://github.com/xzcxvc/dariru-codes/tree/main/public/"

    classDef runtime fill:#cce5ff,stroke:#004085
    classDef code fill:#d4edda,stroke:#155724
    classDef assets fill:#fff3cd,stroke:#856404
    classDef infra fill:#f5c6cb,stroke:#721c24
```
