How enerworks/portfolio works
This is a multilingual React portfolio. Visitors enter through the app shell, navigate among About, Projects, Learning, and Contact pages, and see page-specific content; Projects and Learning use separate data lists. Translation is a cross-cutting capability configured with browser-language detection and a visitor-controlled switcher. The graph follows documented and excerpted calls; Contact and Footer are included as documented shell/page features, though their implementation details were not sampled.
Main entry points: App.jsx Route shell · i18n.js i18n configuration · About.jsx About page · main.jsx React entry
Components 16
App shell
- React entry
src/main.jsx - Route shell
src/App.jsx - Navigation header
src/components/Header.jsx - Language switcher
src/components/LanguageSwitcher.jsx - Status footer
src/components/Footer.jsx
Portfolio pages
- About page
src/pages/About.jsx - Rotating intro
src/components/RotatingText.jsx - Info card
src/components/InfoCard.jsx - Projects page
src/pages/Projects.jsx - Learning page
src/pages/Learning.jsx - Contact page
src/pages/Contact.jsx
Content data
- Project list
src/data/projects.js - Learning topics
src/data/learning.js
Translations
- i18n configuration
src/i18n.js - Locale resources
src/locales
Other components
- Visitor
Connections 20
- Visitor → React entry: opens site
README.md - React entry → Route shell: renders
src/main.jsx - Route shell → Navigation header: renders
src/App.jsx - Route shell → Status footer: renders
src/App.jsx - Route shell → About page: routes to
src/App.jsx - Route shell → Projects page: routes to
src/App.jsx - Route shell → Learning page: routes to
src/App.jsx - Route shell → Contact page: routes to
src/App.jsx - Navigation header → Language switcher: renders
src/components/Header.jsx - About page → Rotating intro: renders
src/pages/About.jsx - About page → Info card: renders
src/pages/About.jsx - Projects page → Project list: reads
src/pages/Projects.jsx - Learning page → Learning topics: reads
src/pages/Learning.jsx - React entry → i18n configuration: loads
src/main.jsx - i18n configuration → Locale resources: loads resources
src/i18n.js - Language switcher → i18n configuration: changes language
- About page → i18n configuration: reads translations
- Projects page → i18n configuration: reads translations
- Learning page → i18n configuration: reads translations
- Contact page → i18n configuration: reads translations