How shrivastvaryan/portfolio works
This is a personal portfolio and blog: visitors browse the landing page and its portfolio, experience, and about content, then can read Sanity-published blog posts or view the resume. Editors publish posts through the embedded Sanity studio; a configured webhook refreshes the blog after changes. The graph includes documented GitHub contribution activity and the main UI components. Some source was not excerpted, so uncertain implementation links are omitted rather than inferred.
Main entry points: app/page.tsx Home route · posts.ts Post data access · [[...tool]]/page.tsx Sanity studio · PortfolioCaraousel.tsx Portfolio carousel
Components 29
Portfolio experience
- Home route
src/app/page.tsx - Portfolio hero
src/app/components/Home/page.tsx - Portfolio carousel
src/app/components/Home/PortfolioCaraousel.tsx - Experience section
src/app/components/Home/Experience.tsx - Tech stack data
src/app/components/Home/techStackData.tsx - About page
src/app/about/page.tsx - Resume component
src/app/components/Resume/resume.tsx
Blog publishing
- Blog index
src/app/blog/page.tsx - Blog article
src/app/blog/[slug]/page.tsx - Post queries
src/sanity/lib/queries.ts - Post data access
src/sanity/lib/posts.ts - Sanity client
src/sanity/lib/client.ts - Image URL builder
src/sanity/lib/image.ts - Sanity studio
src/app/studio/[[...tool]]/page.tsx - Post schema
sanity.config.ts - Revalidation endpoint
src/app/api/revalidate/route.ts
Shared presentation
- Site footer
src/app/components/Footer/Footer.tsx - GitHub activity
src/app/components/Footer/GitHubActivity.tsx - Scroll reveal
src/app/components/ScrollReveal.tsx - Target cursor
src/components/TargetCursor.tsx - Cursor styles
src/components/TargetCursor.css - Carousel controls
src/components/ui/carousel.tsx - Button component
src/components/ui/button.tsx - Class utilities
src/lib/utils.ts
External integrations
- GitHub activity API
src/app/api/github-activity/route.ts - Sanity service
- GitHub
Other components
- Visitor
- Content editor
Connections 30
- Visitor → Home route: opens
src/app/page.tsx - Home route → Portfolio hero: renders
src/app/page.tsx - Home route → Portfolio carousel: renders
src/app/page.tsx - Home route → Experience section: renders
src/app/page.tsx - Home route → Target cursor: renders
src/app/page.tsx - Portfolio carousel → Tech stack data: uses data
src/app/components/Home/PortfolioCaraousel.tsx - Portfolio carousel → Scroll reveal: uses
src/app/components/Home/PortfolioCaraousel.tsx - Visitor → About page: opens
src/app/about/page.tsx - Visitor → Blog index: opens
src/app/blog/page.tsx - Blog index → Post data access: fetches posts
src/app/blog/page.tsx - Blog article → Post data access: fetches post
src/app/blog/[slug]/page.tsx - Blog article → Image URL builder: builds image URL
src/app/blog/[slug]/page.tsx - Post data access → Sanity client: fetches content
src/sanity/lib/posts.ts - Post data access → Post queries: uses queries
src/sanity/lib/posts.ts - Image URL builder → Sanity client: uses client
src/sanity/lib/image.ts - Visitor → Sanity studio: opens
README.md - Sanity studio → Post schema: loads config
src/app/studio/[[...tool]]/page.tsx - Content editor → Sanity studio: edits posts
README.md - Sanity studio → Sanity service: publishes posts
README.md - Sanity service → Revalidation endpoint: sends webhook
README.md - Revalidation endpoint → Blog index: refreshes
README.md - Revalidation endpoint → Blog article: refreshes affected
README.md - Site footer → GitHub activity: renders
src/app/components/Footer/Footer.tsx - Visitor → GitHub activity: views activity
README.md - Carousel controls → Button component: uses
src/components/ui/carousel.tsx - Carousel controls → Class utilities: uses
src/components/ui/carousel.tsx - Button component → Class utilities: uses
src/components/ui/button.tsx - Target cursor → Cursor styles: imports styles
src/components/TargetCursor.tsx - GitHub → GitHub activity: provides contribution data
README.md - GitHub → GitHub activity API: provides optional exact totals