# ryanfitzgerald/devportfolio architecture

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

- Interactive diagram: https://gitdiagram.com/ryanfitzgerald/devportfolio
- Repository: https://github.com/ryanfitzgerald/devportfolio

## Overview

- Frontend (presentation): This comprises the HTML file (index.html), the CSS folder (with the compiled styles carried over from the SCSS source in the scss folder), and the JavaScript folder holding the interactive scripts.
- Assets & Libraries: Include the Images folder (for static images like backgrounds and project photos) and the Libs folder that holds external resources (e.g., Font Awesome with its accompanying CSS, fonts, and source files in less/scss).
- Build and Dev Tools: Mark the Gulpfile.js, package.json, and package-lock.json as the automation/build component that compiles Sass to CSS and automates JavaScript minification.
- External Integrations: Capture the integration with third-party APIs like Formspree (used in the Contact section form) as a separate external service.
- Customization Points & Content Segments: Since the project uses modular sections (Header, About, Projects, etc.), include these as front-end content modules that represent different areas of the portfolio page.

##### Architectural patterns and design principles
- Modular Design: The portfolio is highly modular; its various sections (such as Experience, Projects, Skills) are clearly separated in the index.html. This reflects a component-based design even without a modern framework.
- Separation of Concerns: Notice the clear division between structure (HTML), presentation (Sass/CSS), behavior (JavaScript), and third-party assets (e.g., Font Awesome). Also, the build process (via Gulp) segregates development tasks from production-ready code.
- Static Site Architecture: Everything is served as static files – this is typical of a no-backend, fast-loading portfolio site.

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Global Entities
    Browser["User's Browser"]:::external

    %% Frontend Layer
    subgraph "Frontend"
        HTML["index.html"]:::frontend
        CSS["css/styles.css\n(compiled from SCSS)"]:::frontend
        JS["js/scripts.js\n(original source & minified output)"]:::frontend
    end

    %% Assets & Libraries
    subgraph "Assets & Libraries"
        IMAGES["Images Directory"]:::frontend
        FONT["Font Awesome (libs)"]:::external
    end

    %% Build & Development Tools
    subgraph "Build & Dev Tools"
        GULP["gulpfile.js"]:::build
        PKG["package.json"]:::build
        PKG_LOCK["package-lock.json"]:::build
        SCSS["scss/styles.scss"]:::build
    end

    %% External Integration
    EXT["Formspree API"]:::external

    %% Relationships and Data Flow
    Browser -->|"requests"| HTML
    HTML -->|"loads"| CSS
    HTML -->|"loads"| JS
    HTML -->|"loads"| IMAGES
    HTML -->|"loads"| FONT
    HTML -->|"submitsFormTo"| EXT

    SCSS -->|"compiledByGulp"| CSS
    GULP -->|"minifies"| JS

    %% Click Events
    click HTML "https://github.com/ryanfitzgerald/devportfolio/blob/master/index.html"
    click CSS "https://github.com/ryanfitzgerald/devportfolio/blob/master/css/styles.css"
    click SCSS "https://github.com/ryanfitzgerald/devportfolio/blob/master/scss/styles.scss"
    click JS "https://github.com/ryanfitzgerald/devportfolio/blob/master/js/scripts.js"
    click IMAGES "https://github.com/ryanfitzgerald/devportfolio/tree/master/images"
    click FONT "https://github.com/ryanfitzgerald/devportfolio/tree/master/libs/font-awesome"
    click GULP "https://github.com/ryanfitzgerald/devportfolio/blob/master/gulpfile.js"
    click PKG "https://github.com/ryanfitzgerald/devportfolio/blob/master/package.json"
    click PKG_LOCK "https://github.com/ryanfitzgerald/devportfolio/blob/master/package-lock.json"

    %% Styles
    classDef frontend fill:#add8e6,stroke:#000,stroke-width:1px;
    classDef build fill:#90ee90,stroke:#000,stroke-width:1px;
    classDef external fill:#f4a582,stroke:#000,stroke-width:1px;
```
