How md-tuhin-hasnat/portfolio works
This is a personal portfolio site with profile, experience, education, project, and blog sections, plus an AI question-answering chat and a Sanity-backed content studio. The main visitor workflow is browsing portfolio or editorial pages; a separate chat workflow sends a question with context to an AI flow and displays its response. Edges rely on the provided excerpts and SOURCE INDEX; unsampled implementation details and integrations are left unconnected where their wiring is not shown.
Main entry points: client.js Sanity client · section-heading.jsx Section heading · experience/page.jsx Experience page · projects/page.jsx Project archive
Components 21
Portfolio pages
- Profile home
app/page.jsx - Experience page
app/experience/page.jsx - Education page
app/education/page.jsx - Project archive
app/projects/page.jsx - Blog listing
app/blog/page.jsx - Blog article
app/blog/[slug]/page.jsx - Profile sections
components/custom/about-me - Experience sections
components/custom/experiences - Experience timeline
components/custom/experiences/timeline.jsx
Content management
- Sanity client
sanity/client.js - Content schemas
sanity/schemas - Sanity studio
app/studio/[[...index]]/page.jsx
AI assistant
- Ask AI page
app/askai/page.jsx - Chat interface
components/chat.jsx - Usage limits
hooks/use-usage-limit.js - Context answer flow
ai/flows/answer-question-with-context.js - Genkit setup
ai/genkit.js
Shared presentation
- Rich text renderer
components/custom/reusable/rich-text-renderer.jsx - Section heading
components/custom/reusable/section-heading.jsx
Other components
- Visitor
- Sanity CMS
Connections 23
- Profile home → Profile sections: renders
app/page.jsx - Profile home → Section heading: renders
app/page.jsx - Experience page → Experience sections: renders
app/experience/page.jsx - Experience page → Experience timeline: renders
app/experience/page.jsx - Experience page → Section heading: renders
app/experience/page.jsx - Education page → Sanity client: fetches from
app/education/page.jsx - Education page → Section heading: renders
app/education/page.jsx - Project archive → Sanity client: fetches from
app/projects/page.jsx - Project archive → Rich text renderer: renders
app/projects/page.jsx - Project archive → Section heading: renders
app/projects/page.jsx - Blog listing → Sanity client: fetches from
app/blog/page.jsx - Blog listing → Section heading: renders
app/blog/page.jsx - Blog article → Sanity client: fetches from
app/blog/[slug]/page.jsx - Blog article → Rich text renderer: renders
app/blog/[slug]/page.jsx - Experience timeline → Sanity client: fetches from
components/custom/experiences/timeline.jsx - Sanity studio → Content schemas: configures
- Sanity client → Sanity CMS: queries
- Ask AI page → Chat interface: renders
app/askai/page.jsx - Chat interface → Context answer flow: submits question
components/chat.jsx - Chat interface → Usage limits: checks limits
components/chat.jsx - Context answer flow → Genkit setup: defines flow with
ai/flows/answer-question-with-context.js - Visitor → Profile home: browses
- Visitor → Ask AI page: asks questions