How brahim-r/verc1 works
This repository is a React portfolio and learning site, despite the boilerplate-focused README. A visitor enters the routed application, sees pages inside a shared layout, and can browse portfolio content, tutorials, a sitemap, and mini-games. The graph also captures theme persistence and background generation. Some page and game implementations were not excerpted, so their internal relationships are left unconnected rather than inferred.
Main entry points: App.tsx App routes · MainLayout.tsx Main layout · ProjectDetail.tsx Project detail · Sitemap.tsx Site map
Components 21
Application shell
- React entry
src/index.tsx - App routes
src/components/App.tsx - Main layout
src/layouts/MainLayout.tsx
Portfolio pages
- Home
src/pages/Home.tsx - Projects
src/pages/Projects.tsx - Project detail
src/pages/ProjectDetail.tsx - Site map
src/pages/Sitemap.tsx
Learning content
- Mini-games page
src/pages/MiniGames.tsx - OSI sorter
src/games/OSISorter.tsx - Port Blocks
src/games/PortBlocks.tsx - Terraform matcher
src/games/TerraformMatcher.tsx - Tutorials
src/pages/Tutorials.tsx - Tutorial detail
src/pages/TutorialDetail.tsx
Theme and presentation
- Theme toggle
src/components/ThemeToggle.tsx - Theme state
src/hooks/useTheme.ts - Gradient generator
src/utils/gradients.ts - Cyber shell
src/components/CyberShell.tsx - Clay card
src/components/ClayCard.tsx - Clay button
src/components/ClayButton.tsx
Other components
- Visitor
- Browser localStorage
Connections 20
- Visitor → React entry: opens site
src/index.tsx - React entry → App routes: renders
src/index.tsx - App routes → Main layout: routes through
src/components/App.tsx - App routes → Home: routes to
src/components/App.tsx - App routes → Projects: routes to
src/components/App.tsx - App routes → Project detail: routes to
src/components/App.tsx - App routes → Mini-games page: routes to
src/components/App.tsx - App routes → Tutorials: routes to
src/components/App.tsx - App routes → Tutorial detail: routes to
src/components/App.tsx - App routes → Site map: routes to
src/components/App.tsx - Main layout → Theme toggle: renders
src/layouts/MainLayout.tsx - Main layout → Theme state: reads theme
src/layouts/MainLayout.tsx - Main layout → Gradient generator: gets background
src/layouts/MainLayout.tsx - Theme toggle → Theme state: uses state
src/components/ThemeToggle.tsx - Theme state → Browser localStorage: reads and writes
src/hooks/useTheme.ts - Project detail → Cyber shell: renders
src/pages/ProjectDetail.tsx - Project detail → Clay card: renders
src/pages/ProjectDetail.tsx - Project detail → Clay button: renders
src/pages/ProjectDetail.tsx - Site map → Cyber shell: renders
src/pages/Sitemap.tsx - Site map → Clay card: renders
src/pages/Sitemap.tsx