NYPl React Footer
This repository is the footer component for the ReactJS applications of nypl.org.
0.5.8
To install this module, run:
``sh`
$ npm install --save @nypl/dgx-react-footer
This component is a scoped NPM module. This means that when installing, NPM will create a @NYPL folder and the dgx-react-footer component (and other NYPL scoped components) will be there.
Import using ES6 style syntax:
``
// Application.jsx
import Footer from '@nypl/dgx-react-footer';
Import using ES5 style syntax:
``
// Application.jsx
var Footer = require('@nypl/dgx-react-footer');
Call the instance in your application component:
``$3
- urlType: Type of URL's to be established for NYPL link elements. If empty, it will utilize relative URL's by default. If absolute URL's are required, such as for apps that live at a different domain, initialize the Footer component as follows:
`sh`
// Sets all URLs to absolute
// Sets all URLs to relative
``
// app.scss
@import "~@nypl/dgx-react-footer/dist/styles/styles.scss";
`sh`
$ npm install
This starts the server at localhost:3000 defaulting to NODE_ENV=development.
`sh`
$ npm start
flag to production triggers the production environment.`sh
$ npm run babel-build
$ NODE_ENV=production npm start
`$3
1. Fork this repo.
2. Create a feature branch -
git checkout -b new-feature.
3. Commit your changes - git commit -am 'Description of feature'.
4. Push the branch - git push origin new-feature`.
Contributors
----
NYPL Digital Experience