A Next.js View Transtions demo using Next.js and shuding/next-view-transitions. 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.