@volvo-cars/site-footer-component

Footer component that should be present at the bottom of all pages on volvocars.com

Usage no npm install needed!

<script type="module">
  import volvoCarsSiteFooterComponent from 'https://cdn.skypack.dev/@volvo-cars/site-footer-component';
</script>

README

Site Footer for volvocars.com

@volvo-cars/site-footer-component @volvo-cars/site-footer-component

This is the global footer component that can be found on volvocars.com

Install

Install the package:

npm install @volvo-cars/site-footer-component
# or
yarn add @volvo-cars/site-footer-component

Requirements

Styling and theming is handled with VCC UI:

  1. npm install vcc-ui
  2. Wrap your application in a <StyleProvider> and <ThemeProvider>
  3. Configure at least the following static assets for VCC UI (example configuration):
    • The "Volvo Logo"
    • The "Volvo Novum Light" and "Volvo Broad" fonts

Browser support and polyfills

The code is compiled to match @volvo-cars/browserslist-config but you also need to include some runtime polyfills to support old browsers. We recommend the @volvo-cars/polyfill package.

Usage

The data and content is not provided in this package. You will need to fetch content from the VCC Content Delivery API. Please contact jimmy.sorting at volvocars.com for more information.

import { SiteFooter } from "@volvo-cars/site-footer-component"
const myApp() (
  ...
  <SiteFooter data={dataFromContentDeliveryAPI} />
  ...
)

Tracking

<SiteFooter> component is doing click tracking if you set up Google Tag Manager (GTM) properly on your page. If you don't have GTM it should silently ignore and work as usual.

We highly recommend you to enable tracking. It will allow us to have a better understating of the actual usage of the component and improve it based on the data we gather.

Please contact the analytics team in order to set up the Google Tag Manager.