How faiznation/portofolio-faiznation works
FaizNation is a personal portfolio site. Visitors browse profile, projects, writing, gallery, and achievements; they can also contact the owner or interact with comments. The shared layout supplies navigation and site-wide widgets, while API routes handle authentication and user/comment operations backed by Prisma. The graph follows the available tree and source index; links between routes and components are included only where the index or excerpts show them. Several content-data files and some route implementations were not supplied, so those details are not inferred.
Main entry points: layout.tsx Shared layout · db.ts Prisma database · route.ts Comments API · auth.ts Auth configuration
Components 29
Portfolio site
- Shared layout
app/layout.tsx - Home page
app/page.tsx
Portfolio content
- About page
app/about/page.tsx - Projects page
app/projects/page.tsx - Writing pages
app/writing/page.tsx - Gallery pages
app/gallery/page.tsx - Achievements page
app/achievements/page.tsx - Contact page
app/contact/page.tsx
Interactive components
- Client layout
components/ClientLayout.tsx - Navigation
components/Navbar.tsx - Footer
components/Footer.tsx - Chat widget
components/ChatWidget.tsx - Network alert
components/NetworkStatusAlert.tsx - Site search
components/SearchBar.tsx - Project card
components/ProjectCard.tsx - Gallery grid
components/GalleryGrid.tsx - Image modal
components/ImageModal.tsx - Skills tabs
components/SkillsTabs.tsx - Experience tabs
components/ExperienceTabs.tsx - Link preview
components/ui/link-preview.tsx
APIs and persistence
- Comments API
app/api/comments/route.ts - Contact API
app/api/contact/route.ts - User API
app/api/users/[id]/route.ts - Auth route
app/api/auth/[...nextauth]/route.ts - Auth configuration
lib/auth.ts - Prisma database
lib/db.ts - Email service
lib/email.ts
Other components
- Visitor
- PostgreSQL
Connections 22
- Visitor → Shared layout: opens site
app/layout.tsx - Shared layout → Client layout: wraps content
app/layout.tsx - Shared layout → Navigation: renders
app/layout.tsx - Shared layout → Footer: renders
app/layout.tsx - Shared layout → Chat widget: renders
app/layout.tsx - Shared layout → Network alert: renders
app/layout.tsx - Client layout → Shared layout: wraps children
components/ClientLayout.tsx - Home page → Link preview: renders
app/page.tsx - Navigation → Site search: renders
components/Navbar.tsx - Projects page → Project card: renders
app/projects/page.tsx - Gallery pages → Gallery grid: uses grid
- Gallery grid → Image modal: opens modal
components/GalleryGrid.tsx - Achievements page → Image modal: renders
app/achievements/page.tsx - About page → Skills tabs: renders
app/about/page.tsx - About page → Experience tabs: renders
app/about/page.tsx - Comments API → Auth configuration: checks session
app/api/comments/route.ts - Comments API → Prisma database: reads and writes
app/api/comments/route.ts - Comments API → Email service: sends reply notice
app/api/comments/route.ts - User API → Prisma database: reads user
app/api/users/[id]/route.ts - Auth route → Auth configuration: uses options
app/api/auth/[...nextauth]/route.ts - Auth configuration → Prisma database: configures adapter
lib/auth.ts - Prisma database → PostgreSQL: connects through pool
lib/db.ts