# codewithpanda28/new-portfolio architecture

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

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

## Overview

##### Main components
- Core Presentation Layer: This includes the primary HTML file (index.html), which serves as the entry point.
- Styling: The CSS file (styles.css) where all the custom styles and responsive design rules are defined.
- Scripting: The JavaScript file (script.js) handling interactivity, animations, smooth scrolling, and any dynamic content.
- Additional Pages/Components: Other HTML files such as resume.html, and subdirectories like project1, project2, and project3 may represent individual project showcases.
- External Integration: The integration with EmailJS for the contact form, as mentioned in the README.
- Deployment: A note indicating that the site is deployed on Vercel to show the live environment where the site is hosted.

##### Relationships and data flow
- The HTML file (index.html) coordinates with the CSS and JavaScript files to render the interactive and responsive user interface.
- CSS and JavaScript work together to provide modern UI effects and animations (such as smooth scrolling and dark mode).
- The JavaScript file sends user input from the contact form to EmailJS for email handling.
- Additional pages and subdirectories (project1, project2, project3, resume.html) are connected through navigation links on the main portfolio site.

##### Used technologies, libraries, and design patterns
- Design Principle: The focus is on responsive design along with smooth and interactive user experience elements.
- Deployment Pipeline: There is a clear instruction for how to run the site locally, and the deployment has been done on Vercel.
- Integration: Clearly denote the use of EmailJS for the contact form integration.

##### Final suggestions
- Every component is clearly labeled.

## Diagram (Mermaid)

```mermaid
flowchart TD
    subgraph "Vercel Deployment"
        A["Browser / Client"]:::deployment
        B["index.html"]:::html
        A -->|"loads"| B
        B -->|"includes"| C["styles.css"]:::css
        B -->|"includes"| D["script.js"]:::js
        B -->|"loads"| E["assets folder"]:::assets
        E -->|"contains"| F["resume.pdf"]:::assets
        B -->|"navigates to"| G["resume.html"]:::page
        B -->|"navigates to"| H["project1"]:::page
        B -->|"navigates to"| I["project2"]:::page
        B -->|"navigates to"| J["project3"]:::page
        D -->|"submitsFormTo"| K["EmailJS Service"]:::email
    end

    click B "https://github.com/codewithpanda28/new-portfolio/blob/main/index.html"
    click C "https://github.com/codewithpanda28/new-portfolio/blob/main/styles.css"
    click D "https://github.com/codewithpanda28/new-portfolio/blob/main/script.js"
    click E "https://github.com/codewithpanda28/new-portfolio/tree/main/assets/"
    click F "https://github.com/codewithpanda28/new-portfolio/blob/main/assets/resume.pdf"
    click G "https://github.com/codewithpanda28/new-portfolio/blob/main/resume.html"
    click H "https://github.com/codewithpanda28/new-portfolio/tree/main/project1"
    click I "https://github.com/codewithpanda28/new-portfolio/tree/main/project2"
    click J "https://github.com/codewithpanda28/new-portfolio/tree/main/project3"

    classDef html fill:#ffefba,stroke:#e0a800,stroke-width:2px;
    classDef css fill:#d0e6a5,stroke:#7dcea0,stroke-width:2px;
    classDef js fill:#abd1c6,stroke:#248f8d,stroke-width:2px;
    classDef assets fill:#f7c6c7,stroke:#c0392b,stroke-width:2px;
    classDef page fill:#f9e79f,stroke:#b7950b,stroke-width:2px;
    classDef email fill:#fadbd8,stroke:#e74c3c,stroke-width:2px;
    classDef deployment fill:#d6eaf8,stroke:#3498db,stroke-width:2px;
```
