# rishit30g/personal-portfolio architecture

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

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

## Overview

##### Project type and purpose
- This is a static, single‐page personal portfolio website.
- It consists of HTML, CSS, JavaScript and image assets, and is meant to be deployed (for example) on GitHub Pages or any static‐hosting service.
- It uses a third‐party service (EmailJS) for contact form submissions, and includes external CDNs (FontAwesome, icons8) and a Google Drive link for the resume.

##### File structure
- Top‐level files and directories:
- index.html – the single HTML entry point
- style.css – stylesheet for layout and styling
- script.js – JavaScript for dynamic behavior (form submission, interactive effects)
- CONTRIBUTING.md & README.md – documentation
- No backend code or database folders; this is a pure frontend project.

##### README for additional insights
- Describes sections (Home, About, Services, Skills, Contact, Footer).
- Instructs how to replace placeholders with personal data, integrate a favicon, FontAwesome kit, EmailJS service and template IDs, and a Google Drive resume link.

##### Main components
a. Frontend (Browser)
- index.html
- style.css
- script.js
b. Static Web Host
- GitHub Pages (or any static‐hosting service) serving the files
c. External Services
- EmailJS API (for contact form submissions)
- Google Drive (resume link)

##### Relationships and interactions
- User’s browser requests index.html, CSS, JS and images from the static host.
- script.js, upon form submit, performs an HTTP POST to the EmailJS endpoint (using Service ID, Template ID, UserID).
- The resume link points to a Google Drive hosted PDF.

##### Architectural patterns and design principles
- Single‐Page Static Application: separation of content (HTML), styling (CSS), and behavior (JS).
- CDN‐backed assets to reduce hosting load and increase performance.
- External API integration pattern for contact form (EmailJS).
- No server‐side code—ideal for simple personal branding sites.

## Diagram (Mermaid)

```mermaid
flowchart TD
    Browser["User's Browser"]:::frontend
    GitHub["GitHub Pages (Static Host)"]:::host
    EmailJS["EmailJS API"]:::service
    FontAwesome["FontAwesome CDN"]:::service
    GoogleDrive["Google Drive Resume"]:::service

    Browser -->|"GET assets"| GitHub
    GitHub -->|"Serves files"| Browser

    Browser -->|"POST form data"| EmailJS
    Browser -->|"Fetch icons"| FontAwesome
    Browser -->|"Open resume link"| GoogleDrive

    subgraph "Project Files"
        HTML["index.html"]:::static
        CSS["style.css"]:::static
        JS["script.js"]:::static
        IMG["images/skill-icons"]:::static
        README["README.md"]:::docs
        CONTRIB["CONTRIBUTING.md"]:::docs
    end

    GitHub --> HTML
    GitHub --> CSS
    GitHub --> JS
    GitHub --> IMG
    GitHub --> README
    GitHub --> CONTRIB

    HTML --> Browser
    CSS --> Browser
    JS --> Browser
    IMG --> Browser

    click HTML "https://github.com/rishit30g/personal-portfolio/blob/main/index.html"
    click CSS "https://github.com/rishit30g/personal-portfolio/blob/main/style.css"
    click JS "https://github.com/rishit30g/personal-portfolio/blob/main/script.js"
    click IMG "https://github.com/rishit30g/personal-portfolio/tree/main/images/skill-icons/"
    click README "https://github.com/rishit30g/personal-portfolio/blob/main/README.md"
    click CONTRIB "https://github.com/rishit30g/personal-portfolio/blob/main/CONTRIBUTING.md"

    classDef frontend fill:#BBDEFB,stroke:#0D47A1,color:#0D47A1
    classDef host fill:#CFD8DC,stroke:#455A64,color:#455A64
    classDef service fill:#C8E6C9,stroke:#1B5E20,color:#1B5E20
    classDef static fill:#BBDEFB,stroke:#0D47A1,color:#0D47A1
    classDef docs fill:#FFE0B2,stroke:#E65100,color:#E65100
```
