How shruti202x/celebrityspotlight works
CelebritySpotlight is a Next.js celebrity-discovery app. Visitors search for celebrities from a description, choose a match, and receive a prefilled signup form; the home page also displays trending news. The main flow uses two Gemini-backed API routes, while news is fetched through a separate NewsAPI route. Navigation exposes profile and dashboard pages, though their implementations are unsampled or minimal. The form currently logs submissions rather than saving them. Relationships reflect the shown calls and links; unsampled pages are represented only as routes.
Main entry points: Navbar.tsx Navigation · index.tsx Home page · CelebSearch.tsx Celebrity search · gemini.ts Celebrity candidates API
Components 14
User interface
- Home page
pages/index.tsx - Navigation
components/Navbar.tsx - Signup form
pages/signup.tsx - Profile page
pages/profile.tsx - Dashboard page
pages/dashboard.tsx - Fan dashboard
pages/fandashboard.tsx - Hello API
pages/api/hello.ts
Celebrity discovery
- Celebrity search
components/CelebSearch.tsx - Celebrity candidates API
pages/api/gemini.ts - Celebrity details API
pages/api/gemini2.ts
News content
- News API
pages/api/news.ts
External services
- Google Gemini
- NewsAPI
Other components
- Visitor
Connections 16
- Visitor → Home page: opens
README.md - Home page → Navigation: renders
pages/index.tsx - Home page → Celebrity search: renders
pages/index.tsx - Home page → News API: fetches news
pages/index.tsx - Celebrity search → Celebrity candidates API: requests candidates
components/CelebSearch.tsx - Celebrity candidates API → Google Gemini: generates candidates
pages/api/gemini.ts - Celebrity search → Celebrity details API: requests details
components/CelebSearch.tsx - Celebrity details API → Google Gemini: generates details
pages/api/gemini2.ts - Celebrity search → Signup form: routes with details
components/CelebSearch.tsx - Navigation → Home page: links to
components/Navbar.tsx - Navigation → Signup form: links to
components/Navbar.tsx - Navigation → Profile page: links to
components/Navbar.tsx - Navigation → Dashboard page: links to
components/Navbar.tsx - Navigation → Fan dashboard: links to
components/Navbar.tsx - News API → NewsAPI: fetches articles
pages/api/news.ts - Visitor → Hello API: requests endpoint
README.md