How aryallaxman99/moviemania works
MovieMania is a Next.js movie-discovery frontend. Users browse daily trending titles, search TMDb, and open a movie page for details; search and trending results also update shared movie-list state. The graph preserves the homepage, search and detail flows, plus the documented contact route and UI capabilities. Source excerpts show the API requests and major component calls; unsampled route or data behavior is not inferred.
Main entry points: HeroSection.tsx Trending showcase · SearchBox.tsx Movie search · Navbar.tsx Trending navigation · MovieDetails.tsx Movie details
Components 24
App routes
- Home page
src/app/page.tsx - Search page
src/app/search/page.tsx - Movie route
src/app/movie/[id]/page.tsx - Contact page
src/app/contact/page.tsx - App shell
src/app/layout.tsx
Movie discovery
- Trending showcase
src/components/HeroSection.tsx - Movie search
src/components/SearchBox.tsx - Search results
src/components/DisplayMovie.tsx - Movie details
src/components/MovieDetails.tsx - Trending navigation
src/components/Navbar.tsx
Data and state
- Search request
src/hooks/useSearchData.ts - Trending request
src/hooks/useGetData.ts - Movie lookup
src/hooks/useFindMovie.ts - Movie list context
src/context/MovieContext.ts - Context provider
src/context/MovieContextProvider.tsx
Presentation UI
- Loading indicator
src/widgets/Loading/Loading.tsx - Search input
src/widgets/Input/Input.tsx - Focus cards
src/components/ui/focus-cards.tsx - Hero parallax
src/components/ui/hero-parallax.tsx - Cast and company tooltip
src/components/ui/animated-tooltip.tsx - Navigation menu
src/components/ui/navbar-menu.tsx - Gradient link
src/components/ui/hover-border-gradient.tsx
Other components
- Visitor
- TMDb API
Connections 30
- Visitor → Home page: opens
- Visitor → Search page: opens
- Visitor → Movie route: opens
- Visitor → Contact page: opens
- Home page → Trending showcase: renders
src/app/page.tsx - Home page → Gradient link: renders
src/app/page.tsx - Search page → Movie search: renders
src/app/search/page.tsx - Movie route → Movie details: renders
src/app/movie/[id]/page.tsx - App shell → Trending navigation: renders
src/app/layout.tsx - App shell → Context provider: wraps
src/app/layout.tsx - Trending showcase → Trending request: requests
src/components/HeroSection.tsx - Trending showcase → Movie list context: reads state
src/components/HeroSection.tsx - Trending showcase → Hero parallax: renders
src/components/HeroSection.tsx - Trending showcase → Loading indicator: renders
src/components/HeroSection.tsx - Trending navigation → Trending request: requests
src/components/Navbar.tsx - Trending navigation → Movie list context: updates
src/components/Navbar.tsx - Trending navigation → Navigation menu: renders
src/components/Navbar.tsx - Trending navigation → Loading indicator: renders
src/components/Navbar.tsx - Movie search → Search request: requests
src/components/SearchBox.tsx - Movie search → Movie list context: updates
src/components/SearchBox.tsx - Movie search → Search input: renders
src/components/SearchBox.tsx - Movie search → Search results: renders
src/components/SearchBox.tsx - Search results → Focus cards: renders
src/components/DisplayMovie.tsx - Movie details → Movie lookup: requests
src/components/MovieDetails.tsx - Movie details → Loading indicator: renders
src/components/MovieDetails.tsx - Movie details → Cast and company tooltip: renders
src/components/MovieDetails.tsx - Context provider → Movie list context: provides
src/context/MovieContextProvider.tsx - Search request → TMDb API: searches
src/hooks/useSearchData.ts - Movie lookup → TMDb API: fetches details
src/hooks/useFindMovie.ts - Trending request → TMDb API: fetches results