# phogat007/luffy architecture

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

- Interactive diagram: https://gitdiagram.com/phogat007/luffy
- Repository: https://github.com/phogat007/luffy

## Overview

##### Project Type and Purpose
- This is a single-page front-end portfolio website built with React.js.
- It showcases the author’s skills, projects and uses smooth animations (Framer Motion), scroll effects (Locomotive Scroll), and particle backgrounds (React-Tsparticles).

##### File Structure
- Top-level
- public/: static HTML (index.html), manifest and robots.txt
- src/: all React code and assets
- src/
- components/: page-level React components (AboutPage, BlogPage, WorkPage, MySkillsPage, Intro, Main)
- subComponents/: reusable UI bits (Anchor, Card, ParticleComponent, PowerButton, SoundBar, SocialIcons, LogoComponent, BigTitle)
- assets/: images, SVGs, audio files
- data/: static data modules (BlogData.js, WorkData.js)
- config/: JSON configs for particle effects
- globalStyles.js, App.css, index.css: styling layers
- index.js: application entry point & React Router setup
- App.js: root component that ties together routing and layout
- Config and tooling files
- package.json / package-lock.json: dependencies (React, Framer Motion, Locomotive Scroll, Styled-Components, React Router, React-Tsparticles)
- README.md: high-level description and setup instructions

##### README for Additional Insights
- Key features: modern responsive design, dynamic animations, smooth scrolling
- Tech stack: confirms usage of React ecosystem libraries
- No backend or API layer—application is entirely client-side

## Diagram (Mermaid)

```mermaid
graph TD
    User["User"]:::user
    Browser["Browser/DOM"]:::browser

    User --> Browser

    subgraph "Browser Side"
        ReactApp["React Application (SPA)"]:::app
        Router["Routing Layer (React Router)"]:::router

        subgraph "Page Components"
            About["AboutPage"]:::page
            Blog["BlogPage"]:::page
            Work["WorkPage"]:::page
            Skills["MySkillsPage"]:::page
            Intro["Intro"]:::page
            Main["Main"]:::page
        end

        subgraph "Sub-Components"
            Anchor["Anchor"]:::subcomp
            BigTitle["BigTitle"]:::subcomp
            Card["Card"]:::subcomp
            Logo["LogoComponent"]:::subcomp
            ParticleComp["ParticleComponent"]:::subcomp
            PowerBtn["PowerButton"]:::subcomp
            SoundBar["SoundBar"]:::subcomp
            Social["SocialIcons"]:::subcomp
        end

        subgraph "Data, Assets & Config"
            BlogData["BlogData"]:::data
            WorkData["WorkData"]:::data
            Images["Images (src/assets/Images/)"]:::assets
            Audio["Audio (Binks.mp3)"]:::assets
            SVGs["SVGs"]:::assets
            ParticleLight["particlesjs-config-light.json"]:::config
            ParticleDefault["particlesjs-config.json"]:::config
        end

        subgraph "Third-Party Libraries"
            Framer["Framer Motion"]:::lib
            Locomotive["Locomotive Scroll"]:::lib
            Tsparticles["React-Tsparticles"]:::lib
            StyledComp["Styled-Components"]:::lib
        end

        ReactApp --> Router
        Router --> About
        Router --> Blog
        Router --> Work
        Router --> Skills
        Router --> Intro
        Router --> Main

        About --> Anchor
        Blog --> Card
        Work --> Card
        Skills --> BigTitle
        Intro --> Logo
        Main --> ParticleComp

        Anchor --> Framer
        Card --> Framer
        BigTitle --> Framer
        Logo --> Framer
        ParticleComp --> Tsparticles
        PowerBtn --> Locomotive
        SoundBar --> Locomotive
        Social --> Framer

        ReactApp --> BlogData
        ReactApp --> WorkData
        ReactApp --> Images
        ReactApp --> Audio
        ReactApp --> SVGs
        ReactApp --> ParticleLight
        ReactApp --> ParticleDefault

        ReactApp --> StyledComp
    end

    npm["npm Build (webpack)"]:::build
    CDN["Static Host / CDN"]:::cloud

    ReactApp --> npm
    npm --> CDN

    click ReactApp "https://github.com/phogat007/luffy/blob/main/src/index.js"
    click ReactApp "https://github.com/phogat007/luffy/blob/main/src/App.js"
    click Router "https://github.com/phogat007/luffy/blob/main/src/index.js"
    click Router "https://github.com/phogat007/luffy/blob/main/src/App.js"
    click About "https://github.com/phogat007/luffy/blob/main/src/components/AboutPage.js"
    click Blog "https://github.com/phogat007/luffy/blob/main/src/components/BlogPage.js"
    click Work "https://github.com/phogat007/luffy/blob/main/src/components/WorkPage.js"
    click Skills "https://github.com/phogat007/luffy/blob/main/src/components/MySkillsPage.js"
    click Intro "https://github.com/phogat007/luffy/blob/main/src/components/Intro.js"
    click Main "https://github.com/phogat007/luffy/blob/main/src/components/Main.js"
    click Anchor "https://github.com/phogat007/luffy/blob/main/src/subComponents/Anchor.js"
    click BigTitle "https://github.com/phogat007/luffy/blob/main/src/subComponents/BigTitlte.js"
    click Card "https://github.com/phogat007/luffy/blob/main/src/subComponents/Card.js"
    click Logo "https://github.com/phogat007/luffy/blob/main/src/subComponents/LogoComponent.js"
    click ParticleComp "https://github.com/phogat007/luffy/blob/main/src/subComponents/ParticleComponent.js"
    click PowerBtn "https://github.com/phogat007/luffy/blob/main/src/subComponents/PowerButton.js"
    click SoundBar "https://github.com/phogat007/luffy/blob/main/src/subComponents/SoundBar.js"
    click Social "https://github.com/phogat007/luffy/blob/main/src/subComponents/SocialIcons.js"
    click BlogData "https://github.com/phogat007/luffy/blob/main/src/data/BlogData.js"
    click WorkData "https://github.com/phogat007/luffy/blob/main/src/data/WorkData.js"
    click Images "https://github.com/phogat007/luffy/tree/main/src/assets/Images/"
    click Audio "https://github.com/phogat007/luffy/blob/main/src/assets/audio/Binks.mp3"
    click SVGs "https://github.com/phogat007/luffy/tree/main/src/assets/svg/"
    click ParticleLight "https://github.com/phogat007/luffy/blob/main/src/config/particlesjs-config-light.json"
    click ParticleDefault "https://github.com/phogat007/luffy/blob/main/src/config/particlesjs-config.json"
    classDef user fill:#AEDFF7,stroke:#036,stroke-width:1px
    classDef browser fill:#E0F7FA,stroke:#006,stroke-width:1px
    classDef app fill:#BBDEFB,stroke:#0D47A1,stroke-width:1px
    classDef router fill:#90CAF9,stroke:#0D47A1,stroke-width:1px
    classDef page fill:#64B5F6,stroke:#0D47A1,stroke-width:1px
    classDef subcomp fill:#C8E6C9,stroke:#2E7D32,stroke-width:1px
    classDef data fill:#FFF9C4,stroke:#F9A825,stroke-width:1px
    classDef assets fill:#FFE0B2,stroke:#EF6C00,stroke-width:1px
    classDef config fill:#FFF59D,stroke:#FBC02D,stroke-width:1px
    classDef lib fill:#E1BEE7,stroke:#6A1B9A,stroke-width:1px
    classDef build fill:#CFD8DC,stroke:#455A64,stroke-width:1px
    classDef cloud fill:#E0E0E0,stroke:#757575,stroke-width:1px,stroke-dasharray:5 5
```
