diff options
| author | Ben Beltran <ben@nsovocal.com> | 2017-07-03 00:55:32 -0500 |
|---|---|---|
| committer | Ben Beltran <ben@nsovocal.com> | 2017-07-03 00:55:32 -0500 |
| commit | 5e265f9d81bcce30949e88850892ea5dacec7386 (patch) | |
| tree | 056dfe345174027335cc033359dfbe14a8d53250 /static | |
| parent | 4ae55e0673a61c50f1f7f378f6461d0388f66bd5 (diff) | |
| parent | be33bb82f6276b05a3861df8a7c5138ac320a00b (diff) | |
Merge branch 'release/1.0.0'
Diffstat (limited to 'static')
| -rw-r--r-- | static/css/style.css | 52 | ||||
| -rw-r--r-- | static/favicon.ico | bin | 0 -> 5430 bytes | |||
| -rw-r--r-- | static/favicon.png | bin | 0 -> 3807 bytes | |||
| -rw-r--r-- | static/images/header_background.png | bin | 0 -> 5247 bytes | |||
| -rw-r--r-- | static/images/header_foreground.png | bin | 0 -> 5273 bytes | |||
| -rw-r--r-- | static/js/blog.js | 28 |
6 files changed, 80 insertions, 0 deletions
diff --git a/static/css/style.css b/static/css/style.css new file mode 100644 index 0000000..aeda780 --- /dev/null +++ b/static/css/style.css @@ -0,0 +1,52 @@ +* { + margin: 0; + padding: 0; +} + +body { + background-image: url('/images/header_background.png'); + background-size: auto 300px; + background-attachment: fixed; + line-height: 1.45; +} + +header { + background-image: url('/images/header_foreground.png'); + background-repeat: no-repeat; + background-size: auto 300px; + height: 300px; +} + +header a { + color: transparent; + display: block; + max-height: 500px; +} + +main { + background-color: #fff; + padding: 1.414em; +} + +h1, h2, h3, h4 { + margin: 1.414em 0 0.5em; + font-weight: 400; +} + +p, ul, ol, img { + width: 100%; + margin: 1.414em 0; + max-width: 30em; +} + +ul, ol { margin-left: 1.414em; } + +h1 { font-size: 3.998em; } +h2 { font-size: 2.827em; } +h3 { font-size: 1.999em; } +h4 { font-size: 1.414em; } + +footer { + background-color: pink; + padding: 1.414em; +} diff --git a/static/favicon.ico b/static/favicon.ico Binary files differnew file mode 100644 index 0000000..81582e2 --- /dev/null +++ b/static/favicon.ico diff --git a/static/favicon.png b/static/favicon.png Binary files differnew file mode 100644 index 0000000..b77a959 --- /dev/null +++ b/static/favicon.png diff --git a/static/images/header_background.png b/static/images/header_background.png Binary files differnew file mode 100644 index 0000000..8352b5e --- /dev/null +++ b/static/images/header_background.png diff --git a/static/images/header_foreground.png b/static/images/header_foreground.png Binary files differnew file mode 100644 index 0000000..eb9b34d --- /dev/null +++ b/static/images/header_foreground.png diff --git a/static/js/blog.js b/static/js/blog.js new file mode 100644 index 0000000..a49a72f --- /dev/null +++ b/static/js/blog.js @@ -0,0 +1,28 @@ +'use strict'; + +/* globals window */ + +((window) => { + + const internals = { + kEntryPoint: '.event-details', + + // Application entry point, for now just band to keyboard + + main() { + + window.document.addEventListener('keydown', internals._onKeyDown); + }, + + // Handles key events to point to the correct blog post. + + _onKeyDown(event) { + + if (['1','2','3'].indexOf(event.key) > -1) { + window.location.hash = event.key; + } + } + }; + + window.addEventListener('load', internals.main); +})(window); |