@washingtonpost/site-footer
Advanced tools
Comparing version 0.4.1 to 0.4.2
{ | ||
"name": "@washingtonpost/site-footer", | ||
"version": "0.4.1", | ||
"version": "0.4.2", | ||
"description": "> TODO: description", | ||
@@ -37,5 +37,5 @@ "author": "artmsilva <artmsilva@gmail.com>", | ||
"@babel/runtime": "^7.13.10", | ||
"@washingtonpost/site-components": "^6.3.1" | ||
"@washingtonpost/site-components": "^6.3.2" | ||
}, | ||
"gitHead": "3da15a057ffe8fa6e7b732fbea34db19822777a2" | ||
"gitHead": "02552903cd318c7a3ad5f04d235f9c35b826b019" | ||
} |
# Site Footer | ||
> `footer` contains the site-wide footer for both default and AMP pages. Simply pass in an `isAmp` prop to get the AMP footer. This comes with analytics tid's and CCPA logic baked in. | ||
> `footer` contains the site-wide footer. | ||
## Usage | ||
# Site Header | ||
### Default | ||
## Install | ||
See the full default footer implementation in the [storybook](www.LINKTOSTORY.com); | ||
```bash | ||
npm install @washingtonpost/site-footer | ||
``` | ||
import { Footer } from "@washingtonpost/site-components/core/footer" | ||
<Footer isAmp={false} /> | ||
``` | ||
## [Component API](https://site-components.now.washingtonpost.com/?path=/docs/footer--default) | ||
## Tracking + CCPA | ||
## Usage | ||
### Tracking | ||
```jsx | ||
import { Footer } from "@washingtonpost/site-footer" | ||
- On AMP footer links, the `?tid=a_inl-amp&itid=a_inl-amp` query param is appended to each link for analytics tracking. | ||
### CCPA | ||
- On both AMP and default footers, the components checks for the presence of the `wapo_identity` in local storage and respective keys `geoState` and `addressState`. If either key matches `CA` the "Do Not Sell My Info" link will display to comply with CA privacy laws. | ||
## Build | ||
export const MyPage = () => { | ||
return ( | ||
<Footer /> | ||
) | ||
}; | ||
``` | ||
parcel build 'ui/*/' --log-level verbose --no-cache | ||
``` |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
290
5
216219
26