forked from GitHub/dbot
[rejected]
This commit is contained in:
parent
cecfd781d6
commit
8a9256c838
@ -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
23
public/flash.css
Normal 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;
|
||||
}
|
@ -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}
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user