Skip to content

NextPix Gallery is a simple image gallery web application built with Next.js App Directory, Tailwind CSS, Shadcn UI, TypeScript, and Zod. It fetches images from the Pexels API and displays them in an elegant gallery format.

License

Notifications You must be signed in to change notification settings

mohamed-lifa7/NextPix-Gallery

Repository files navigation

NextPix Gallery

NextPix Gallery is a simple image gallery web application built with Next.js App Directory, Tailwind CSS, Shadcn UI, TypeScript, and Zod. It fetches images from the Pexels API and displays them in an elegant gallery format.

Preview

Dark Mode

Dark Mode Preview

Light Mode

Light Mode Preview

Features

  • Browse and view high-quality images from Pexels.
  • Responsive design for optimal viewing on various devices.
  • A clean and modern user interface.
  • dark theme.
  • TypeScript for enhanced code quality and autocompletion.
  • Zod for runtime type checking.

Prerequisites

Before you begin, ensure you have the following prerequisites:

  • Fundamentals of Next.js, TypeScript, and Tailwind CSS: Familiarity with these technologies will be helpful for understanding and customizing the project.

  • Node.js (npm / npx): Make sure you have Node.js installed on your system. You can download it from nodejs.org.

  • Next.js: You'll need to be familiar with Next.js, as this project is built using it. You can learn more about Next.js by visiting the official documentation.

  • Pexels API Key: To fetch images from the Pexels API, you'll need to obtain an API key. You can sign up for a Pexels API key at pexels.com/api. After obtaining the API key, add it to a .env.local file in the project root as described in the Getting Started section.

Getting Started

To get started with NextPix Gallery, follow these steps:

  1. Clone the repository to your local machine:
    git clone https://github.com/mohamed-lifa7/NextPix-Gallery.git
  1. Navigate to the project directory:
   cd NextPix-Gallery
  1. Install the project dependencies:
   npm install
  1. Create a .env.local file in the project root and add your Pexels API key:
   PEXELS_API_KEY=your-API-key-value

You can obtain a Pexels API key by signing up at pexels.com/api.

  1. Start the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
  1. Open http://localhost:3000 with your browser to see the result.

Contributing

Contributions are welcome! If you'd like to contribute to NextPix Gallery, please follow these guidelines:

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix.
  3. Make your changes and commit them.
  4. Push your changes to your fork.
  5. Submit a pull request to the main repository.

License

This project is licensed under the MIT License.

Acknowledgments

I would like to extend my heartfelt thanks to the following:

  • Vercel for providing the amazing Next.js framework, which served as the foundation for this project.

  • Dave Gray and Shaun (Net Ninja) for their excellent course.

  • shadcn for their outstanding UI framework that greatly contributed to the aesthetics and functionality of this project.

  • Pexels for offering their generous API, allowing us to access a vast collection of high-quality images for this image gallery.

These contributions have been invaluable in the development of the "NextPix Gallery" project.

Learn More

To learn more about Next.js, take a look at the following resources:

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out Next.js deployment documentation for more details.


This is a Next.js project bootstrapped with create-next-app.

About

NextPix Gallery is a simple image gallery web application built with Next.js App Directory, Tailwind CSS, Shadcn UI, TypeScript, and Zod. It fetches images from the Pexels API and displays them in an elegant gallery format.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published