From 8a9256c8383154bde2e3ab0a4341af178e9bfbe0 Mon Sep 17 00:00:00 2001 From: Dan Date: Tue, 9 Apr 2013 16:45:11 +0100 Subject: [PATCH] [rejected] --- modules/flashy/pages.js | 2 +- public/flash.css | 23 +++++++++++++++++++++++ views/flashy/flashy.jade | 5 ++++- 3 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 public/flash.css diff --git a/modules/flashy/pages.js b/modules/flashy/pages.js index 5b09dd8..6b46ba5 100644 --- a/modules/flashy/pages.js +++ b/modules/flashy/pages.js @@ -10,7 +10,7 @@ var pages = function(dbot) { res.render('flashy', { 'name': dbot.config.name, 'colour': colour, - 'text': text + 'text': req.params.text }); } }; diff --git a/public/flash.css b/public/flash.css new file mode 100644 index 0000000..c632405 --- /dev/null +++ b/public/flash.css @@ -0,0 +1,23 @@ +body { background: #000; font-family: sans-serif } + +.stamp { + text-align: center; + color: #FFF; + font-size: 12em; +} + +.flash { + text-decoration: blink; +} + +@-webkit-keyframes blink { + from { opacity: 1.0; } + to { opacity: 0.0; } +} + +.flash { + -webkit-animation-name: blink; + -webkit-animation-iteration-count: infinite; + -webkit-animation-timing-function: cubic-bezier(1.0,0,0,1.0); + -webkit-animation-duration: 1s; +} diff --git a/views/flashy/flashy.jade b/views/flashy/flashy.jade index 8a13036..f05641f 100644 --- a/views/flashy/flashy.jade +++ b/views/flashy/flashy.jade @@ -2,7 +2,10 @@ html(lang='en') head meta(charset='utf-8') - link(rel='stylesheet', type='text/css', href='/styles.css') + link(rel='stylesheet', type='text/css', href='/flash.css') title #{name} web interface body div.container + div.stamp [ + span.flash(style='color: #'+colour+';') #{text} + ]