2017-09-04 00:04:27 +00:00
|
|
|
import React from 'react';
|
|
|
|
import './index.scss';
|
|
|
|
|
2017-09-25 02:06:28 +00:00
|
|
|
interface State {
|
|
|
|
isFading: boolean;
|
|
|
|
hasAcknowledged: boolean;
|
|
|
|
}
|
|
|
|
export default class UnfinishedBanner extends React.Component<{}, State> {
|
|
|
|
public state = {
|
2017-09-04 00:04:27 +00:00
|
|
|
isFading: false,
|
|
|
|
hasAcknowledged: false
|
|
|
|
};
|
|
|
|
|
2017-09-25 02:06:28 +00:00
|
|
|
public render() {
|
2017-09-04 00:04:27 +00:00
|
|
|
if (this.state.hasAcknowledged) {
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
|
|
|
const isFading = this.state.isFading ? 'is-fading' : '';
|
|
|
|
|
|
|
|
return (
|
2017-09-25 02:06:28 +00:00
|
|
|
<div className={`UnfinishedBanner ${isFading}`} onClick={this.continue}>
|
2017-09-04 00:04:27 +00:00
|
|
|
<div className="UnfinishedBanner-content">
|
|
|
|
<h2>Under Contruction</h2>
|
|
|
|
<p>The ENS section is still under contruction</p>
|
|
|
|
<p>Expect unfinished components</p>
|
|
|
|
<h3>Click to continue</h3>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
2017-09-25 02:06:28 +00:00
|
|
|
|
|
|
|
private continue = () => {
|
|
|
|
this.setState({ isFading: true });
|
|
|
|
|
|
|
|
setTimeout(() => {
|
|
|
|
this.setState({ hasAcknowledged: true });
|
|
|
|
}, 1000);
|
|
|
|
};
|
2017-09-04 00:04:27 +00:00
|
|
|
}
|