# yuvarajsakthi/yuvi-portfolio architecture

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

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

## Overview

##### Project Type and Purpose
- This is a front-end only, static website built purely with HTML, CSS, and vanilla JavaScript (no frameworks or libraries).
- The site is a single-page application (SPA) that pulls its design from a Figma prototype and is hosted at https://yuvi.js.tnhost.in/.

##### File Structure Analysis
- Top-level files:
- index.html – entry point and SPA container
- script.js – application logic and interactivity
- style.css, animations.css, initial.css, responsive.css – styling (base, animations, resets, responsive rules)
- assets/ – images, fonts or other static media
- readme.md – project documentation
- No backend directories, configuration, or build scripts—this is purely static.

##### Key Insights from README
- Confirms “ONLY HTML, CSS AND JS AND NO THIRD PARTY LIBRARY.”
- Provides Figma design link (source of truth for UI/UX).

##### Main Components and Their Relationships
a. Client (Web Browser)
- Renders index.html
- Applies CSS (style, initial, animations, responsive)
- Executes script.js for UI behavior
b. Static Web Server / CDN
- Hosts and serves index.html, CSS files, JS file, and assets/ folder
c. External Design Source (Figma)
- Reference for UI components—no runtime integration, but informs developer workstream.

- Browser (Client)
- Static Hosting Server / CDN
- Assets (images, fonts)
- Figma (annotated as “Design Reference”)
- Flows & Interactions:
1. Browser → HTTP GET → Server: requests index.html
2. Server → HTTP 200 → Browser: returns HTML
3. Browser parses HTML and issues HTTP GETs for CSS/JS/assets
4. Server → returns CSS/JS/assets
5. Browser applies CSS rules, runs script.js, fetches design details from Figma manually (out of band)
- Architectural Patterns:
- Single-Page Application (static)
- Resource bundling via directory structure
- Responsive design handled by responsive.css

##### Technologies & Roles
- HTML5: Markup (index.html)
- CSS3: styling (style.css, animations.css, initial.css, responsive.css)
- JavaScript (ES6+): interactivity (script.js)
- Static Hosting (TNHost or similar CDN)
- Design Tool: Figma (for developer reference)

## Diagram (Mermaid)

```mermaid
flowchart TD
  subgraph "Browser (Client)"
    Browser["Web Browser"]:::client
  end

  subgraph "Static Hosting Server / CDN"
    direction TB
    Index["index.html"]:::file
    JS["script.js"]:::file
    Style["style.css"]:::file
    Initial["initial.css"]:::file
    Animations["animations.css"]:::file
    Responsive["responsive.css"]:::file
    Assets["assets/"]:::assets
    Readme["readme.md"]:::docs
  end

  Figma["Figma (Design Reference)"]:::external

  Browser -->|"HTTP GET index.html"|Index
  Index -->|"200 OK"|Browser

  Browser -->|"HTTP GET script.js"|JS
  JS -->|"200 OK"|Browser

  Browser -->|"HTTP GET style.css"|Style
  Style -->|"200 OK"|Browser

  Browser -->|"HTTP GET initial.css"|Initial
  Initial -->|"200 OK"|Browser

  Browser -->|"HTTP GET animations.css"|Animations
  Animations -->|"200 OK"|Browser

  Browser -->|"HTTP GET responsive.css"|Responsive
  Responsive -->|"200 OK"|Browser

  Browser -->|"HTTP GET assets/*"|Assets
  Assets -->|"200 OK"|Browser

  Figma -.->|"Development Reference"|Browser

  classDef client fill:#cce5ff,stroke:#004085
  classDef server fill:#e2e3e5,stroke:#6c757d
  classDef assets fill:#d4edda,stroke:#155724
  classDef external fill:#fff3cd,stroke:#856404
  classDef file fill:#f8f9fa,stroke:#6c757d
  classDef docs fill:#f5c6cb,stroke:#721c24

  class Index,JS,Style,Initial,Animations,Responsive,Readme,Assets server

  click Index "https://github.com/yuvarajsakthi/yuvi-portfolio/blob/main/index.html"
  click JS "https://github.com/yuvarajsakthi/yuvi-portfolio/blob/main/script.js"
  click Style "https://github.com/yuvarajsakthi/yuvi-portfolio/blob/main/style.css"
  click Initial "https://github.com/yuvarajsakthi/yuvi-portfolio/blob/main/initial.css"
  click Animations "https://github.com/yuvarajsakthi/yuvi-portfolio/blob/main/animations.css"
  click Responsive "https://github.com/yuvarajsakthi/yuvi-portfolio/blob/main/responsive.css"
  click Assets "https://github.com/yuvarajsakthi/yuvi-portfolio/tree/main/assets/"
  click Readme "https://github.com/yuvarajsakthi/yuvi-portfolio/blob/main/readme.md"
```
