How rodak123/portfolio-web works
This is a personal portfolio website: visitors move from the home page to portfolio details or a browsable project collection, with contact links and external project destinations. The router selects pages; shared layout and visual components render them. Project metadata is assembled into an ordered catalog used by the projects view. Theme and responsive behavior are supporting UI layers. The graph follows documented routes and imports visible in the supplied excerpts and SOURCE INDEX; unsampled project-page and theme-provider wiring is therefore limited.
Main entry points: MainPage.tsx Home page · router.tsx Route table · PortfolioPage.tsx Portfolio page · ProjectsPage.tsx Projects page
Components 25
App entry and routes
- App entry
src/main.tsx - Route table
src/router.tsx - Route paths
src/config.ts
Visitor pages
- Home page
src/ui/pages/MainPage.tsx - Portfolio page
src/ui/pages/PortfolioPage.tsx - Projects page
src/ui/pages/ProjectsPage.tsx - Error page
src/ui/pages/ErrorPage.tsx - Project detail page
src/ui/pages/ProjectPage.tsx
Project content
- Project catalog
src/data/projects.ts - Project model
src/data/utils/project.ts - Project records
src/data/projects
Shared presentation
- Default layout
src/ui/pages/layouts/DefaultLayout.tsx - Hero composition
src/ui/components/Hero.tsx - Project masonry
src/ui/components/Masonry.tsx - Contact links
src/ui/components/Contacts.tsx - Typography
src/ui/components/Typography.tsx - Buttons
src/ui/components/Button.tsx - Title and link
src/ui/components/TitleAndLink.tsx - Typed text
src/ui/components/TextType.tsx - Shape grid
src/ui/components/ShapeGrid.tsx
UI state
- Theme provider
src/libs/providers/ThemeProvider.tsx - Theme context
src/libs/context/ThemeContext.tsx - Responsive hook
src/libs/hooks/useResponsive.tsx - Media query hook
src/libs/hooks/useMediaQuery.tsx
Other components
- Website visitor
Connections 29
- Website visitor → Route table: navigates
src/router.tsx - App entry → Route table: mounts routes
src/main.tsx - App entry → Theme provider: wraps app
src/main.tsx - Route table → Route paths: uses paths
src/router.tsx - Route table → Home page: routes to
src/router.tsx - Route table → Portfolio page: routes to
src/router.tsx - Route table → Projects page: routes to
src/router.tsx - Route table → Error page: handles errors
src/router.tsx - Home page → Default layout: renders within
src/ui/pages/MainPage.tsx - Portfolio page → Default layout: renders within
src/ui/pages/PortfolioPage.tsx - Projects page → Default layout: renders within
src/ui/pages/ProjectsPage.tsx - Error page → Default layout: renders within
src/ui/pages/ErrorPage.tsx - Home page → Hero composition: renders
src/ui/pages/MainPage.tsx - Portfolio page → Hero composition: renders
src/ui/pages/PortfolioPage.tsx - Projects page → Project masonry: renders
src/ui/pages/ProjectsPage.tsx - Projects page → Project catalog: reads catalog
src/ui/pages/ProjectsPage.tsx - Project catalog → Project records: assembles
src/data/projects.ts - Project catalog → Project model: types entries
src/data/projects.ts - Home page → Contact links: renders
src/ui/pages/MainPage.tsx - Home page → Typed text: renders
src/ui/pages/MainPage.tsx - Home page → Buttons: renders
src/ui/pages/MainPage.tsx - Home page → Responsive hook: checks layout
src/ui/pages/MainPage.tsx - Hero composition → Shape grid: renders
src/ui/components/Hero.tsx - Hero composition → Responsive hook: checks layout
src/ui/components/Hero.tsx - Project masonry → Typography: renders
src/ui/components/Masonry.tsx - Portfolio page → Title and link: renders
src/ui/pages/PortfolioPage.tsx - Theme provider → Theme context: provides state
src/libs/providers/ThemeProvider.tsx - Responsive hook → Media query hook: calls
src/libs/hooks/useResponsive.tsx - Project detail page → Project catalog: looks up project