https://github.com/serapath/chapter-page
make a themable community chapter page
https://github.com/serapath/chapter-page
Last synced: about 1 year ago
JSON representation
make a themable community chapter page
- Host: GitHub
- URL: https://github.com/serapath/chapter-page
- Owner: serapath
- License: mit
- Created: 2018-11-07T04:31:02.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-18T22:07:19.000Z (over 7 years ago)
- Last Synced: 2025-03-29T15:34:58.370Z (over 1 year ago)
- Language: JavaScript
- Homepage: https://serapath.github.io/chapter-page
- Size: 4.88 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# chapter-page
make a theme-able community chapter page
# demo
https://serapath.github.io/chapter-page
# example
`npm install chapter-page`
```js
const chapterpage = require('chapter-page')
const colors = {
color0: '#43409a', // darkBlue,
color1: '#3022bb', // blue,
color2: '#6f68ae', // lightBlue,
color3: '#f989ff', // lightPink,
color4: '#730d61', // darkPink,
color5: '#080707', // black,
color6: '#2e3f41', // grey,
color7: '#f7da8b', // skinYellow,
color8: '#ffffff', // white,
color9: 'rgba(255, 255, 255, .0)',
}
const data = {
title: 'Nashville',
logo: 'assets/wizard3.png',
home: 'http://wizardamigos.com/',
tabs: [{
title: 'workshop',
url: 'https://slides.com/ninabreznik/deck-11-12-16/embed'
}],
chat: 'https://gitter.im/wizardamigosinstitute/program/~embed',
chapters: [],
place: 'Nashville - Schermerhorn Symphony Center',
event: 'https://health.distributed.com/code-camp', // link to event page
time: '2018.11.07-08:30am-04:30pm'
}
const { head, body } = chapterpage({ data, theme: { colors } })
document.head.innerHTML = head
document.body.innerHTML = body
```