How piyushgarg-dev/piyushgargdev-nextjs works
This is a personal portfolio and developer-education site built with Next.js. Visitors browse the home page’s profile, YouTube, courses, testimonials, terminal, and contact sections; separate routes expose gear and project details, plus short-URL pages. Contact submissions reach an API route, while authentication uses a MongoDB adapter. The graph follows explicit imports and calls in the supplied excerpts and SOURCE INDEX; some listed UI modules or capabilities are not rendered in the sampled home-page JSX, so no runtime connections to them are inferred.
Main entry points: index.js Home page · Layout.jsx Shared layout · Courses.jsx Courses section · Testimonial.jsx Testimonials section
Components 32
Site experience
- Shared layout
components/Layout/Layout.jsx - Navigation and auth
components/Header/Header.jsx - Site footer
components/Footer/Footer.jsx - Hero section
components/UI/Hero.jsx - YouTube section
components/UI/Services.jsx - YouTube stats item
components/UI/ServicesItem.jsx - Courses section
components/UI/Courses.jsx - Testimonials section
components/UI/Testimonial.jsx - Interactive terminal
components/UI/Terminal.jsx - Contact section
components/UI/Contact.jsx - Contact form
components/UI/Form.jsx - Section subtitle
components/UI/SectionSubtitle.jsx
Portfolio content
- Portfolio card
components/UI/PortfolioItem.jsx - Blog section
components/UI/Blog.jsx - Course data
components/data/courses.js - Gear data
components/data/gears.js - Project data
components/data/projects.js - Testimonial data
components/data/testimonial.js - YouTube fallbacks
components/data/youtubeDefault.js - Short URL data
components/data/urls.js
Pages and APIs
- Home page
pages/index.js - App layout setup
pages/_app.js - Gear listing
pages/gears.js - Project detail
pages/projects/[slug].jsx - Short URL page
pages/url/[slug].jsx - Sitemap route
pages/sitemap.xml.js - Contact API
pages/api/contact.js - Authentication API
pages/api/auth/[...nextauth].js
External services
- MongoDB adapter
lib/mongodbAdapter.js - YouTube API
- MongoDB
Other components
- Visitor
Connections 30
- Visitor → Home page: visits
pages/index.js - App layout setup → Shared layout: wraps pages
pages/_app.js - Shared layout → Navigation and auth: renders
components/Layout/Layout.jsx - Shared layout → Site footer: renders
components/Layout/Layout.jsx - Home page → Hero section: renders
pages/index.js - Home page → YouTube section: renders
pages/index.js - Home page → Courses section: renders
pages/index.js - Home page → Testimonials section: renders
pages/index.js - Home page → Interactive terminal: renders
pages/index.js - Home page → Contact section: renders
pages/index.js - Home page → Course data: loads
pages/index.js - Home page → Testimonial data: loads
pages/index.js - Home page → YouTube fallbacks: uses fallback
pages/index.js - Home page → YouTube API: fetches channel data
pages/index.js - Home page → YouTube API: fetches videos
pages/index.js - YouTube section → YouTube stats item: renders
components/UI/Services.jsx - Courses section → Section subtitle: renders
components/UI/Courses.jsx - Courses section → Portfolio card: renders
components/UI/Courses.jsx - Testimonials section → Section subtitle: renders
components/UI/Testimonial.jsx - Testimonials section → Home page: receives feedback
pages/index.js - Contact section → Contact form: imports
components/UI/Contact.jsx - Contact section → Contact API: posts message
components/UI/Contact.jsx - Contact API → Visitor: accepts submission
- Gear listing → Gear data: loads
pages/gears.js - Gear listing → Portfolio card: renders
pages/gears.js - Project detail → Project data: loads
pages/projects/[slug].jsx - Sitemap route → Project data: reads
pages/sitemap.xml.js - Short URL page → Short URL data: loads
pages/url/[slug].jsx - Authentication API → MongoDB adapter: configures adapter
pages/api/auth/[...nextauth].js - MongoDB adapter → MongoDB: connects
lib/mongodbAdapter.js