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

@volvo-cars/care-by-volvo-components

Package Overview
Dependencies
Maintainers
12
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@volvo-cars/care-by-volvo-components

Components for Care by Volvo information page

  • 0.0.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-50%
Maintainers
12
Weekly downloads
 
Created
Source

Care by Volvo Components

These are components that are being used by multiple projects for describing Care by Volvo.

The philosophy of the components is that they should be ready out of the box, you only need to provide the data.

List of components

  • CardList
  • ContactInfo
  • FeatureList
  • IconCardList
  • InfoBlock

Install

Install the package:

npm install @volvo-cars/care-by-volvo-components

Usage

The data and content are not provided in this package. You will need to fetch content from the VCC Content Delivery API.

Analytics

For analytics to work you will need to make sure a product_id is defined in the window object in your app, e.g.:

if (!window.hasOwnProperty('product_id')) window.product_id = 'VC-WPI';

CardList

This component is describing what distincts Care by Volvo from it's competitors. It essentially contains copy.

import { CardList } from "@volvo-cars/care-by-volvo-components"

const myApp() (
  ...
  <CardList data={dataFromContentDeliveryAPI} />
  ...
)

ContactInfo

This is a component displays a few ways for visitors to get in touch with Volvo (chat, phone and email).

import { ContactInfo } from "@volvo-cars/care-by-volvo-components"

const myApp() (
  ...
  <ContactInfo data={dataFromContentDeliveryAPI} page="home" />
  ...
)

FeatureList

This component is an accordion on the landing page, that displays what is included in Care by Volvo.

import { FeatureList } from "@volvo-cars/care-by-volvo-components"

const myApp() (
  ...
  <FeatureList data={dataFromContentDeliveryAPI} />
  ...
)

IconCardList

This is an component that describes how the subscription works. It contains of a title, a icon and a body text. It turns into a Carousel on mobile devices.

import { IconCardList } from "@volvo-cars/care-by-volvo-components"

const myApp() (
  ...
  <IconCardList 
    data={dataFromContentDeliveryAPI}
    hideCta={false}
    scrollToSelector={'#choose-your-volvo'} 
  />
  ...
)
Note

The IconCardList has pure-react-carousel as a dependency and importing the accompanying CSS file is therefore required.

import 'pure-react-carousel/dist/react-carousel.es.css';

InfoBlock

This is an component that shortly describes what Care by Volvo is. It is essentially just a title and a body text.

import { InfoBlock } from "@volvo-cars/care-by-volvo-components"

const myApp() (
  ...
  <InfoBlock data={dataFromContentDeliveryAPI} />
  ...
)

FAQs

Package last updated on 04 Jun 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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