|
|
@ -2,15 +2,19 @@ import React from 'react';
|
|
|
|
import Typewriter from 'react-ts-typewriter';
|
|
|
|
import Typewriter from 'react-ts-typewriter';
|
|
|
|
|
|
|
|
|
|
|
|
import { Panel } from "./Panel";
|
|
|
|
import { Panel } from "./Panel";
|
|
|
|
|
|
|
|
import Boomer from '../img/unaboomer.png';
|
|
|
|
import '../styles/sections.css';
|
|
|
|
import '../styles/sections.css';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export class Section1 extends React.Component {
|
|
|
|
export class Section1 extends React.Component {
|
|
|
|
constructor(props) {
|
|
|
|
constructor(props) {
|
|
|
|
super(props);
|
|
|
|
super(props);
|
|
|
|
this.state = {title: ''};
|
|
|
|
this.state = {title: '', showImage: false};
|
|
|
|
setInterval(() => {
|
|
|
|
setInterval(() => {
|
|
|
|
this.setState({title: 'The Web3 Revolution and it\'s consequences have been a disaster for the human race.'});
|
|
|
|
this.setState({
|
|
|
|
|
|
|
|
title: 'The Web3 Revolution and it\'s consequences have been a disaster for the human race.',
|
|
|
|
|
|
|
|
showImage: true
|
|
|
|
|
|
|
|
});
|
|
|
|
}, 1200);
|
|
|
|
}, 1200);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -20,6 +24,8 @@ export class Section1 extends React.Component {
|
|
|
|
<h1 id="heroText">
|
|
|
|
<h1 id="heroText">
|
|
|
|
<Typewriter text={this.state.title} cursor={true} />
|
|
|
|
<Typewriter text={this.state.title} cursor={true} />
|
|
|
|
</h1>
|
|
|
|
</h1>
|
|
|
|
|
|
|
|
<img src={Boomer} id="heroImage" className={this.state.showImage || "hidden"} />
|
|
|
|
|
|
|
|
|
|
|
|
</section>
|
|
|
|
</section>
|
|
|
|
)
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|