Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@washingtonpost/site-footer

Package Overview
Dependencies
Maintainers
196
Versions
271
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@washingtonpost/site-footer - npm Package Compare versions

Comparing version 0.4.1 to 0.4.2

6

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc