# codebyunique/unique-portfolio architecture

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

- Interactive diagram: https://gitdiagram.com/codebyunique/unique-portfolio
- Repository: https://github.com/codebyunique/unique-portfolio

## Overview

##### Project type and purpose
- This is a static, single-page (plus a few sub-pages) personal portfolio website.
- Purpose: showcase skills, education, certificates, projects, and provide a contact form for visitors.

##### File structure
- Top‐level:
- index.html – landing page
- src/pages/… – additional HTML pages (skills, education, certificates, projects, contact)
- src/style/style.css – global stylesheet
- src/script/script.js – client-side behavior (e.g. mobile menu, form submission)
- assets/… – static assets (images, favicons, PDF resume)
- README.md, LICENSE, netlify configuration implied by deploy on Netlify
- No server-side code: it’s purely frontend hosted as static files.
- The contact form is integrated with Formspree (an external API).

##### Points from README
- Fully responsive, minimal UI.
- Tech stack: HTML5, CSS3, Boxicons/FontAwesome, Netlify for hosting.
- Contact form uses Formspree.

##### Main components
a. User’s Browser (Client)
b. Static-File Hosting (Netlify CDN)
c. Static Assets Repository (images, CSS, JS, HTML)
d. External Services
– Formspree API (form submissions)

##### Relationships and data flows
- User → HTTP GET → Netlify CDN → serves HTML/CSS/JS/assets → Browser renders pages.
- Browser → CSS/JS → CDN fetch static assets.
- Browser (JS) → HTTPS POST → Formspree endpoint → external service processes/submits email.

##### Architectural patterns & design principles
- “Jamstack” style: JavaScript, APIs, and Markup pre‐built.
- Decoupled frontend; no backend code in repo.
- CDN for performance; external APIs for dynamic features (form).

##### Diagramming recommendations
- Rectangle labeled “User’s Browser”
- Hosting/CDN in another,
- External services in a third.
- Related elements in shaded containers:
- “Static Layer” (Netlify + Assets)

##### Additional details
- If desired, show how the resume PDF is served (direct link from assets).

## Diagram (Mermaid)

```mermaid
flowchart TD
    Browser["User’s Browser"]:::frontend

    subgraph "Static Layer"
        CDN["Netlify CDN (Static Hosting)"]:::hosting

        subgraph "Static Assets Repository"
            HTMLIndex["index.html"]:::frontend
            HTMLCert["certificates.html"]:::frontend
            HTMLContact["contact.html"]:::frontend
            HTMLEdu["education.html"]:::frontend
            HTMLProj["projects.html"]:::frontend
            HTMLSkills["skills.html"]:::frontend

            CSS["style.css"]:::frontend
            JS["script.js"]:::frontend

            subgraph "Assets"
                IMG["assets/images/"]:::frontend
                FAV["assets/favicons/"]:::frontend
                CERTIMG["assets/certificates/"]:::frontend
                EDUIMG["assets/education/"]:::frontend
                RESUME["assets/resume/Atabul_Resume.pdf"]:::frontend
            end
        end
    end

    subgraph "External Integrations"
        Formspree["Formspree API"]:::external
        Icons["Icon CDNs (Boxicons, FontAwesome)"]:::external
    end

    Browser -->|HTTP GET| CDN
    CDN --> HTMLIndex
    CDN --> HTMLCert
    CDN --> HTMLContact
    CDN --> HTMLEdu
    CDN --> HTMLProj
    CDN --> HTMLSkills
    CDN --> CSS
    CDN --> JS
    CDN --> IMG
    CDN --> FAV
    CDN --> CERTIMG
    CDN --> EDUIMG
    CDN --> RESUME

    Browser -->|GET Icons| Icons
    Browser -->|POST Form Data| Formspree

    click HTMLIndex "https://github.com/codebyunique/unique-portfolio/blob/main/index.html"
    click HTMLCert "https://github.com/codebyunique/unique-portfolio/blob/main/src/pages/certificates.html"
    click HTMLContact "https://github.com/codebyunique/unique-portfolio/blob/main/src/pages/contact.html"
    click HTMLEdu "https://github.com/codebyunique/unique-portfolio/blob/main/src/pages/education.html"
    click HTMLProj "https://github.com/codebyunique/unique-portfolio/blob/main/src/pages/projects.html"
    click HTMLSkills "https://github.com/codebyunique/unique-portfolio/blob/main/src/pages/skills.html"
    click CSS "https://github.com/codebyunique/unique-portfolio/blob/main/src/style/style.css"
    click JS "https://github.com/codebyunique/unique-portfolio/blob/main/src/script/script.js"
    click IMG "https://github.com/codebyunique/unique-portfolio/tree/main/assets/images/"
    click FAV "https://github.com/codebyunique/unique-portfolio/tree/main/assets/favicons/"
    click CERTIMG "https://github.com/codebyunique/unique-portfolio/tree/main/assets/certificates/"
    click EDUIMG "https://github.com/codebyunique/unique-portfolio/tree/main/assets/education/"
    click RESUME "https://github.com/codebyunique/unique-portfolio/blob/main/assets/resume/Atabul_Resume.pdf"

    classDef frontend fill:#E3F2FD,stroke:#2196F3,stroke-width:1px
    classDef hosting fill:#FFF3E0,stroke:#FB8C00,stroke-width:1px
    classDef external fill:#F3E5F5,stroke:#9C27B0,stroke-width:1px
```
