-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDashboard.tsx
62 lines (59 loc) · 1.83 KB
/
Dashboard.tsx
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
import React from "react";
import { EuiCard, EuiFlexGroup, EuiFlexItem, EuiImage } from "@elastic/eui";
import { useNavigate } from "react-router-dom";
import dashboard1 from "../assets/dashboard1.png";
import dashboard2 from "../assets/dashboard2.png";
import dashboard3 from "../assets/dashboard3.png";
import Header from "../components/Header";
import useAuth from "../hooks/useAuth";
function Dashboard() {
useAuth();
const navigate = useNavigate();
return (
<>
<div
style={{
display: "flex",
height: "100vh",
flexDirection: "column",
}}
>
<Header />
<EuiFlexGroup
justifyContent="center"
alignItems="center"
style={{ margin: "5vh 10vw" }}
>
<EuiFlexItem>
<EuiCard
icon={<EuiImage src={dashboard1} alt="icon" size="5rem" />}
title={`Create Meeting`}
description="Create a new meeting and invite people."
onClick={() => navigate("/create")}
paddingSize="xl"
/>
</EuiFlexItem>
<EuiFlexItem>
<EuiCard
icon={<EuiImage src={dashboard2} alt="icon" size="100%" />}
title={`My Meetings`}
description="View your created meetings."
onClick={() => navigate("/mymeetings")}
paddingSize="xl"
/>
</EuiFlexItem>
<EuiFlexItem>
<EuiCard
icon={<EuiImage src={dashboard3} alt="icon" size="5rem" />}
title={`Meetings`}
description="View the meetings that you are invited to."
onClick={() => navigate("/meetings")}
paddingSize="xl"
/>
</EuiFlexItem>
</EuiFlexGroup>
</div>
</>
);
}
export default Dashboard;