A simple React app that I built to feature my OA collection.
This is a gallery featuring my OA pieces: published pages, sketches, and blank cover sketches
- Place images in
public/photos
- you may add subfolders - Edit
photos.json
file:- The top level will contain the folders. Each folder will have:
name
: the name shown in the dropdownfolder
: actual folder name - try to keep it one wordfiles
: an array of files
- Each file entry in the array, should have the following properties:
src
- full name of the file in its foldertitle
- the name and title shown for teh image in the galleryartist
- name of the artist/swidth
andheight
are relative sizes for the image in the gallery. Use the following hints:- portrait: height > width
- landscape: width > height
- square: height == width
- The top level will contain the folders. Each folder will have:
- Build and deploy (I use Netlify, but it can be deployed to Github, or any other static hosting, or run locally)
- React Photo Gallery - for the gallery
- React Images - for the carousel
- React Player - to play Youtube videos
- Fork-Me-On-Github - for Octocat icon
- rc-switch - for the dark/light mode switch
Due to some of the older components used here incompatibility with newer versions of React, running npm install
may result in an ERESOLVE
error, with tons of peer dependencies
messages.
To avoid that, run npm install --legacy-peer-deps
when running locally.
When using Netlify etc., add an environment variable called NPM_FLAGS
with the value --legacy-peer-deps
.
This project was bootstrapped with Create React App.