I wish you good luck A modern, animated 404 page built with Next.js 14 and Tailwind CSS. This project features a clean, minimalist design with smooth animations and a user-friendly interface.
-
Modern Design
- Clean and minimalist layout
- Gradient background
- Smooth fade-in animations
- Responsive design for all devices
-
User Experience
- Clear error messaging
- Easy navigation back to home
- Smooth animations
- Mobile-friendly interface
-
Technical Features
- Built with Next.js 14
- Tailwind CSS for styling
- TypeScript for type safety
- Node.js 18.17 or later
- npm or yarn package manager
-
Clone the repository:
git clone https://github.com/omidjavaherii/my-404-page.git
-
Navigate to the project directory:
cd my-404-page -
Install dependencies:
npm install # or yarn install -
Start the development server:
npm run dev # or yarn dev -
Open http://localhost:3000 in your browser.
- Next.js - React framework for production
- TypeScript - Type safety
- Tailwind CSS - Utility-first CSS framework
- Framer Motion - Animation library
The theme colors can be customized in tailwind.config.ts:
colors: {
primary: {
DEFAULT: '#046D8B',
dark: '#035A73',
},
// ... other colors
}- Update the error message in
src/app/not-found.tsx - Modify the button text and styling
- Customize the background gradient
my-404-page/
├── src/
│ ├── app/
│ │ ├── not-found.tsx # 404 page component
│ │ └── layout.tsx # Root layout
│ ├── components/
│ │ └── ui/ # UI components
│ └── styles/ # Global styles
└── package.json
npm run dev- Start development servernpm run build- Build for productionnpm run start- Start production servernpm run lint- Run ESLintnpm run format- Format code with Prettier
Project Link: https://github.com/omidjavaherii/my-404-page