Skip to content

Instantly share code, notes, and snippets.

@Wingysam
Created June 21, 2019 19:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Wingysam/e711be01618e395ed46059327bd3fd50 to your computer and use it in GitHub Desktop.
Save Wingysam/e711be01618e395ed46059327bd3fd50 to your computer and use it in GitHub Desktop.
mixin tag(label, value)
.control
.tags.has-addons
span.tag.is-dark= label
span.tag= value
meta(charset='utf-8')
meta(name='viewport', content='width=device-width,initial-scale=1')
title Chore List
link(rel='stylesheet', href='node_modules/bulma/css/bulma.min.css')
script(src='node_modules/@fortawesome/fontawesome-free/js/all.js')
section.section
.container
h1.title Chore List
.field.is-grouped.is-grouped-multiline
+tag('Person', config.person)
+tag('Date', moment().format('LL'))
for chore in config.chores
.box
.has-text-centered
case chore.text.constructor
when String
span.is-size-4= chore.text
when Array
.columns
for item in chore.text
.column
span.is-size-4= item
.columns.is-multiline
for i in Array(chore.amount)
.column
span.icon.is-large
i.fa-3x.far.fa-circle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment