[rejected]

This commit is contained in:
Dan 2013-04-09 16:45:11 +01:00
parent cecfd781d6
commit 8a9256c838
3 changed files with 28 additions and 2 deletions

View File

@ -10,7 +10,7 @@ var pages = function(dbot) {
res.render('flashy', {
'name': dbot.config.name,
'colour': colour,
'text': text
'text': req.params.text
});
}
};

23
public/flash.css Normal file
View File

@ -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;
}

View File

@ -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}
]