added gradient experiment

This commit is contained in:
Danny Coates 2018-01-31 11:46:29 -08:00
parent 4fb4041f13
commit 94e707da8a
No known key found for this signature in database
GPG key ID: 4C442633C62E00CB
3 changed files with 42 additions and 7 deletions

View file

@ -5,8 +5,15 @@ module.exports = function(state, emit) {
function clicked() {
emit('experiment', { cd3: 'promo' });
}
const classes = state.promo === 'blue' ? 'banner banner-blue' : 'banner';
let classes = 'banner';
switch (state.promo) {
case 'blue':
classes = 'banner banner-blue';
break;
case 'pink':
classes = 'banner banner-pink';
break;
}
return html`
<div class="${classes}">