forked from lafeo/EK-IEEE
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhome.jsx
46 lines (40 loc) · 1.21 KB
/
home.jsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import React, { useEffect, useState } from "react";
import "./home.scss";
import { useSpring, animated } from "react-spring";
import $ from "jquery";
import MyVerticallyCenteredModal from "components/Modal/Modal";
const Home = () => {
const [modalShow, setModalShow] = useState(false);
const props = useSpring({
from: { transform: "scale(1.5)", overflow: "hidden" },
to: { transform: "scale(1)", overflow: "hidden" },
config: { duration: 500 },
});
useEffect(() => {
$("#root").addClass("overflow-none");
setTimeout(() => {
$("#root").removeClass("overflow-none");
}, 1000);
}, []);
return (
<animated.section style={props} className="home">
<div className="bg-skew">
</div>
<div className="center-out">
<h2>
{" "}
<b>You are doing well! Lets converse </b>
</h2>
<h4>To get started click the button below</h4>
<div className="call-button" onClick={() => setModalShow(!modalShow)}>
<i className="fas fa-phone-alt"></i>
</div>
</div>
<MyVerticallyCenteredModal
show={modalShow}
onHide={() => setModalShow(false)}
/>
</animated.section>
);
};
export default Home;