Giter VIP home page Giter VIP logo

react-image-gallery's Introduction

Project Spec

  • Get pictures of dogs or cats (depending on what your favourite is) from any API.
  • Display in a grid. You can use infinite scrolling or pages.
  • When you click on a picture, it will go into a single-picture view. It will expand the picture in either a lightbox or just fullscreen.
  • In the single-picture view, we should be able to do 3 actions: go to the next picture, previous picture, or go back to grid mode.
  • Use any third party libraries you'd like.
  • The result does not have to be beautiful, but it should be functional.

Installation

Pull Repo Locally.

npm install
npm run start

navigate to localhost:8080

Distribution Build

npm run build

files are put in the /public folder

Overview

I decided to build this project as a React App because I am still learning React and wanted to challenge myself. I built it as an infinite scrolling application with a simple lightbox effect when an image is selected. Both these decisions were made as they seem to be the current standard UX for photo gallery apps. I set a self-enforced time-limit of 3 hours to work on this project, so that I had to scale the project scope to meet the deadline.

Dev Workflow

This project is using Webpack for real-time module reloading and along with Babel for transpiling ES2015 code. This workflow was chosen because I am very comfortable in Webpack and feel that the initial setup time is worth if for the features it offers.

Future Features

If this was an ongoing project, here are a few features that I would like to implement:

  1. Routing (via React Router)
  2. State Change Animations
  3. Search and Filter Options
  4. Improved UX/UI
  5. Further breakdown of components into small re-usable chunks

Know Issues

  • Inconsistent CORS issues from the Pixabay API. I suspect this is due to developing locally on localhost:8080.

react-image-gallery's People

Contributors

camerondubas avatar

Watchers

James Cloos avatar  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.