# priyanshugoyal2301/personal-portfolio architecture

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

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

## Overview

##### Project type and purpose
- This is a **static, single‐page personal portfolio website**.
- Built with plain HTML5, Tailwind CSS (via CDN), and a small Vanilla JS snippet for the typing animation.
- It hosts a downloadable resume (PDF) and links out to GitHub projects.

##### File structure
- Top-level files only:
- index.html – the sole entry point
- style.css – any custom CSS beyond Tailwind
- PriyanshuGoyal_Resume__AI_.pdf – static resume asset
- README.md – documentation
- No backend code, no build scripts, no server-side components.

##### Extract architecture insights from the README
- Tech stack is entirely client-side
- Tailwind CSS is pulled in at runtime from a CDN
- A contact form is present—likely a simple frontend form (could post to a service or mailto)
- External dependencies are minimal: Tailwind CDN and any GitHub links

##### Main components
a. Client (Web Browser)
b. Static Web Server or Hosting (e.g., GitHub Pages, Netlify, Vercel)
c. Tailwind CSS CDN
d. Custom CSS (style.css) & JS (typing animation) delivered by the server
e. Resume PDF asset
f. External Services / Links:
- GitHub repositories (links out)

##### Relationships and interactions
- Browser → HTTP GET → Static Server → index.html
- index.html ⟹
- Loads Tailwind CSS from CDN
- Loads style.css from server
- Executes JS for typing effect
- Renders page sections (About, Skills, Projects, Education, Contact)
- Provides link/button to download PDF asset from the server
- Provides outbound links to GitHub projects
- Submits contact form data → Optional external form-handling service

##### Architectural patterns / principles
- **Static Site**: No application server, no runtime logic beyond client JS
- **Content Delivery**: CSS is offloaded to a CDN for performance
- **Separation of Concerns**:
- HTML for structure
- Tailwind + custom CSS for styling
- JS for singular UI animation

## Diagram (Mermaid)

```mermaid
graph TB
    %% Client
    Browser["Browser"]:::client

    %% Hosting and Assets
    Host["Static Host (e.g., GitHub Pages/Netlify/Vercel)"]:::service

    subgraph "Hosted Assets"
        Index["index.html"]:::asset
        CSS["style.css"]:::asset
        PDF["PriyanshuGoyal_Resume__AI_.pdf"]:::asset
        README["README.md"]:::asset
    end

    %% Third-Party Services
    Tailwind["Tailwind CSS CDN"]:::external
    GitHub["GitHub Projects"]:::external
    Form["Contact Form Service"]:::external
    Typing["Typing Animation JS"]:::asset

    %% Connections
    Browser -->|"GET /index.html"| Host
    Host -->|"serves index.html"| Index
    Host -->|"serves style.css"| CSS
    Host -->|"serves resume PDF"| PDF
    Host -->|"serves README"| README

    Index -->|"loads Tailwind CSS"| Tailwind
    Index -->|"loads custom CSS"| CSS
    Index -->|"executes typing animation"| Typing
    Index -->|"download resume"| PDF
    Index -->|"navigate to projects"| GitHub
    Index -->|"submit form POST"| Form

    %% Click Events
    click Index "https://github.com/priyanshugoyal2301/personal-portfolio/blob/main/index.html"
    click CSS "https://github.com/priyanshugoyal2301/personal-portfolio/blob/main/style.css"
    click PDF "https://github.com/priyanshugoyal2301/personal-portfolio/blob/main/PriyanshuGoyal_Resume__AI_.pdf"
    click README "https://github.com/priyanshugoyal2301/personal-portfolio/blob/main/README.md"

    %% Styles
    classDef client fill:#f9f,stroke:#333,stroke-width:1px
    classDef asset fill:#afa,stroke:#333,stroke-width:1px
    classDef external fill:#aaf,stroke:#333,stroke-width:1px
    classDef service fill:#ffa,stroke:#333,stroke-width:1px
```
