# pawan1198/portfolio architecture

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

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

## Overview

##### Main Components
- Web Pages: The project includes key HTML files such as index.html (likely the landing page) and about.html for additional information.
- Static Assets: The assets directory (including its img subdirectory) stores images and any other media requiring presentation.
- Styling and Interactivity: styles.css is used for layout and design, while script.js adds dynamic behavior to the website.
- Configuration: _config.yml suggests the use of a static site generator (such as Jekyll) which can manage site settings and possibly facilitate deployment.

##### Relationships & Interactions
- The user accesses the website via a browser which fetches index.html as the landing point.
- Other pages (like about.html) are directly accessible via navigation links.
- The HTML files reference static assets (images, CSS, JavaScript) either relatively or via specified paths.
- The _config.yml file is used during the build process to generate correct site-wide paths/settings if using a static site generator.
- There is direct interaction between the HTML pages and the static assets: the web pages load CSS for styling and JavaScript for any interactivity.

##### Important Architectural Patterns
- Separation of Concerns: Content (HTML), presentation (CSS), behavior (JavaScript), and site configuration (YAML) are clearly separated.
- Static Web Architecture: There are no backend servers or dynamic data layers. All pages and assets are statically served, meaning that the design is straightforward and optimized for content delivery.
- Build Process (if applicable): If utilizing a tool like Jekyll, the build step integrates the configuration file to generate a fully static website ready to deploy.

##### Relevant Technologies
- HTML/CSS/JavaScript core web technologies for a client-side rendered website.
- Possibly Jekyll (or another static site generator) indicated by _config.yml to manage site configuration and templating.
- Any web server or hosting mechanism (e.g., GitHub Pages) can be mentioned since static sites are easily hosted via CDN or static hosting providers.

##### Elements to be Included
- Components: Label key components clearly – e.g., “Home Page (index.html)”, “About Page (about.html)”, “Assets (Images, etc.)”, “CSS (styles.css)”, “JavaScript (script.js)”, and “Site Configuration (_config.yml)”.

## Diagram (Mermaid)

```mermaid
flowchart TD
    A("User Browser"):::browser
    B("Static Host/CDN"):::host

    subgraph "Build Pipeline"
        D("Site Configuration (_config.yml)"):::config
        C("Build Process (Jekyll)"):::build
        D --> C
    end

    %% Final Static Site (produced by build process)
    C --> E("Home Page (index.html)"):::page
    C --> F("About Page (about.html)"):::page
    C --> G("Styling (styles.css)"):::asset
    C --> H("Interactivity (script.js)"):::asset
    C --> I("Static Assets (assets)"):::asset
    I --> J("Images (assets/img)"):::asset

    %% User flow from browser to hosted content
    A --> B
    B --> E
    B --> F

    %% Interaction within home page
    E -->|"loads"| G
    E -->|"loads"| H
    E -->|"loads"| I
    E -->|"navigates to"| F

    %% Click Events
    click E "https://github.com/pawan1198/portfolio/blob/master/index.html"
    click F "https://github.com/pawan1198/portfolio/blob/master/about.html"
    click G "https://github.com/pawan1198/portfolio/blob/master/styles.css"
    click H "https://github.com/pawan1198/portfolio/blob/master/script.js"
    click I "https://github.com/pawan1198/portfolio/tree/master/assets"
    click J "https://github.com/pawan1198/portfolio/tree/master/assets/img"
    click D "https://github.com/pawan1198/portfolio/blob/master/_config.yml"

    %% Styles
    classDef browser fill:#D3D3D3,stroke:#000,stroke-width:1px;
    classDef host fill:#FFC0CB,stroke:#000,stroke-width:1px;
    classDef page fill:#ADD8E6,stroke:#000,stroke-width:1px;
    classDef asset fill:#90EE90,stroke:#000,stroke-width:1px;
    classDef config fill:#FFD700,stroke:#000,stroke-width:1px;
    classDef build fill:#FFA07A,stroke:#000,stroke-width:1px;
```
