visual-framework / vf-covid19-boilerplate

HTML VF boilerplate for Covid19 portals.
https://visual-framework.github.io/vf-covid19-boilerplate/
0 stars 1 forks source link

VF Covid19 Build Boilerplate

Guidance, documentation and portable CSS+JS to build a site based off the Covid19DataPortal.org look and UX (a Visual Framework 2.0 site).

CSS and JS

For basic styles and optional JS, include these files

  <link rel="stylesheet" media="all" href="https://visual-framework.github.io/vf-covid19-boilerplate/css/styles.css" />
  <script src="https://visual-framework.github.io/vf-covid19-boilerplate/scripts/scripts.js"></script>

HTML and how to

For HTML snippets and further and guidance view visual-framework.github.io/vf-covid19-boilerplate


Developing this boilerplate

  1. You'll need to install npm
  2. If you don't have yarn, install it
  3. Install all the things
    • yarn install
  4. Generate the site in /build
    • yarn run build build static assets
    • yarn run dev renders and serves
  5. Deploy in Github Pages /build folder
    • yarn deploy build folder will get deployed to gh-pages branch

Adding Visual Framework components

To add a component, use the command line or install it manually.

Troubleshooting

Having problems? See https://visual-framework.github.io/vf-core/troubleshooting/

Footnotes