How yashuck18-cloud/portfolio works
This repository is a personal portfolio website with an admin CMS. Visitors follow the public-page route to a portfolio assembled from profile, skills, projects, certifications, resume, GitHub, and contact sections. Admins have separate login, dashboard, and settings routes; portfolio state is loaded and edited through shared context, with browser-local persistence and Firebase realtime synchronization. Contact also submits through EmailJS. Evidence is limited to the supplied excerpts and SOURCE INDEX references; unsampled route and section internals are not inferred.
Main entry points: Portfolio.jsx Portfolio page · usePortfolioData.js Data adapter hook · PortfolioContext.jsx Portfolio state · App.jsx Route application
Components 27
App routing
- Route application
src/App.jsx
Public portfolio
- Portfolio page
src/Portfolio.jsx - Hero
src/sections/Hero.jsx - About
src/sections/About.jsx - Skills
src/sections/Skills.jsx - Projects
src/sections/Projects.jsx - Certifications
src/sections/Certifications.jsx - Resume
src/sections/Resume.jsx - GitHub section
src/sections/Github.jsx - Contact
src/sections/Contact.jsx - Footer
src/sections/Footer.jsx - Section heading
src/components/ui/SectionHeading.jsx
Portfolio admin
- Admin login
src/admin/Login.jsx - Private route
src/admin/PrivateRoute.jsx - CMS dashboard
src/admin/Dashboard.jsx - Admin settings
src/admin/Settings.jsx
Portfolio data
- Data adapter hook
src/hooks/usePortfolioData.js - Portfolio state
src/context/PortfolioContext.jsx - Default content
src/data/defaults.js - Local storage
src/utils/portfolioStorage.js - Firebase client
src/firebase.js - Static portfolio data
src/data/index.js
Other components
- Visitor
- Admin user
- EmailJS
- Browser localStorage
- Firebase Realtime Database
Connections 44
- Visitor → Route application: opens site
src/App.jsx - Admin user → Route application: opens admin
src/App.jsx - Route application → Portfolio page: routes home
src/App.jsx - Route application → Admin login: routes login
src/App.jsx - Route application → Private route: guards admin
src/App.jsx - Private route → CMS dashboard: renders protected
src/App.jsx - Private route → Admin settings: renders protected
src/App.jsx - Route application → Portfolio state: provides state
src/App.jsx - Portfolio page → Hero: renders
src/Portfolio.jsx - Portfolio page → About: renders
src/Portfolio.jsx - Portfolio page → Skills: renders
src/Portfolio.jsx - Portfolio page → Projects: renders
src/Portfolio.jsx - Portfolio page → Certifications: renders
src/Portfolio.jsx - Portfolio page → Resume: renders
src/Portfolio.jsx - Portfolio page → GitHub section: renders
src/Portfolio.jsx - Portfolio page → Contact: renders
src/Portfolio.jsx - Portfolio page → Footer: renders
src/Portfolio.jsx - Hero → Data adapter hook: reads portfolio data
src/sections/Hero.jsx - About → Data adapter hook: reads portfolio data
src/sections/About.jsx - Skills → Data adapter hook: reads portfolio data
src/sections/Skills.jsx - Projects → Data adapter hook: reads portfolio data
src/sections/Projects.jsx - Certifications → Data adapter hook: reads portfolio data
src/sections/Certifications.jsx - Resume → Data adapter hook: reads portfolio data
src/sections/Resume.jsx - GitHub section → Data adapter hook: reads portfolio data
src/sections/Github.jsx - Contact → Data adapter hook: reads portfolio data
src/sections/Contact.jsx - Data adapter hook → Portfolio state: consumes state
src/hooks/usePortfolioData.js - Contact → EmailJS: sends message
src/sections/Contact.jsx - CMS dashboard → Portfolio state: uses portfolio state
src/admin/Dashboard.jsx - CMS dashboard → Firebase client: imports database client
src/admin/Dashboard.jsx - Admin login → Firebase client: uses Firebase
src/admin/Login.jsx - Admin settings → Firebase client: uses Firebase
src/admin/Settings.jsx - Portfolio state → Firebase client: uses database client
src/context/PortfolioContext.jsx - Portfolio state → Local storage: loads and saves
src/context/PortfolioContext.jsx - Portfolio state → Default content: initializes and resets
src/context/PortfolioContext.jsx - Local storage → Default content: merges fallback
src/utils/portfolioStorage.js - Local storage → Browser localStorage: reads and writes
src/utils/portfolioStorage.js - Firebase client → Firebase Realtime Database: initializes connection
src/firebase.js - Portfolio state → Firebase Realtime Database: syncs CMS data
src/context/PortfolioContext.jsx - Certifications → Section heading: renders heading
src/sections/Certifications.jsx - About → Section heading: renders heading
src/sections/About.jsx - Skills → Section heading: renders heading
src/sections/Skills.jsx - Projects → Section heading: renders heading
src/sections/Projects.jsx - GitHub section → Section heading: renders heading
src/sections/Github.jsx - Footer → Static portfolio data: imports static data
src/sections/Footer.jsx