Giter VIP home page Giter VIP logo

react-photo-essay-template's Introduction

This is a photo essay template build atop expressnews-react-template designed for deployment to WCM. It uses React + Webpack + Redux + Grommet.

Here's an example of it in use.

Quickstart

Run this command in your project's folder:

curl -fsSL https://github.com/sa-express-news/react-photo-essay-template/archive/master.tar.gz | tar -xz --strip-components=1

Next, npm install.

Replace the placeholder images in the images directory with your own images.

Open data/photos.json and update the image url paths (they point to the images directory), titles and captions.

Open data/credits.json and update the photographers' names.

You'll next want to run npm run start.

Currently there is a bug with a Grommet dependency and Sass-Loader that, until new versions are released, will likely throw an error on first load. Here's how to fix it:

In both of these files โ€“ node_modules/grommet/scss/grommet-core/index.scss and node_modules/grommet/scss/grommet-core/_settings.scss โ€“ change all of the imports that begin with inuit to ~inuit. Eg. @import "inuit-normalize/generic.normalize"; becomes @import "~inuit-normalize/generic.normalize";. Then you should be up and running.

Deploying

In package.json enter the path to your S3 bucket.

Run npm run build.

Upload all compressed assets to S3, minus index.html. Load index.html's JS and CSS scripts into a freeform and override the WCM template CSS as necessary.

react-photo-essay-template's People

Contributors

lukewhyte avatar

Stargazers

Tam Nguyen avatar

Watchers

James Cloos avatar  avatar John Tedesco avatar Kia Farhang 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.