How kelvin0012/my-website works
This repository is a React portfolio with two hash-routed experiences: a professional work site and a themed Play site. A visitor enters through the app shell, chooses or opens a mode, and views its content; the Work site presents profile, experience, projects, skills and contact, while Play presents a boot sequence, game-inspired lessons and an inspiration wall. Shared routing, scroll/reveal effects and interactive presentation support both. The graph follows shown imports and calls; unsampled areas are represented only where the README documents their capabilities.
Main entry points: PlaySite.jsx Play site · ProSite.jsx Work site · App.jsx App shell · Journey.jsx Lessons journey
Components 21
App entry and routing
- App shell
src/App.jsx - Hash router
src/shared/Router.jsx - React entry
src/main.jsx
Work portfolio
- Work site
src/pro/ProSite.jsx - Professional content
src/data/professional.js
Play experience
- Play site
src/play/PlaySite.jsx - Boot screen
src/play/Boot.jsx - Particle hero
src/play/Particles.jsx - Lessons journey
src/play/Journey.jsx - Interactive widgets
src/play/Widgets.jsx - Game glyphs
src/play/Glyphs.jsx - Play content
src/data/hobbies.js - Inspiration wall
src/play/KeepGoing.jsx - Wall images
src/assets/inspiration - Image descriptions
src/data/inspiration.js
Shared presentation
- Scroll effects
src/hooks/useScroll.js - Reveal effects
src/hooks/useRevealAll.js - Custom cursor
src/shared/Cursor.jsx - Tilt interaction
src/shared/Tilt.jsx - Icon set
src/shared/Icons.jsx
Other components
- Visitor
Connections 29
- Visitor → React entry: opens site
README.md - React entry → App shell: mounts
src/main.jsx - App shell → Hash router: uses routing
src/App.jsx - App shell → Custom cursor: renders
src/App.jsx - App shell → Work site: renders work
src/App.jsx - App shell → Play site: loads play
src/App.jsx - Visitor → Hash router: selects mode
src/shared/Router.jsx - Work site → Professional content: reads content
src/pro/ProSite.jsx - Work site → Scroll effects: tracks sections
src/pro/ProSite.jsx - Work site → Reveal effects: reveals content
src/pro/ProSite.jsx - Work site → Hash router: switches mode
src/pro/ProSite.jsx - Work site → Tilt interaction: uses tilt
src/pro/ProSite.jsx - Work site → Icon set: renders icons
src/pro/ProSite.jsx - Play site → Boot screen: shows boot
src/play/PlaySite.jsx - Play site → Particle hero: renders hero
src/play/PlaySite.jsx - Play site → Lessons journey: renders journey
src/play/PlaySite.jsx - Play site → Inspiration wall: renders wall
src/play/PlaySite.jsx - Play site → Play content: reads player data
src/play/PlaySite.jsx - Play site → Scroll effects: tracks sections
src/play/PlaySite.jsx - Play site → Reveal effects: reveals content
src/play/PlaySite.jsx - Play site → Hash router: switches mode
src/play/PlaySite.jsx - Lessons journey → Play content: reads lessons
src/play/Journey.jsx - Lessons journey → Scroll effects: updates progress
src/play/Journey.jsx - Lessons journey → Interactive widgets: renders widgets
src/play/Journey.jsx - Lessons journey → Game glyphs: renders glyphs
src/play/Journey.jsx - Inspiration wall → Play content: reads quotes
src/play/KeepGoing.jsx - Inspiration wall → Image descriptions: reads descriptions
src/play/KeepGoing.jsx - Inspiration wall → Wall images: loads images
src/play/KeepGoing.jsx - Inspiration wall → Tilt interaction: uses tilt
src/play/KeepGoing.jsx