import hbs from 'htmlbars-inline-precompile'; import moment from 'moment'; export default { title: 'Components/Timeline', }; export let Standard = () => { return { template: hbs`
Timelines are a combination of objects and notes. Objects compose with boxed sections to create structure.
Timeline notes should be used sparingly when possible. In this example there is a note per day rather than a note per object.
`, context: { yesterday: moment().subtract(1, 'd'), today: moment(), }, }; }; export let Detailed = () => { return { template: hbs`a387e243
Submitted
{{moment-from-now (now)}}
b3220efb
Submitted
{{format-month-ts yesterday}}
fec9218e
Submitted
{{format-month-ts yesterday}}
a387e243
Some details for the timeline object.
b3220efb
Some details for the timeline object.
a387e243
Submitted
{{moment-from-now (now)}}
b3220efb
Submitted
{{format-ts yesterday}}
fec9218e
Submitted
{{format-ts yesterday}}
By using a full boxed-section for an emphasized timeline object, the object takes up more space and gets more visual weight. It also adheres to existing patterns.
`, context: { yesterday: moment().subtract(1, 'd'), today: moment(), }, }; };