How f-wafa/portfolio works
This is a personal portfolio and publishing site: visitors move from the home page’s profile and work sections to project case studies, a dated Notes log, the CV, and contact links. GitHub-backed repository, activity, language, and contribution data enriches the Work and GitHub displays and powers embeddable SVG cards; hourly caching and fallback snapshots keep those views resilient. The README documents these capabilities, while sampled source confirms the home-page composition, RSS generation, SVG rendering dependencies, and snippet demo behavior. Several route and presentation details are documented but their source was not sampled.
Main entry points: page.tsx Home Page · github.ts GitHub Data Service · project-row.tsx Project Rows · readme-svg.ts SVG Renderer
Components 32
Portfolio Site
- Home Page
src/app/(site)/page.tsx - Hero Scene
src/components/hero/hero-scene.tsx - About Section
src/components/about-section.tsx - Now Strip
src/components/now-strip.tsx - Contact Section
src/components/contact-section.tsx - Contact Form
src/components/contact-form.tsx - Printable CV
src/app/cv/page.tsx - Links Page
src/app/links/page.tsx
Work and Notes
- Work Section
src/components/projects/projects-section.tsx - Project Rows
src/components/projects/project-row.tsx - Case Studies
src/app/(site)/work/[slug]/page.tsx - Case Study Content
src/content/case-studies.ts - Snippet Demo
src/components/projects/snippet-demo.tsx - Snippet Builder
src/lib/snippet.ts - Notes Index
src/app/(site)/notes/page.tsx - Note Pages
src/app/(site)/notes/[slug]/page.tsx - Notes Content
src/content/notes.ts - RSS Feed
src/app/notes/rss.xml/route.ts
GitHub Insights
- GitHub Section
src/components/github-section.tsx - GitHub Data Service
src/lib/github.ts - GitHub Services
- README SVG Routes
src/app/readme/stats.svg/route.ts - Language Card Route
src/app/readme/languages.svg/route.ts - Streak Card Route
src/app/readme/streak.svg/route.ts - SVG Renderer
src/lib/readme-svg.ts
Shared Content and UI
- Profile Content
src/content/profile.ts - Project Metadata
src/content/projects.ts - Shared Content Blocks
src/content/blocks.ts - Prose Renderer
src/components/prose-blocks.tsx - Tool Index
src/content/tool-index.ts - Language Slices
src/lib/language-slices.ts
Other components
- Visitor
Connections 39
- Visitor → Home Page: opens
README.md - Visitor → Printable CV: opens
README.md - Visitor → Links Page: opens
README.md - Home Page → Hero Scene: renders
src/app/(site)/page.tsx - Home Page → About Section: renders
src/app/(site)/page.tsx - Home Page → Now Strip: renders
src/app/(site)/page.tsx - Home Page → Work Section: renders
src/app/(site)/page.tsx - Home Page → GitHub Section: renders
src/app/(site)/page.tsx - Home Page → Contact Section: renders
src/app/(site)/page.tsx - About Section → Profile Content: reads
src/components/about-section.tsx - Contact Section → Contact Form: renders
src/components/contact-section.tsx - Contact Section → Profile Content: reads
src/components/contact-section.tsx - Links Page → Profile Content: reads
src/app/links/page.tsx - Home Page → Printable CV: links to
README.md - Work Section → Project Rows: renders
README.md - Project Rows → Project Metadata: reads
src/components/projects/project-row.tsx - Project Rows → GitHub Data Service: loads repository data
README.md - Project Rows → Case Study Content: matches studies
src/components/projects/project-row.tsx - Visitor → Case Studies: opens
README.md - Case Studies → Case Study Content: reads
src/app/(site)/work/[slug]/page.tsx - Case Studies → Prose Renderer: renders
src/app/(site)/work/[slug]/page.tsx - Prose Renderer → Shared Content Blocks: renders blocks
src/components/prose-blocks.tsx - Snippet Demo → Snippet Builder: builds snippet
src/components/projects/snippet-demo.tsx - Visitor → Notes Index: opens
README.md - Notes Index → Notes Content: reads
src/app/(site)/notes/page.tsx - Notes Index → Note Pages: links to
README.md - Note Pages → Notes Content: reads
src/app/(site)/notes/[slug]/page.tsx - Note Pages → Prose Renderer: renders
src/app/(site)/notes/[slug]/page.tsx - RSS Feed → Notes Content: reads
src/app/notes/rss.xml/route.ts - GitHub Section → GitHub Data Service: loads cached data
README.md - GitHub Data Service → GitHub Services: requests
src/lib/github.ts - README SVG Routes → GitHub Data Service: loads cached data
src/app/readme/stats.svg/route.ts - Language Card Route → GitHub Data Service: loads cached data
src/app/readme/languages.svg/route.ts - Streak Card Route → GitHub Data Service: loads cached data
src/app/readme/streak.svg/route.ts - README SVG Routes → SVG Renderer: renders card
src/app/readme/stats.svg/route.ts - Language Card Route → SVG Renderer: renders card
src/app/readme/languages.svg/route.ts - Streak Card Route → SVG Renderer: renders card
src/app/readme/streak.svg/route.ts - SVG Renderer → Language Slices: groups languages
src/lib/readme-svg.ts - GitHub Section → Tool Index: shows tools