# jcklerk/jcklerkdev architecture

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

- Interactive diagram: https://gitdiagram.com/jcklerk/jcklerkdev
- Repository: https://github.com/jcklerk/jcklerkdev

## Overview

##### Main Components

A. Client-Side Architecture
- React Application Container
- Routing Layer
- Page Components
- Shared Components
- Static Assets

**[Client Browser] ←→ [React Application]**
- ↓
- ┌──────────────┴───────────────┐
- ↓              ↓               ↓
- [Route Handler] [Page Components] [Shared Components]

##### Detailed Component Breakdown

A. Routes Layer
- Web.tsx as the central routing configuration
- To the three main pages (HomePage, AboutPage, ProjectPage)

B. Components Layer
- Shared Components:
- Nav
- Banner
- Footer
- FotoJustin
- Aboutme
- Projects

C. Static Assets
- Public directory contents
- Image assets

##### Important Elements to Highlight

A. Technology Stack:
- TypeScript
- React
- Tailwind CSS
- Create React App build system

B. Application Flow:
- How routes direct to pages
- Component reuse across pages
- Entry points (index.tsx)

**[Browser] → [React App Entry (index.tsx)] → [Main App Container]**

**[Main App Container] → [Route Handler]**
- ↓
- ┌────────────┼────────────┐
- ↓            ↓            ↓
- [HomePage]   [AboutPage]  [ProjectPage]

**[Shared Components]**
- Nav
- Banner
- Footer
- FotoJustin
- Aboutme
- Projects

## Diagram (Mermaid)

```mermaid
graph TB
    %% Main Application Flow
    Browser["Web Browser"]
    Entry["React Entry Point"]:::entry
    App["Main App Container"]:::app
    Router["Route Handler"]:::router

    %% Pages
    subgraph Pages
        Home["HomePage"]:::page
        About["AboutPage"]:::page
        Project["ProjectPage"]:::page
    end

    %% Shared Components
    subgraph SharedComponents["Shared Components"]
        direction TB
        Nav["Navigation"]:::component
        Banner["Banner"]:::component
        Footer["Footer"]:::component
        FotoJustin["FotoJustin"]:::component
        Aboutme["Aboutme"]:::component
        Projects["Projects"]:::component
    end

    %% Static Assets
    subgraph StaticAssets["Static Assets"]
        direction TB
        HTML["index.html"]:::static
        Manifest["manifest.json"]:::static
        SEO["SEO Files"]:::static
    end

    %% Configuration
    subgraph Config["Configuration"]
        direction TB
        TSConfig["TypeScript Config"]:::config
        TailwindConfig["Tailwind Config"]:::config
    end

    %% Relationships
    Browser --> Entry
    Entry --> App
    App --> Router
    Router --> Home
    Router --> About
    Router --> Project
    App --> SharedComponents

    %% Styling
    classDef entry fill:#4299e1
    classDef app fill:#4299e1
    classDef router fill:#4299e1
    classDef page fill:#48bb78
    classDef component fill:#ecc94b
    classDef static fill:#a0aec0
    classDef config fill:#805ad5

    %% Click Events
    click Entry "https://github.com/jcklerk/jcklerkdev/blob/master/src/index.tsx"
    click Router "https://github.com/jcklerk/jcklerkdev/blob/master/src/ts/routes/web.tsx"
    click Home "https://github.com/jcklerk/jcklerkdev/blob/master/src/ts/pages/HomePage.tsx"
    click About "https://github.com/jcklerk/jcklerkdev/blob/master/src/ts/pages/AboutPage.tsx"
    click Project "https://github.com/jcklerk/jcklerkdev/blob/master/src/ts/pages/ProjectPage.tsx"
    click Nav "https://github.com/jcklerk/jcklerkdev/blob/master/src/ts/components/Nav.tsx"
    click Banner "https://github.com/jcklerk/jcklerkdev/blob/master/src/ts/components/Banner.tsx"
    click Footer "https://github.com/jcklerk/jcklerkdev/blob/master/src/ts/components/Footer.tsx"
    click FotoJustin "https://github.com/jcklerk/jcklerkdev/blob/master/src/ts/components/FotoJustin.tsx"
    click Aboutme "https://github.com/jcklerk/jcklerkdev/blob/master/src/ts/components/Aboutme.tsx"
    click Projects "https://github.com/jcklerk/jcklerkdev/blob/master/src/ts/components/Projects.tsx"
    click HTML "https://github.com/jcklerk/jcklerkdev/blob/master/public/index.html"
    click Manifest "https://github.com/jcklerk/jcklerkdev/blob/master/public/manifest.json"
    click TSConfig "https://github.com/jcklerk/jcklerkdev/blob/master/tsconfig.json"
    click TailwindConfig "https://github.com/jcklerk/jcklerkdev/blob/master/tailwind.config.js"

    %% Legend
    subgraph Legend
        L1["Core Components"]:::entry
        L2["Page Components"]:::page
        L3["Shared Components"]:::component
        L4["Static Assets"]:::static
        L5["Configuration"]:::config
    end
```
