How marleydip/programming-hero_foundation-program-assignment-02_movie-explorer_react-tailwind-css-routing-vite works
Movie Explorer is a React discovery app: visitors navigate from the landing page to a show catalog, load or search TVMaze titles, and open a selected title’s details in a URL-synchronized modal. The listing page owns loading, debouncing, search state and selection; the API layer fetches and normalizes results, while reusable components render cards, skeletons and details. The README documents responsive styling and error/fallback behavior; only sampled source relationships are wired below, so unsampled behavior is represented without speculative edges.
Main entry points: MovieListingPage.jsx Catalog and search · App.jsx Routes and shell · MovieGrid.jsx Results grid · main.jsx React application router
Components 16
App experience
- React application router
src/main.jsx - Routes and shell
src/App.jsx - Home page
src/pages/HomePage.jsx - Hero banner
src/components/HeroBanner.jsx - Navigation bar
src/components/Navbar.jsx - Footer
src/components/Footer.jsx
Show discovery
- Catalog and search
src/pages/MovieListingPage.jsx - Search input
src/components/SearchBar.jsx - URL search state
src/pages/MovieListingPage.jsx
Show presentation
- Results grid
src/components/MovieGrid.jsx - Show card
src/components/MovieCard.jsx - Loading skeleton
src/components/MovieCardSkeleton.jsx - Details modal
src/components/MovieModal.jsx
TVMaze integration
- TVMaze API client
src/api/tvmaze.js
Other components
- Visitor
- TVMaze service
Connections 20
- Visitor → React application router: opens app
- React application router → Routes and shell: renders
src/main.jsx - Routes and shell → Navigation bar: renders
src/App.jsx - Routes and shell → Home page: routes to
src/App.jsx - Routes and shell → Catalog and search: routes to
src/App.jsx - Routes and shell → Footer: renders
src/App.jsx - Home page → Hero banner: renders
src/pages/HomePage.jsx - Hero banner → Catalog and search: navigates to
src/components/HeroBanner.jsx - Visitor → Catalog and search: browses
- Catalog and search → URL search state: reads and updates
src/pages/MovieListingPage.jsx - Catalog and search → Search input: renders
src/pages/MovieListingPage.jsx - Search input → Catalog and search: changes query
src/pages/MovieListingPage.jsx - Catalog and search → TVMaze API client: fetches catalog and results
src/pages/MovieListingPage.jsx - TVMaze API client → TVMaze service: requests data
src/api/tvmaze.js - Catalog and search → Results grid: supplies results
src/pages/MovieListingPage.jsx - Results grid → Show card: renders
src/components/MovieGrid.jsx - Results grid → Loading skeleton: renders while loading
src/components/MovieGrid.jsx - Show card → Catalog and search: selects show
src/pages/MovieListingPage.jsx - Catalog and search → Details modal: renders selected show
src/pages/MovieListingPage.jsx - Details modal → Catalog and search: requests close
src/pages/MovieListingPage.jsx