master
lza_menace 2 years ago
parent cb0381ff4e
commit c366dcd099

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.6 KiB

@ -18,8 +18,8 @@ body {
--orange: #fd7702; --orange: #fd7702;
--yellow: #ffbb00; --yellow: #ffbb00;
--background: var(--white); --background: var(--black);
--accent: var(--black); --accent: var(--white);
margin: 0; margin: 0;
padding: 0; padding: 0;
@ -96,4 +96,8 @@ nav::before {
.wrap { .wrap {
word-break: break-word; word-break: break-word;
}
.hidden {
display: none;
} }

@ -27,8 +27,21 @@
#heroText { #heroText {
padding-top: 20vh; padding-top: 20vh;
font-size: 4em; font-size: 4em;
width: 80%; width: 75%;
text-align: center; text-align: center;
margin: 2em auto .5em auto; margin: 0 auto;
}
#heroImage {
max-width: 300px;
margin: 0 auto;
animation: fadeIn 4s ease-in;
} }
@keyframes fadeIn {
0% { opacity: 0 }
25% { opacity: .05 }
50% { opacity: .10 }
75% { opacity: .5 }
100% { opacity: 1 }
}

@ -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>
) )
} }

Loading…
Cancel
Save