1.0.0 • Published 4 years ago
reach-natgeo-header v1.0.0
Reach NatGeo Header
Basic header for one-page NatGeo sites
- Bundled with Webpack
- Develop with Hot Module Replacement (HMR)
- Includes linting with ESLint
- Testing with Jest.
Usage
- npm install reach-natgeo-header
Optional Props for this Component
- Background Color - string (name, hex, or rgba)
- Text Color - string (name, hex, or rgba)
- Padding - string of shorthand CSS property (e.g. '15px' or '5px 10px 15px 5px')
- NatGeo Logo Source - string
- Partner Logo Source - string
- Partner Logo Text - string
- Partner Logo Link - string
- Section Links with Scrollspy - Array of objects { id: 'example', label: 'EXAMPLE' }
- Ad Banners - object { adUnitPath: '', slotSizes: [728, 90, 300, 250] } based on react-gpt
Dependencies
- prop-types
- react-hot-loader
- react-scroll
- react-gpt
1.0.0
4 years ago