Skip to content

undp/jobs-design-system-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UNDP Design System starter template

Boilerplate project for sites using UNDP Design System

What's included?

Baseline stylesheet (7KB minified and gzipped)

Ready to use static site generator

Inspired by ZURB Template

  • Sass compilaton. Using DartSass library with source maps support.
  • Javascript compilation. Transpiled with Babel, bundling is handled via Webpack
  • Assets copying for distribution. Image compressed and optimized using imagemin
  • Page compilation. Based on flat file compiler Panini using Handlebars template language
  • Development mode with BrowserSync server, file watching and on the fly compilation
  • Content decoupled from layout for easy translation via data files

Dependencies (referenced from external CDN)

  • jQuery
  • GSAP with ScrollTrigger and EasePack plugins - animations and transitions
  • Swiper - carousels and sliders

Usage

Clone project repo locally To manually set up the template, first download it with Git:

git clone https://github.com/undp/design-system-starter-template projectname
cd projectname

Add Github repo authentication information. Add .npmrc file to the project directory with following content, where {PERSONAL_TOKEN} is yor [Personal Authentication token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token#creating-a-personal-access-token-classic\) with at least read:packages permissions

//npm.pkg.github.com/:_authToken={PERSONAL_TOKEN}
@undp:registry=https://npm.pkg.github.com

In case you are using Yarn2 you have to add file named .yarnrc.yml or update existing with the following snippet:

npmScopes:
  undp:
    npmRegistryServer: https://npm.pkg.github.com
    npmAuthToken: {PERSONAL_TOKEN}

Install dependencies

yarn

Run development server (at http://localhost:8000)

yarn start

When ready for publication build production ready assets (published to /docs directory)

yarn build

Don't forget to relink Git to your own repository:

git remote set-url origin <remote_url>

About

UNDP Design system based template for Jobs site

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published