# sivaxreddy/personal-website architecture

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

- Interactive diagram: https://gitdiagram.com/sivaxreddy/personal-website
- Repository: https://github.com/sivaxreddy/personal-website

## Overview

##### Project Type and Purpose
- The project is a personal website that hosts a variety of static pages (e.g., home, fun, projects, about). The README ("Personal-Website – Where i play") indicates that this is a playful, exploratory website for personal use.
- The site is built using static HTML, CSS, and JavaScript. It includes directories dedicated to different content types (e.g., Fun, Projects, Pics, docs) and file assets for styling (main.css) and functionality (func.js).

##### Analyzing the File Structure
- Top-level files and directories include:
- HTML pages: index.html, me.html, Fun/timerapp.html, Projects/projects.html.
- Assets: main.css in the 'main' directory (likely styling for the site) and func.js (JavaScript).
- Static assets: Pics directory for images, docs for documentation (with its own CNAME file, indicating possible subdomain or domain mapping).
- Configuration/Platform: .replit, replit.nix for deployment or local environment configuration and CNAME files (which show custom domain setup).
- The structure is relatively flat; it appears that the site uses separate directories to organize content and media. No backend components or dynamic server-side logic is evident, which reinforces that this is a static (frontend-only) website.

## Diagram (Mermaid)

```mermaid
graph TD
    UserBrowser["User Browser"]:::browser

    subgraph "Static Pages"
        homepage["Homepage (index.html)"]:::html
        about["About Page (me.html)"]:::html
        fun["Fun Section (Fun/timerapp.html)"]:::html
        projects["Projects Section (Projects/projects.html)"]:::html
    end

    subgraph "Shared Assets"
        css["CSS (main.css)"]:::asset
        js["JavaScript (func.js)"]:::asset
    end

    pics["Media Assets (Pics)"]:::asset

    subgraph "Documentation & Domain Setup"
        docsDir["Documentation (docs)"]:::doc
        docsCNAME["Docs CNAME (/docs/CNAME)"]:::doc
    end

    subgraph "Deployment/Configuration Files"
        replit[".replit"]:::config
        nix["replit.nix"]:::config
        deployCNAME["CNAME (deploy)"]:::config
    end

    %% Connections from User Browser to static pages and documentation
    UserBrowser -->|"requests"| homepage
    UserBrowser -->|"requests"| about
    UserBrowser -->|"requests"| fun
    UserBrowser -->|"requests"| projects
    UserBrowser -->|"accesses"| docsDir

    %% Connections from static pages to shared assets and media
    homepage -->|"loads"| css
    homepage -->|"loads"| js
    homepage -->|"references"| pics

    about -->|"loads"| css
    about -->|"loads"| js
    about -->|"references"| pics

    fun -->|"loads"| css
    fun -->|"loads"| js
    fun -->|"references"| pics

    projects -->|"loads"| css
    projects -->|"loads"| js
    projects -->|"references"| pics

    %% Internal connection within Documentation group
    docsDir -->|"includes"| docsCNAME

    %% Class Definitions
    classDef browser fill:#FFEB3B,stroke:#F57F17,stroke-width:2px;
    classDef html fill:#BBDEFB,stroke:#0D47A1,stroke-width:2px;
    classDef asset fill:#C8E6C9,stroke:#2E7D32,stroke-width:2px;
    classDef doc fill:#D1C4E9,stroke:#5E35B1,stroke-width:2px;
    classDef config fill:#FFCDD2,stroke:#C62828,stroke-width:2px;

click homepage "https://github.com/sivaxreddy/personal-website/blob/main//index.html"
click about "https://github.com/sivaxreddy/personal-website/blob/main//me.html"
click fun "https://github.com/sivaxreddy/personal-website/blob/main//Fun/timerapp.html"
click projects "https://github.com/sivaxreddy/personal-website/blob/main//Projects/projects.html"
click css "https://github.com/sivaxreddy/personal-website/blob/main//main/main.css"
click js "https://github.com/sivaxreddy/personal-website/blob/main//func.js"
click pics "https://github.com/sivaxreddy/personal-website/tree/main//Pics"
click docsDir "https://github.com/sivaxreddy/personal-website/tree/main//docs"
click docsCNAME "https://github.com/sivaxreddy/personal-website/tree/main//docs/CNAME"
click replit "https://github.com/sivaxreddy/personal-website/blob/main//.replit"
click nix "https://github.com/sivaxreddy/personal-website/blob/main//replit.nix"
click deployCNAME "https://github.com/sivaxreddy/personal-website/tree/main//CNAME"
```
