The ContentsThe Contents

Next.js Clone Coding Project

A modern movie discovery web application built as a Next.js clone coding practice, focusing on strict type safety and immersive UI.

# Project Overview

Next.js Clone Coding Project began as a clone coding project from "Nomad Coders Next.js for Beginners". It has been reimagined and significantly improved using Antigravity, refining the original work with modern aesthetics, strict TypeScript integration, and optimized performance.

Technology Stack

Next.js 16

App Router & Turbopack

React 19

Server Components

Tailwind 4

Modern CSS Styling

TypeScript

Strict Type Safety

TMDB API

Real-time Data

Key Features

šŸ  Home Page

  • Trending Contents Grid
  • Dynamic Immersive Background
  • 3D Card Flip Animation

šŸŽ¬ Content Details

  • Immersive Hero Header
  • Tabs: Videos, Credits, Providers, Similar
  • External Links (IMDB, Homepage)

Project Structure

next-again/
ā”œā”€ā”€ app/
│   ā”œā”€ā”€ (home)/              # Home route group
│   │   ā”œā”€ā”€ page.tsx         # Main landing page
│   │   └── loading.tsx      # Home skeleton loader
│   ā”œā”€ā”€ (content)/content/[id]/ # Dynamic movie detail routes
│   │   ā”œā”€ā”€ page.tsx         # Defaults to 'video' tab
│   │   ā”œā”€ā”€ credits/         # Credits tab route
│   │   ā”œā”€ā”€ providers/       # Providers tab route
│   │   ā”œā”€ā”€ similar/         # Similar movies tab route
│   │   ā”œā”€ā”€ layout.tsx       # Shared layout (Header, Nav) for details
│   │   └── error.tsx        # Error boundary
│   ā”œā”€ā”€ about/               # About page
│   ā”œā”€ā”€ layout.tsx           # Root layout (Html, Body, ScrollToTop)
│   ā”œā”€ā”€ globals.css          # Global styles & Tailwind
│   └── not-found.tsx        # 404 Page
ā”œā”€ā”€ components/
│   ā”œā”€ā”€ content-card.tsx     # Movie Card component
│   ā”œā”€ā”€ content-info.tsx     # Movie Info component
│   ā”œā”€ā”€ skeleton.tsx         # Loading UI components
│   ā”œā”€ā”€ tab-content.tsx      # Tab Logic
│   └── tabs/                # Individual Tab Components
ā”œā”€ā”€ lib/
│   ā”œā”€ā”€ getApiData.ts        # Generic API Fetcher
│   └── metadata.ts          # Shared Metadata Helper
└── types/
    └── tmdb.ts              # Strict TypeScript Interfaces

Recent Improvements

  • RefactorStrict Type Safety implementation with Generic API fetchers.
  • FeatureCentralized Metadata logic to reduce code duplication.
  • UXSmart Scroll-to-Top logic avoiding tab-switching jumps.

Development & Collaboration

Sky(skysurfr)

Product Lead / Designer

  • Concept & Strategic Vision
  • UI/UX Design Direction
  • Core Feature Requirements

Antigravity (AI)

Lead Developer

  • Full Stack Implementation
  • Type Safety & Refactoring
  • Technical Optimization

Copyright Ā© 2025 Next.js Clone Coding Project.