98 | ${data.name} 99 |
100 |101 | ${data.description} 102 |
103 |├── .gitignore ├── LICENSE ├── README.md ├── assets └── screenshot.png ├── index.js ├── package.json └── speakers.json /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | coverage/ 3 | tmp/ 4 | dist/ 5 | npm-debug.log* 6 | .DS_Store 7 | .nyc_output 8 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2016 Yoshua Wuyts 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # berlinjs 2 | 3 |  5 | 6 | ## Contributing 7 | All speaker data is in `./speakers.json`. Time and date are at the top of 8 | `index.js`. 9 | ```sh 10 | $ npm install # install dependencies 11 | $ npm start # start the dev server & open the application 12 | $ npm run build # output to static files in dist/ 13 | ``` 14 | 15 | ## License 16 | [MIT](https://tldrlegal.com/license/mit-license) 17 | -------------------------------------------------------------------------------- /assets/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yoshuawuyts/berlinjs/34822c13f1d0407bee583a8510173604327cb578/assets/screenshot.png -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | var html = require('choo/html') 2 | var css = require('sheetify') 3 | var choo = require('choo') 4 | 5 | var speakerData = require('./speakers.json') 6 | var date = { 7 | dayOfWeek: 'Tuesday', 8 | time: '7pm', 9 | date: 'March 16th' 10 | } 11 | 12 | css('tachyons') 13 | 14 | css` 15 | .js-yellow { color: #f7df1e } 16 | .bg-js-yellow { background-color: #f7df1e } 17 | ` 18 | 19 | var logo = css` 20 | :host { 21 | font-size: 4rem; 22 | text-shadow: 23 | -1px 1px black, 24 | -2px 2px black, 25 | -3px 3px black, 26 | -4px 4px black; 27 | } 28 | 29 | @media screen and (min-width: 60em) { 30 | :host { 31 | font-size: 12rem; 32 | text-shadow: 33 | -3px 3px black, 34 | -6px 6px black, 35 | -9px 9px black, 36 | -12px 12px black; 37 | } 38 | } 39 | ` 40 | 41 | var app = choo() 42 | app.route('/', mainView) 43 | app.mount('body') 44 | 45 | function mainView () { 46 | return html` 47 |
48 | ${nav()} 49 |101 | ${data.description} 102 |
103 |