Skip to content

Commit

Permalink
added data upload page
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoleSorokin committed Nov 5, 2023
1 parent 038a596 commit 11e7fce
Showing 1 changed file with 114 additions and 0 deletions.
114 changes: 114 additions & 0 deletions frontend/src/pages/upload.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
import * as React from "react";
import Container from "@mui/material/Container";
import Box from "@mui/material/Box";
import Typography from "@mui/material/Typography";
import CloudUploadIcon from "@mui/icons-material/CloudUpload";
import FolderIcon from "@mui/icons-material/Folder";

function Upload() {
return (
<Container maxWidth="xl" sx={{ textAlign: "center", marginY: 4 }}>
<Typography variant="h2" sx={{ marginBottom: 2, fontSize: "40px" }}>
Upload Your Datasets Here!
</Typography>
<Box
sx={{
display: "flex",
flexDirection: "column",
alignItems: "center",
margin: "0 20px",
}}
>
<Box
sx={{
width: "100%",
height: 350,
backgroundColor: "#3435fc",
marginBottom: 2,
display: "flex",
flexDirection: "column",
alignItems: "flex-start",
justifyContent: "center",
borderRadius: 5,
color: "white",
padding: "20px",
}}
>
<Typography variant="h2" sx={{ fontSize: "24px", fontWeight: "bold", textAlign: "left", marginLeft: 2 }}>
Your Datasets
</Typography>

<Box
sx={{
width: "96%",
height: 200,
backgroundColor: "white",
margin: "16px",
borderRadius: 0.5,
display: "flex",
alignItems: "center",
justifyContent: "center",
}}
>
</Box>
</Box>
<Box
sx={{
display: "flex",
gap: 2,
width: "100%",
}}
>
<Box
sx={{
width: "50%",
height: 200,
backgroundColor: "#cbd1da",
display: "flex",
flexDirection: "column",
alignItems: "center",
justifyContent: "center",
borderRadius: 5,
}}
>
<Typography variant="h2" sx={{ fontSize: "22px", marginBottom: 2 }}>
Drag Files to Upload
</Typography>
<CloudUploadIcon sx={{ fontSize: 38, color: "black" }} />
</Box>

<Box
sx={{
width: "50%",
height: 200,
backgroundColor: "#479941",
display: "flex",
flexDirection: "column",
justifyContent: "flex-start",
borderRadius: 5,
}}
>
<div style={{ display: "flex", alignItems: "center" }}>
<FolderIcon sx={{ fontSize: 35, color: "white", marginRight: 2, marginLeft: 2, marginTop: 1 }} />

<Typography variant="h2" sx={{ fontSize: "20px", color: "white", marginTop: 1 }}>
Select Example Datasets
</Typography>
</div>

<div
style={{
width: "100%",
height: 1,
backgroundColor: "white",
margin: "5px 0",
}}
></div>
</Box>
</Box>
</Box>
</Container>
);
}

export default Upload;

0 comments on commit 11e7fce

Please sign in to comment.