# webdevavi96/my-portfolio architecture

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

- Interactive diagram: https://gitdiagram.com/webdevavi96/my-portfolio
- Repository: https://github.com/webdevavi96/my-portfolio

## Overview

##### Main Components
- Entry Point: index.html – This is the landing or main HTML file that initiates the website.
- Styles: res/styles/style.css – Contains all the styling which gives a modern, responsive design.
- Scripts: res/scripts/main.js and res/scripts/form.js – These add interactivity to the UI (for example, handling the contact form and any page animations).
- Assets:
- Images: Located in res/img (further organized into assets and screenshots that showcase portfolios and pages like "Homepage", "About-us", "Contactus").
- Downloads: Contains files like the resume in PDF format, which might be offered as a downloadable resource.
- GitHub Configurations & Contribution: The .github directory holds issue templates, which highlights the workflow for community contributions.
- License & Documentation: LICENSE and README.md help users understand project usage, contribution guidelines, and legal aspects.

##### Establish Relationships and Interactions
- The User (through a web browser) loads the index.html file.
- index.html references the CSS (from res/styles/...) and JavaScript files (from res/scripts/...) to properly style the page and enable functionality such as interactive forms.
- The HTML also pulls in image assets (from res/img/assets/...) to display the portfolio’s visual content.
- The downloadable content (resume in res/downloads) is linked from the main page so users can view or download it.
- Community interactions – through GitHub Issues (configured in .github) facilitate bug reports or feature suggestions.

##### Architectural Patterns & Design Principles
- Separation of Concerns: HTML is used for content structure, CSS for presentation, and JavaScript for behavior.
- Static File Serving: The project is based on static files which are highly deployable (via GitHub Pages or any static hosting provider).
- Responsive and Modular Design: The project structure (organized resources and clear naming conventions) suggests an emphasis on ease of customization and scalability for individual sections (e.g., About Me, Projects, Contact).

## Diagram (Mermaid)

```mermaid
graph TD
    U["User (Browser)"]:::user
    BR["Web Browser"]:::tool
    IDX["index.html"]:::html
    CSS["CSS: res/styles/style.css"]:::css
    JS["JavaScript"]:::js
    MJS["Main Script: res/scripts/main.js"]:::js
    FJS["Form Script: res/scripts/form.js"]:::js
    IMG["Images: res/img/assets"]:::asset
    DL["Downloadable Resume: res/downloads/My_Resume/My_Resume.pdf"]:::asset
    REP["GitHub Repository"]:::repo
    GCFG["GitHub Config: .github/ISSUE_TEMPLATE/custom.md"]:::config
    LIC["License: LICENSE"]:::doc
    RD["Documentation: README.md"]:::doc

    U -->|"loads"| BR
    BR -->|"requests"| IDX

    IDX -->|"includes"| CSS
    IDX -->|"includes"| JS
    JS -->|"executes"| MJS
    JS -->|"executes"| FJS

    IDX -->|"loads_assets"| IMG
    IDX -->|"links"| DL

    U -->|"reports_issues/contributes"| REP
    REP -->|"contains"| GCFG
    REP -->|"contains"| LIC
    REP -->|"contains"| RD

    click IDX "https://github.com/webdevavi96/my-portfolio/blob/main/index.html"
    click CSS "https://github.com/webdevavi96/my-portfolio/blob/main/res/styles/style.css"
    click MJS "https://github.com/webdevavi96/my-portfolio/blob/main/res/scripts/main.js"
    click FJS "https://github.com/webdevavi96/my-portfolio/blob/main/res/scripts/form.js"
    click IMG "https://github.com/webdevavi96/my-portfolio/tree/main/res/img/assets"
    click DL "https://github.com/webdevavi96/my-portfolio/blob/main/res/downloads/My_Resume/My_Resume.pdf"
    click GCFG "https://github.com/webdevavi96/my-portfolio/blob/main/.github/ISSUE_TEMPLATE/custom.md"
    click LIC "https://github.com/webdevavi96/my-portfolio/tree/main/LICENSE"
    click RD "https://github.com/webdevavi96/my-portfolio/blob/main/README.md"

    classDef user fill:#f9c,stroke:#333,stroke-width:2px;
    classDef tool fill:#bbf,stroke:#333,stroke-width:2px;
    classDef html fill:#fffbb0,stroke:#333,stroke-width:2px;
    classDef css fill:#cce5ff,stroke:#333,stroke-width:2px;
    classDef js fill:#d4edda,stroke:#333,stroke-width:2px;
    classDef asset fill:#f8d7da,stroke:#333,stroke-width:2px;
    classDef repo fill:#e2e3e5,stroke:#333,stroke-width:2px;
    classDef config fill:#d1ecf1,stroke:#333,stroke-width:2px;
    classDef doc fill:#fdfd96,stroke:#333,stroke-width:2px;
```
