@cnbritain/wc-carddeprecated

Card component - Portrait, landscape and switcher

Usage no npm install needed!

<script type="module">
  import cnbritainWcCard from 'https://cdn.skypack.dev/@cnbritain/wc-card';
</script>

README

wc-card

Card component - Portrait, landscape and switcher

Macro Settings:

Key Optional Default Description
article false The article model
card_type true 'portrait' The layour of the card
brand true '' Name of the brand
theme true 'light' Colour scheme of the card
hide_author true True Hides the author from the meta
hide_duration true True Hides the duration from the meta
hide_image_icon true True Hides the image icon from the image
hide_description true True Hides the description from the card

JS Documentation

Card

Card.init()

Initialises the lazyload of images

Kind: static method of Card

Current themes:

  • Wired

Prerequisites:

  • Node.jsbrew install node
  • Grunt - npm install -g grunt-cli
  • Other prereqs? Python? Virtualenv?

Demo:

Install dependencies:

npm install

Build the things:

npm run sass
npm run js

Python the pythons:

cd demo
virtualenv .
source bin/activate
pip install -r requirements.txt

Start the demo server:

python demo.py