Coder Social home page Coder Social logo

mohamed-lifa7 / nextpix-gallery Goto Github PK

View Code? Open in Web Editor NEW
8.0 1.0 0.0 5.38 MB

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.

Home Page: https://next-pix-gallery.vercel.app

License: MIT License

JavaScript 0.53% CSS 3.42% TypeScript 96.05%
image-gallery nextjs pexels-api tailwindcss typescript

nextpix-gallery's Introduction

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.

nextpix-gallery's People

Contributors

mohamed-lifa7 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.