# forestcrazy/myportfoliowebsite architecture

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

- Interactive diagram: https://gitdiagram.com/forestcrazy/myportfoliowebsite
- Repository: https://github.com/forestcrazy/myportfoliowebsite

## Overview

##### Project type and purpose
- This is a simple, static “personal portfolio” website.
- It consists entirely of HTML pages (index.html, about.html, contact.html, skills.html), a CSS/SCSS stylesheet, an image folder, and no server-side code or database.

##### File structure
- Top-level HTML files represent separate pages.
- index.scss is the source for index.css (build step: SCSS → CSS).
- img/ holds static assets.
- No “src/” or “backend/” directories—this is a purely frontend, static-site architecture.

##### Extract insights from the README
- “Lightweight, customizable personal portfolio website.”
- No mention of dynamic content, authentication, or API integrations.

##### Main components
a. Developer Workstation
- SCSS compiler (e.g., node-sass, dart-sass) or build tool (optional).
b. Build Pipeline (optional)
- SCSS → CSS step.
c. Version Control
- Git repository.
d. Static Hosting / CDN
- e.g., GitHub Pages, Netlify, Vercel, S3 + CloudFront.
e. Browser (end user)

##### Relationships and data flows
- Developer writes HTML/SCSS → commits to Git.
- Build step transforms index.scss → index.css.
- Hosting provider pulls from Git → serves files to CDN or origin.
- Browser requests HTML, CSS, images → hosting/CDN responds with static files.

##### Architectural patterns and design principles
- Static site architecture (no backend).
- Build-time preprocessing (SCSS compilation).
- CDN for global content distribution and caching.
- Separation of concerns:
- Content (HTML)
- Presentation (CSS)
- Media (img/)

##### Technologies/frameworks in use
- HTML5
- SCSS → CSS compiler (e.g., node-sass)
- Static hosting/CDN (e.g., GitHub Pages, Netlify)

## Diagram (Mermaid)

```mermaid
flowchart TB
    %% Developer Workstation
    subgraph "Developer Workstation"
        Dev["Developer Workstation"]:::dev
    end

    %% Version Control
    subgraph "Version Control"
        GitRepo[(Git Repository)]:::vcs
        subgraph "Repository Contents"
            GREADME["README.md"]:::assets
            GGitat[".gitattributes"]:::assets
            GImg["img/"]:::assets
            GIndexHtml["index.html"]:::assets
            GAboutHtml["about.html"]:::assets
            GContactHtml["contact.html"]:::assets
            GSkillsHtml["skills.html"]:::assets
            GIndexScss["index.scss"]:::assets
            GIndexCss["index.css"]:::assets
        end
    end

    %% CI/CD Pipeline
    subgraph "CI/CD Pipeline"
        Build["Build Tool (SCSS→CSS)"]:::build
    end

    %% Hosting
    subgraph "Static Hosting/CDN"
        Hosting["Hosting Provider / CDN"]:::hosting
        subgraph "Static Assets"
            HIndexHtml["index.html"]:::assets
            HAboutHtml["about.html"]:::assets
            HContactHtml["contact.html"]:::assets
            HSkillsHtml["skills.html"]:::assets
            HIndexCss["index.css"]:::assets
            HImg["img/"]:::assets
        end
    end

    %% End User
    Browser["Browser (User)"]:::user

    %% Relationships
    Dev -->|commits/push| GitRepo
    GitRepo -->|trigger build| Build
    GIndexScss -->|"compile"| GIndexCss
    Build -->|deploy| Hosting
    Hosting --> HIndexHtml
    Hosting --> HAboutHtml
    Hosting --> HContactHtml
    Hosting --> HSkillsHtml
    Hosting --> HIndexCss
    Hosting --> HImg
    Browser -->|HTTP GET index.html| Hosting
    Browser -->|HTTP GET CSS| Hosting
    Browser -->|HTTP GET images| Hosting

    %% Click Events
    click GIndexHtml "https://github.com/forestcrazy/myportfoliowebsite/blob/main/index.html"
    click GAboutHtml "https://github.com/forestcrazy/myportfoliowebsite/blob/main/about.html"
    click GContactHtml "https://github.com/forestcrazy/myportfoliowebsite/blob/main/contact.html"
    click GSkillsHtml "https://github.com/forestcrazy/myportfoliowebsite/blob/main/skills.html"
    click GIndexScss "https://github.com/forestcrazy/myportfoliowebsite/blob/main/index.scss"
    click GIndexCss "https://github.com/forestcrazy/myportfoliowebsite/blob/main/index.css"
    click GImg "https://github.com/forestcrazy/myportfoliowebsite/tree/main/img/"
    click GGitat "https://github.com/forestcrazy/myportfoliowebsite/blob/main/.gitattributes"
    click GREADME "https://github.com/forestcrazy/myportfoliowebsite/blob/main/README.md"

    %% Styles
    classDef dev fill:#E0F7FA,stroke:#006064,color:#000
    classDef vcs fill:#E1BEE7,stroke:#4A148C,color:#000
    classDef build fill:#B2EBF2,stroke:#00796B,color:#000
    classDef hosting fill:#E8F5E9,stroke:#1B5E20,color:#000
    classDef user fill:#FFF3E0,stroke:#E65100,color:#000
    classDef assets fill:#F3E5F5,stroke:#4A148C,color:#000
```
