# pratikverma01/portfolio architecture

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

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

## Overview

##### Project Type and Purpose
- This is a single-page, static frontend portfolio website designed to showcase the developer's projects, skills, certifications, and contact options.
- The README indicates a focus on modern UI/UX, responsive design, and interactive features such as animated headlines, 3D skill cards, project carousels, and a contact form integrated with FormSubmit or EmailJS.

##### Analyzing the File Structure
- The top-level directory "Portfolio_frontend" contains the core files:
- index.html – The main HTML file that lays out the web page structure.
- styles.css – Contains CSS rules for the layout, animations, and styles like glassmorphism and parallax effects.
- script.js – The JavaScript file managing interactions (e.g., hover effects, animations, event handling for navigation and contact form).
- image_assets/ – Contains images (including resume.pdf and other personal images) used throughout the site.
- The file tree is straightforward and suggests a clean separation of content (HTML), presentation (CSS), behavior (JavaScript), and media (assets).

##### Architectural Components
a. Main Components:
- Frontend Application:
- index.html: The structure/content for the webpage.
- styles.css: Defines visual design, responsive layout, and animations.
- script.js: Implements custom interactions (animations, events, form integration).
- Image Assets:
- image_assets directory with images, the resume PDF, and other resources.
- External Integrations:
- Contact Form Service (e.g., FormSubmit or EmailJS) which receives data submitted by users.

b. Relationships and Interactions:
- The browser loads index.html, which references styles.css for styling and script.js for interactivity.
- User interactions (clicks, scrolls, form submissions) are captured by script.js; animations and transitions defined in styles.css provide a dynamic UI.
- The contact form on the page (found in index.html) connects to an external email service via a form action URL.
- The images and assets enhance both content and visual appeal.

c. Architectural Patterns and Design Principles:
- The project follows a simple static site architecture separation: Content (HTML), Presentation (CSS), and Behavior (JavaScript) – similar to an MVC pattern without a backend.
- Emphasis on responsiveness and progressive enhancement using media queries and animations in CSS.
- Use of external deployments (Vercel) as noted in the README.

d. Technologies and Frameworks:
- Core: HTML5, CSS3, JavaScript.
- Styling Effects: Flexbox, Grid, CSS animations, parallax effects.
- Deployment: Vercel.
- Optional: External form solutions like FormSubmit or EmailJS for handling contact form submissions.

## Diagram (Mermaid)

```mermaid
flowchart TD
    B["Browser"]:::browser
    HTML["index.html"]:::static
    CSS["styles.css"]:::static
    JS["script.js"]:::dynamic
    Assets["image_assets"]:::static
    Ext["Contact Form Service (FormSubmit/EmailJS)"]:::external

    B -->|"loads"| HTML
    HTML -->|"applies" | CSS
    HTML -->|"initiates" | JS
    HTML -->|"includes" | Assets
    JS -->|"handles form submission"| Ext

    click HTML "https://github.com/pratikverma01/portfolio/blob/main/Portfolio_frontend/index.html"
    click CSS "https://github.com/pratikverma01/portfolio/blob/main/Portfolio_frontend/styles.css"
    click JS "https://github.com/pratikverma01/portfolio/blob/main/Portfolio_frontend/script.js"
    click Assets "https://github.com/pratikverma01/portfolio/tree/main/Portfolio_frontend/image_assets"

    classDef static fill:#dfe9f3,stroke:#1f78b4,stroke-width:2px;
    classDef dynamic fill:#fcf3cf,stroke:#f39c12,stroke-width:2px;
    classDef external fill:#fdebd0,stroke:#e67e22,stroke-width:2px;
    classDef browser fill:#d5f5e3,stroke:#27ae60,stroke-width:2px;
```
