Giter Site home page Giter Site logo

juanjofr / image-gallery Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 226 KB

Example project to show the use of an image gallery as it is used in multiple e-commerce websites, with synchronization between the inline gallery and the second gallery that is displayed when clicking on an image.

CSS 7.24% TypeScript 88.57% JavaScript 4.19%
lightbox nextjs react tailwindcss unsplash

image-gallery's Introduction

Image Gallery

Motivation

The goal of this project is to show the use of an image gallery as it is used in multiple e-commerce websites, with synchronization between the inline gallery and the second gallery that is displayed when clicking on an image.

Screenshot 2023-05-19 at 17 26 45 Screenshot 2023-05-19 at 17 28 11 Screenshot 2023-05-19 at 17 28 34

Technical details

This project uses NextJS 13 along with Tailwind for styling. The image galleries have been created using the Yet Another React Lightbox module customized to work synchronously between two independent galleries and with the styles modified with Tailwind.

Images are dynamically downloaded the first time the project is built using the official JavaScript wrapper for the Unsplash API.

Run locally

To run this project locally you must clone the repository, create a .env.local file with your Unsplash access key (see the .env.local.example file) and run it with npm like any other NextJS project:

npm run dev

One of the best ways to learn and improve is by sharing knowledge, so you can use this project to study and improve. I hope you find it useful!

image-gallery's People

Contributors

juanjofr 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.