Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion hackathon_site/dashboard/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"@material-ui/core": "^4.9.13",
"@material-ui/icons": "^4.9.1",
"@material-ui/lab": "^4.0.0-alpha.52",
"@mui/material": "^5.13.2",
"@reduxjs/toolkit": "^1.3.6",
"@types/jest": "^26.0.23",
"@types/node": "^15.0.2",
Expand Down Expand Up @@ -34,7 +35,7 @@
"yup": "^0.29.1"
},
"scripts": {
"start": "react-scripts start",
"start": "PORT=3000 react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,131 @@ import React from "react";
import Typography from "@material-ui/core/Typography";
import Header from "components/general/Header/Header";
import { hackathonName } from "constants.js";
import Box from "@material-ui/core/Box";
import Grid from "@material-ui/core/Grid";
import Paper from "@material-ui/core/Paper";
import { styled } from "@material-ui/core/styles";
import MemoryIcon from "@material-ui/icons/Memory";
import PeopleIcon from "@material-ui/icons/People";
import AccountBoxIcon from "@material-ui/icons/AccountBox";
import LocalMallIcon from "@material-ui/icons/LocalMall";
import BrokenImageIcon from "@material-ui/icons/BrokenImage";

const Item = styled(Paper)(({ theme }) => ({
backgroundColor: "#fff",
...theme.typography.body2,
padding: theme.spacing(1),
textAlign: "center",
color: theme.palette.text.secondary,
}));

const AdminDashboard = () => {
return (
<>
<Header />
<Typography variant="h1">{hackathonName} Admin Dashboard</Typography>
<div style={{ width: "100%" }}>
<Typography style={{ paddingBottom: "20px" }} variant="h1">
{hackathonName} Admin Dashboard
</Typography>
<Typography style={{ paddingBottom: "10px" }} variant="h2">
{" "}
Overview{" "}
</Typography>
<Box sx={{ flexGrow: 1 }}>
<Grid wrap="nowrap" container spacing={2}>
<Grid item xs={5} md={3}>
<Item>
<Box display="flex" alignItems="center">
<MemoryIcon />{" "}
<Typography
variant="inherit"
style={{
paddingLeft: "7px",
paddingBottom: "10px",
paddingTop: "10px",
color: "black",
}}
>
122 item's checked out
</Typography>
</Box>
</Item>
</Grid>
<Grid item xs={5} md={3}>
<Item>
<Box display="flex" alignItems="center">
<PeopleIcon />{" "}
<Typography
variant="inherit"
style={{
paddingLeft: "7px",
paddingBottom: "10px",
paddingTop: "10px",
color: "black",
}}
>
200 participants
</Typography>
</Box>
</Item>
</Grid>
<Grid item xs={5} md={3}>
<Item>
<Box display="flex" alignItems="center">
<AccountBoxIcon />{" "}
<Typography
variant="inherit"
style={{
paddingLeft: "7px",
paddingBottom: "10px",
paddingTop: "10px",
color: "black",
}}
>
14 teams
</Typography>
</Box>
</Item>
</Grid>
<Grid item xs={5} md={3}>
<Item>
<Box display="flex" alignItems="center">
<LocalMallIcon />{" "}
<Typography
variant="inherit"
style={{
paddingLeft: "7px",
paddingBottom: "10px",
paddingTop: "10px",
color: "black",
}}
>
123 orders
</Typography>
</Box>
</Item>
</Grid>
<Grid item xs={5} md={3}>
<Item>
<Box display="flex" alignItems="center">
<BrokenImageIcon />{" "}
<Typography
variant="inherit"
style={{
paddingLeft: "7px",
paddingBottom: "10px",
paddingTop: "10px",
color: "black",
}}
>
7 broken/lost items
</Typography>
</Box>
</Item>
</Grid>
</Grid>
</Box>
</div>
</>
);
};
Expand Down
Loading