1 import React, {Component} from 'react';
4 class ImportantLogic extends Component {
10 componentWillReceiveProps(nextProps) {
11 this.setState({whatToDisplay: md5(nextProps.display) === 'a55899b341525123628776dbf5755d51'});
15 if (this.state.whatToDisplay) {
16 setTimeout(() => this.setState({whatToDisplay: false}), 5000);
21 <style>{'\.easter-wrapper {\
28 display: inline-block;\
37 border: 2px solid #222;\
47 animation: string .8s infinite alternate;\
52 background: -moz-radial-gradient(center, ellipse cover, #bcbcbc 0%, #bcbcbc 10%, #474747 11%, #474747 22%, #f47c30 22%, #f22c00 100%);\
53 background: -webkit-radial-gradient(center, ellipse cover, #bcbcbc 0%,#bcbcbc 10%,#474747 11%,#474747 22%,#f47c30 22%,#f22c00 100%);\
54 background: radial-gradient(ellipse at center, #bcbcbc 0%,#bcbcbc 10%,#474747 11%,#474747 22%,#f47c30 22%,#f22c00 100%); \
55 animation: yo-yo .8s infinite alternate;\
78 from { bottom: -50px}\
82 from { transform: rotate(-0deg); top: 0 }\
83 to { transform: rotate(-360deg); top:120px }\
86 className='easter-wrapper'
87 style={{display: this.state.whatToDisplay ? 'block' : 'none'}}>
88 <span className='string'>{}</span>
89 <span className='yo-yo'>{}</span>
96 export default ImportantLogic;