A Next.js Transition View Demo using Next.js and (https://github.com/bitmanvs/nextjs-transition-view-app). This features real-time search, movie details, and cast information powered by TMDB API.
- π¬ Browse popular movies
- π Real-time movie search
- π― Detailed movie information including cast, ratings, and runtime
- π¨ Beautiful UI with smooth transitions
- π± Fully responsive design
- β‘ Fast page loads with static generation
- Framework: Next.js 13
- Styling: Tailwind CSS
- UI Components: shadcn/ui
- Icons: Lucide React
- Animations: View Transitions API
- Data: TMDB API
- Clone the repository
- Install dependencies:
npm install --force
- Create a
.env.local
file with your TMDB API key:TMDB_API_KEY=your_api_key_here
- Run the development server:
npm run dev
βββ app/ # Next.js app directory
β βββ layout.tsx # Root layout
β βββ page.tsx # Home page
β βββ search/ # Search functionality
β βββ movie/ # Movie details
βββ components/ # React components
β βββ movie-card.tsx
β βββ movie-grid.tsx
β βββ ui/ # shadcn/ui components
βββ lib/ # Utilities and API
βββ public/ # Static assets
The application uses the TMDB API for movie data. Key endpoints:
/movie/popular
- Popular movies listing/movie/{id}
- Movie details/search/movie
- Movie search
- Static page generation for popular movies
- Lazy loading of images
- Infinite scroll for pagination
- Client-side caching
- Fork the repository
- Create your feature branch
- Commit your changes
- Push to the branch
- Open a pull request
MIT License - feel free to use this project for your own purposes.