first commit
This commit is contained in:
@@ -0,0 +1,218 @@
|
||||
import React from "react";
|
||||
import Grid from "@mui/material/Grid";
|
||||
import { Box, Typography } from "@mui/material";
|
||||
import Card from "@mui/material/Card";
|
||||
import Menu from "@mui/material/Menu";
|
||||
import MenuItem from "@mui/material/MenuItem";
|
||||
import IconButton from "@mui/material/IconButton";
|
||||
import MoreHorizIcon from "@mui/icons-material/MoreHoriz";
|
||||
|
||||
const AssetsData = [
|
||||
{
|
||||
id: "1",
|
||||
icon: "/images/folder.png",
|
||||
title: "Projects",
|
||||
totalFiles: "387 Files",
|
||||
filesSize: "4.5 GB",
|
||||
},
|
||||
{
|
||||
id: "2",
|
||||
icon: "/images/folder.png",
|
||||
title: "Documents",
|
||||
totalFiles: "1572 Files",
|
||||
filesSize: "7.5 GB",
|
||||
},
|
||||
{
|
||||
id: "3",
|
||||
icon: "/images/folder.png",
|
||||
title: "Media",
|
||||
totalFiles: "1241 Files",
|
||||
filesSize: "2.8 GB",
|
||||
},
|
||||
{
|
||||
id: "4",
|
||||
icon: "/images/folder.png",
|
||||
title: "Applications",
|
||||
totalFiles: "2487 Files",
|
||||
filesSize: "4.5 GB",
|
||||
},
|
||||
{
|
||||
id: "5",
|
||||
icon: "/images/folder.png",
|
||||
title: "ET Template",
|
||||
totalFiles: "60 Files",
|
||||
filesSize: "8 GB",
|
||||
},
|
||||
{
|
||||
id: "6",
|
||||
icon: "/images/folder.png",
|
||||
title: "React Template",
|
||||
totalFiles: "120 Files",
|
||||
filesSize: "6.5 GB",
|
||||
},
|
||||
{
|
||||
id: "7",
|
||||
icon: "/images/folder.png",
|
||||
title: "Material UI",
|
||||
totalFiles: "40 Files",
|
||||
filesSize: "5.5 GB",
|
||||
},
|
||||
{
|
||||
id: "8",
|
||||
icon: "/images/folder.png",
|
||||
title: "WP Themes",
|
||||
totalFiles: "2487 Files",
|
||||
filesSize: "4.5 GB",
|
||||
},
|
||||
{
|
||||
id: "9",
|
||||
icon: "/images/folder.png",
|
||||
title: "Personal Photos",
|
||||
totalFiles: "2587 Files",
|
||||
filesSize: "14 GB",
|
||||
},
|
||||
{
|
||||
id: "10",
|
||||
icon: "/images/folder.png",
|
||||
title: "Mobile Apps",
|
||||
totalFiles: "55 Files",
|
||||
filesSize: "4.5 GB",
|
||||
},
|
||||
{
|
||||
id: "11",
|
||||
icon: "/images/folder.png",
|
||||
title: "Important Files",
|
||||
totalFiles: "200 Files",
|
||||
filesSize: "6.5 GB",
|
||||
},
|
||||
{
|
||||
id: "12",
|
||||
icon: "/images/folder.png",
|
||||
title: "Angular Template",
|
||||
totalFiles: "340 Files",
|
||||
filesSize: "7.5 GB",
|
||||
},
|
||||
];
|
||||
|
||||
const AllAssets = () => {
|
||||
const [anchorEl, setAnchorEl] = React.useState(null);
|
||||
const open = Boolean(anchorEl);
|
||||
const handleClick = (event) => {
|
||||
setAnchorEl(event.currentTarget);
|
||||
};
|
||||
const handleClose = () => {
|
||||
setAnchorEl(null);
|
||||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
<Grid
|
||||
container
|
||||
rowSpacing={1}
|
||||
columnSpacing={{ xs: 1, sm: 1, md: 1, lg: 1, xl: 2 }}
|
||||
>
|
||||
{AssetsData.map((asset) => (
|
||||
<Grid item xs={12} sm={6} md={6} lg={6} xl={3} key={asset.id}>
|
||||
<Card
|
||||
sx={{
|
||||
boxShadow: "none",
|
||||
borderRadius: "10px",
|
||||
p: "15px 20px 20px",
|
||||
mb: "15px",
|
||||
}}
|
||||
>
|
||||
<Box
|
||||
sx={{
|
||||
display: "flex",
|
||||
justifyContent: "end",
|
||||
}}
|
||||
>
|
||||
<Box>
|
||||
<IconButton
|
||||
onClick={handleClick}
|
||||
size="small"
|
||||
aria-controls={open ? "account-menu" : undefined}
|
||||
aria-haspopup="true"
|
||||
aria-expanded={open ? "true" : undefined}
|
||||
>
|
||||
<MoreHorizIcon />
|
||||
</IconButton>
|
||||
</Box>
|
||||
<Menu
|
||||
anchorEl={anchorEl}
|
||||
id="account-menu"
|
||||
open={open}
|
||||
onClose={handleClose}
|
||||
onClick={handleClose}
|
||||
PaperProps={{
|
||||
elevation: 0,
|
||||
sx: {
|
||||
overflow: "visible",
|
||||
filter: "drop-shadow(0px 2px 8px rgba(229,229,229,0.32))",
|
||||
mt: 1.5,
|
||||
"& .MuiAvatar-root": {
|
||||
width: 32,
|
||||
height: 32,
|
||||
ml: -0.5,
|
||||
mr: 1,
|
||||
},
|
||||
"&:before": {
|
||||
content: '""',
|
||||
display: "block",
|
||||
position: "absolute",
|
||||
top: 0,
|
||||
right: 14,
|
||||
width: 10,
|
||||
height: 10,
|
||||
bgcolor: "background.paper",
|
||||
transform: "translateY(-50%) rotate(45deg)",
|
||||
zIndex: 0,
|
||||
},
|
||||
},
|
||||
}}
|
||||
transformOrigin={{ horizontal: "right", vertical: "top" }}
|
||||
anchorOrigin={{ horizontal: "right", vertical: "bottom" }}
|
||||
>
|
||||
<MenuItem sx={{ fontSize: "13px" }}>
|
||||
<i className="ri-edit-2-line mr-5px"></i> Rename
|
||||
</MenuItem>
|
||||
<MenuItem sx={{ fontSize: "13px" }}>
|
||||
<i className="ri-download-cloud-line mr-5px"></i> Download
|
||||
</MenuItem>
|
||||
<MenuItem sx={{ fontSize: "13px" }}>
|
||||
<i className="ri-delete-bin-line mr-5px"></i> Remove
|
||||
</MenuItem>
|
||||
</Menu>
|
||||
</Box>
|
||||
|
||||
<Box
|
||||
sx={{
|
||||
textAlign: "center",
|
||||
padding: "30px 0",
|
||||
}}
|
||||
>
|
||||
<img src={asset.icon} alt="folder" />
|
||||
<Typography as="h3" fontWeight="500" fontSize="14px" mt="10px">
|
||||
{asset.title}
|
||||
</Typography>
|
||||
</Box>
|
||||
|
||||
<Box
|
||||
sx={{
|
||||
display: "flex",
|
||||
justifyContent: "space-between",
|
||||
alignItems: "center",
|
||||
}}
|
||||
>
|
||||
<Typography>{asset.totalFiles}</Typography>
|
||||
<Typography>{asset.filesSize}</Typography>
|
||||
</Box>
|
||||
</Card>
|
||||
</Grid>
|
||||
))}
|
||||
</Grid>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default AllAssets;
|
||||
@@ -0,0 +1,218 @@
|
||||
import React from "react";
|
||||
import Grid from "@mui/material/Grid";
|
||||
import { Box, Typography } from "@mui/material";
|
||||
import Card from "@mui/material/Card";
|
||||
import Menu from "@mui/material/Menu";
|
||||
import MenuItem from "@mui/material/MenuItem";
|
||||
import IconButton from "@mui/material/IconButton";
|
||||
import MoreHorizIcon from "@mui/icons-material/MoreHoriz";
|
||||
|
||||
const ProjectsData = [
|
||||
{
|
||||
id: "1",
|
||||
icon: "/images/folder.png",
|
||||
title: "ET Template",
|
||||
totalFiles: "60 Files",
|
||||
filesSize: "8 GB",
|
||||
},
|
||||
{
|
||||
id: "2",
|
||||
icon: "/images/folder.png",
|
||||
title: "React Template",
|
||||
totalFiles: "120 Files",
|
||||
filesSize: "6.5 GB",
|
||||
},
|
||||
{
|
||||
id: "3",
|
||||
icon: "/images/folder.png",
|
||||
title: "Material UI",
|
||||
totalFiles: "40 Files",
|
||||
filesSize: "5.5 GB",
|
||||
},
|
||||
{
|
||||
id: "4",
|
||||
icon: "/images/folder.png",
|
||||
title: "WP Themes",
|
||||
totalFiles: "2487 Files",
|
||||
filesSize: "4.5 GB",
|
||||
},
|
||||
{
|
||||
id: "5",
|
||||
icon: "/images/folder.png",
|
||||
title: "Personal Photos",
|
||||
totalFiles: "2587 Files",
|
||||
filesSize: "14 GB",
|
||||
},
|
||||
{
|
||||
id: "6",
|
||||
icon: "/images/folder.png",
|
||||
title: "Mobile Apps",
|
||||
totalFiles: "55 Files",
|
||||
filesSize: "4.5 GB",
|
||||
},
|
||||
{
|
||||
id: "7",
|
||||
icon: "/images/folder.png",
|
||||
title: "Important Files",
|
||||
totalFiles: "200 Files",
|
||||
filesSize: "6.5 GB",
|
||||
},
|
||||
{
|
||||
id: "8",
|
||||
icon: "/images/folder.png",
|
||||
title: "Angular Template",
|
||||
totalFiles: "340 Files",
|
||||
filesSize: "7.5 GB",
|
||||
},
|
||||
{
|
||||
id: "9",
|
||||
icon: "/images/folder.png",
|
||||
title: "Projects",
|
||||
totalFiles: "387 Files",
|
||||
filesSize: "4.5 GB",
|
||||
},
|
||||
{
|
||||
id: "10",
|
||||
icon: "/images/folder.png",
|
||||
title: "Documents",
|
||||
totalFiles: "1572 Files",
|
||||
filesSize: "7.5 GB",
|
||||
},
|
||||
{
|
||||
id: "11",
|
||||
icon: "/images/folder.png",
|
||||
title: "Media",
|
||||
totalFiles: "1241 Files",
|
||||
filesSize: "2.8 GB",
|
||||
},
|
||||
{
|
||||
id: "12",
|
||||
icon: "/images/folder.png",
|
||||
title: "Applications",
|
||||
totalFiles: "2487 Files",
|
||||
filesSize: "4.5 GB",
|
||||
},
|
||||
];
|
||||
|
||||
const AllProjects = () => {
|
||||
const [anchorEl, setAnchorEl] = React.useState(null);
|
||||
const open = Boolean(anchorEl);
|
||||
const handleClick = (event) => {
|
||||
setAnchorEl(event.currentTarget);
|
||||
};
|
||||
const handleClose = () => {
|
||||
setAnchorEl(null);
|
||||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
<Grid
|
||||
container
|
||||
rowSpacing={1}
|
||||
columnSpacing={{ xs: 1, sm: 1, md: 1, lg: 1, xl: 2 }}
|
||||
>
|
||||
{ProjectsData.map((project) => (
|
||||
<Grid item xs={12} sm={6} md={6} lg={6} xl={3} key={project.id}>
|
||||
<Card
|
||||
sx={{
|
||||
boxShadow: "none",
|
||||
borderRadius: "10px",
|
||||
p: "15px 20px 20px",
|
||||
mb: "15px",
|
||||
}}
|
||||
>
|
||||
<Box
|
||||
sx={{
|
||||
display: "flex",
|
||||
justifyContent: "end",
|
||||
}}
|
||||
>
|
||||
<Box>
|
||||
<IconButton
|
||||
onClick={handleClick}
|
||||
size="small"
|
||||
aria-controls={open ? "account-menu" : undefined}
|
||||
aria-haspopup="true"
|
||||
aria-expanded={open ? "true" : undefined}
|
||||
>
|
||||
<MoreHorizIcon />
|
||||
</IconButton>
|
||||
</Box>
|
||||
<Menu
|
||||
anchorEl={anchorEl}
|
||||
id="account-menu"
|
||||
open={open}
|
||||
onClose={handleClose}
|
||||
onClick={handleClose}
|
||||
PaperProps={{
|
||||
elevation: 0,
|
||||
sx: {
|
||||
overflow: "visible",
|
||||
filter: "drop-shadow(0px 2px 8px rgba(229,229,229,0.32))",
|
||||
mt: 1.5,
|
||||
"& .MuiAvatar-root": {
|
||||
width: 32,
|
||||
height: 32,
|
||||
ml: -0.5,
|
||||
mr: 1,
|
||||
},
|
||||
"&:before": {
|
||||
content: '""',
|
||||
display: "block",
|
||||
position: "absolute",
|
||||
top: 0,
|
||||
right: 14,
|
||||
width: 10,
|
||||
height: 10,
|
||||
bgcolor: "background.paper",
|
||||
transform: "translateY(-50%) rotate(45deg)",
|
||||
zIndex: 0,
|
||||
},
|
||||
},
|
||||
}}
|
||||
transformOrigin={{ horizontal: "right", vertical: "top" }}
|
||||
anchorOrigin={{ horizontal: "right", vertical: "bottom" }}
|
||||
>
|
||||
<MenuItem sx={{ fontSize: "13px" }}>
|
||||
<i className="ri-edit-2-line mr-5px"></i> Rename
|
||||
</MenuItem>
|
||||
<MenuItem sx={{ fontSize: "13px" }}>
|
||||
<i className="ri-download-cloud-line mr-5px"></i> Download
|
||||
</MenuItem>
|
||||
<MenuItem sx={{ fontSize: "13px" }}>
|
||||
<i className="ri-delete-bin-line mr-5px"></i> Remove
|
||||
</MenuItem>
|
||||
</Menu>
|
||||
</Box>
|
||||
|
||||
<Box
|
||||
sx={{
|
||||
textAlign: "center",
|
||||
padding: "30px 0",
|
||||
}}
|
||||
>
|
||||
<img src={project.icon} alt="folder" />
|
||||
<Typography as="h3" fontWeight="500" fontSize="14px" mt="10px">
|
||||
{project.title}
|
||||
</Typography>
|
||||
</Box>
|
||||
|
||||
<Box
|
||||
sx={{
|
||||
display: "flex",
|
||||
justifyContent: "space-between",
|
||||
alignItems: "center",
|
||||
}}
|
||||
>
|
||||
<Typography>{project.totalFiles}</Typography>
|
||||
<Typography>{project.filesSize}</Typography>
|
||||
</Box>
|
||||
</Card>
|
||||
</Grid>
|
||||
))}
|
||||
</Grid>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default AllProjects;
|
||||
@@ -0,0 +1,469 @@
|
||||
import React from "react";
|
||||
import { Box, Typography } from "@mui/material";
|
||||
import Grid from "@mui/material/Grid";
|
||||
import Card from "@mui/material/Card";
|
||||
import Table from "@mui/material/Table";
|
||||
import TableBody from "@mui/material/TableBody";
|
||||
import TableCell from "@mui/material/TableCell";
|
||||
import TableContainer from "@mui/material/TableContainer";
|
||||
import TableHead from "@mui/material/TableHead";
|
||||
import TableRow from "@mui/material/TableRow";
|
||||
import Paper from "@mui/material/Paper";
|
||||
import Tooltip from "@mui/material/Tooltip";
|
||||
import IconButton from "@mui/material/IconButton";
|
||||
import DeleteIcon from "@mui/icons-material/Delete";
|
||||
import CloudDownloadIcon from "@mui/icons-material/CloudDownload";
|
||||
import DriveFileRenameOutlineIcon from "@mui/icons-material/DriveFileRenameOutline";
|
||||
import Backdrop from "@mui/material/Backdrop";
|
||||
import Button from "@mui/material/Button";
|
||||
import Fade from "@mui/material/Fade";
|
||||
import Modal from "@mui/material/Modal";
|
||||
import TextField from "@mui/material/TextField";
|
||||
import AddIcon from "@mui/icons-material/Add";
|
||||
import ClearIcon from "@mui/icons-material/Clear";
|
||||
|
||||
// Create Folder Modal Style
|
||||
const style = {
|
||||
position: "absolute",
|
||||
top: "50%",
|
||||
left: "50%",
|
||||
transform: "translate(-50%, -50%)",
|
||||
maxWidth: 500,
|
||||
width: "100%",
|
||||
bgcolor: "background.paper",
|
||||
boxShadow: 24,
|
||||
borderRadius: "8px",
|
||||
};
|
||||
|
||||
function createData(name, icon, owner, fileSize, listedDate, fileItem) {
|
||||
return { name, icon, owner, fileSize, listedDate, fileItem };
|
||||
}
|
||||
|
||||
const rows = [
|
||||
createData(
|
||||
"Product UI/UX Design",
|
||||
"/images/folder.png",
|
||||
"Danielle Thompson",
|
||||
"0.7 GB",
|
||||
"Mar 08, 2021",
|
||||
"02"
|
||||
),
|
||||
createData(
|
||||
"App Design & Development",
|
||||
"/images/folder.png",
|
||||
"ET Themes",
|
||||
"521 MB",
|
||||
"Feb 13, 2021",
|
||||
"01"
|
||||
),
|
||||
createData(
|
||||
"Ubold Sketch Design",
|
||||
"/images/folder.png",
|
||||
"Gary Coley",
|
||||
"64.2 MB",
|
||||
"Dec 18, 2020",
|
||||
"02"
|
||||
),
|
||||
createData(
|
||||
"Annualreport.pdf",
|
||||
"/images/folder.png",
|
||||
"Cooper Sharwood",
|
||||
"12.5 GB",
|
||||
"Nov 25, 2020",
|
||||
"05"
|
||||
),
|
||||
createData(
|
||||
"Wireframes",
|
||||
"/images/folder.png",
|
||||
"Jasper Rigg",
|
||||
"8.3 MB",
|
||||
"Nov 25, 2019",
|
||||
"03"
|
||||
),
|
||||
createData(
|
||||
"App Design",
|
||||
"/images/folder.png",
|
||||
"ET Agency",
|
||||
"5 GB",
|
||||
"Jan 08, 2022",
|
||||
"15"
|
||||
),
|
||||
createData(
|
||||
"Web Design & Development",
|
||||
"/images/folder.png",
|
||||
"ET Templates",
|
||||
"13 GB",
|
||||
"Jan 13, 2022",
|
||||
"90"
|
||||
),
|
||||
createData(
|
||||
"React Template",
|
||||
"/images/folder.png",
|
||||
"ET Company",
|
||||
"100 GB",
|
||||
"Dec 18, 2021",
|
||||
"120"
|
||||
),
|
||||
createData(
|
||||
"Material Template",
|
||||
"/images/folder.png",
|
||||
"Cooper Sharwood",
|
||||
"12.5 GB",
|
||||
"Nov 25, 2020",
|
||||
"05"
|
||||
),
|
||||
createData(
|
||||
"Angular Template",
|
||||
"/images/folder.png",
|
||||
"Jasper Rigg",
|
||||
"8.3 MB",
|
||||
"Nov 25, 2019",
|
||||
"03"
|
||||
),
|
||||
];
|
||||
|
||||
const AllRecentFiles = () => {
|
||||
// Create Folder Modal
|
||||
const [open, setOpen] = React.useState(false);
|
||||
const handleOpen = () => setOpen(true);
|
||||
const handleClose = () => setOpen(false);
|
||||
|
||||
// Form
|
||||
const handleSubmit = (event) => {
|
||||
event.preventDefault();
|
||||
const data = new FormData(event.currentTarget);
|
||||
console.log({
|
||||
email: data.get("email"),
|
||||
password: data.get("password"),
|
||||
});
|
||||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
<Card
|
||||
sx={{
|
||||
boxShadow: "none",
|
||||
borderRadius: "10px",
|
||||
p: "25px",
|
||||
mb: "15px",
|
||||
}}
|
||||
>
|
||||
<Box
|
||||
sx={{
|
||||
display: "flex",
|
||||
justifyContent: "space-between",
|
||||
alignItems: "center",
|
||||
borderBottom: "1px solid #EEF0F7",
|
||||
paddingBottom: "10px",
|
||||
mb: "20px",
|
||||
}}
|
||||
className="for-dark-bottom-border"
|
||||
>
|
||||
<Typography
|
||||
as="h3"
|
||||
sx={{
|
||||
fontSize: 18,
|
||||
fontWeight: 600,
|
||||
}}
|
||||
>
|
||||
Recent Files
|
||||
</Typography>
|
||||
|
||||
<Button
|
||||
onClick={handleOpen}
|
||||
variant="contained"
|
||||
sx={{
|
||||
textTransform: "capitalize",
|
||||
borderRadius: "8px",
|
||||
fontWeight: "600",
|
||||
fontSize: "13px",
|
||||
padding: "12px 20px",
|
||||
color: "#fff !important",
|
||||
}}
|
||||
>
|
||||
<AddIcon
|
||||
sx={{ position: "relative", top: "-1px" }}
|
||||
className="mr-5px"
|
||||
/>{" "}
|
||||
Create Folder
|
||||
</Button>
|
||||
</Box>
|
||||
|
||||
<TableContainer
|
||||
component={Paper}
|
||||
sx={{
|
||||
boxShadow: "none",
|
||||
maxHeight: "650px",
|
||||
overflowY: "auto",
|
||||
}}
|
||||
>
|
||||
<Table
|
||||
sx={{ minWidth: 800 }}
|
||||
aria-label="simple table"
|
||||
className="dark-table"
|
||||
>
|
||||
<TableHead sx={{ background: "#F7FAFF" }}>
|
||||
<TableRow>
|
||||
<TableCell
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
|
||||
>
|
||||
Name
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
|
||||
>
|
||||
Owner
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
|
||||
>
|
||||
File Size
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
|
||||
>
|
||||
Listed Date
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
|
||||
>
|
||||
File Item
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="right"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
|
||||
>
|
||||
Actions
|
||||
</TableCell>
|
||||
</TableRow>
|
||||
</TableHead>
|
||||
|
||||
<TableBody>
|
||||
{rows.map((row) => (
|
||||
<TableRow
|
||||
key={row.name}
|
||||
sx={{ "&:last-child td, &:last-child th": { border: 0 } }}
|
||||
>
|
||||
<TableCell
|
||||
sx={{ borderBottom: "1px solid #F7FAFF" }}
|
||||
>
|
||||
<Box
|
||||
sx={{
|
||||
display: "flex",
|
||||
alignItems: "center",
|
||||
}}
|
||||
>
|
||||
<img src={row.icon} alt="Image" width="22px" />
|
||||
<Typography
|
||||
as="h5"
|
||||
fontWeight="600"
|
||||
fontSize="13px"
|
||||
className="ml-1"
|
||||
>
|
||||
{row.name}
|
||||
</Typography>
|
||||
</Box>
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13px" }}
|
||||
>
|
||||
{row.owner}
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13px" }}
|
||||
>
|
||||
{row.fileSize}
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13px" }}
|
||||
>
|
||||
{row.listedDate}
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13px" }}
|
||||
>
|
||||
{row.fileItem}
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="right"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF" }}
|
||||
>
|
||||
<Box
|
||||
sx={{
|
||||
display: "inline-block",
|
||||
}}
|
||||
>
|
||||
<Tooltip title="Remove" placement="top">
|
||||
<IconButton
|
||||
aria-label="remove"
|
||||
size="small"
|
||||
color="danger"
|
||||
className="danger"
|
||||
>
|
||||
<DeleteIcon fontSize="inherit" />
|
||||
</IconButton>
|
||||
</Tooltip>
|
||||
|
||||
<Tooltip title="Download" placement="top">
|
||||
<IconButton
|
||||
aria-label="download"
|
||||
size="small"
|
||||
color="success"
|
||||
className="success"
|
||||
>
|
||||
<CloudDownloadIcon fontSize="inherit" />
|
||||
</IconButton>
|
||||
</Tooltip>
|
||||
|
||||
<Tooltip title="Rename" placement="top">
|
||||
<IconButton
|
||||
aria-label="rename"
|
||||
size="small"
|
||||
color="primary"
|
||||
className="primary"
|
||||
>
|
||||
<DriveFileRenameOutlineIcon fontSize="inherit" />
|
||||
</IconButton>
|
||||
</Tooltip>
|
||||
</Box>
|
||||
</TableCell>
|
||||
</TableRow>
|
||||
))}
|
||||
</TableBody>
|
||||
</Table>
|
||||
</TableContainer>
|
||||
</Card>
|
||||
|
||||
{/* Create Folder Modal */}
|
||||
<Modal
|
||||
aria-labelledby="transition-modal-title"
|
||||
aria-describedby="transition-modal-description"
|
||||
open={open}
|
||||
onClose={handleClose}
|
||||
closeAfterTransition
|
||||
BackdropComponent={Backdrop}
|
||||
BackdropProps={{
|
||||
timeout: 500,
|
||||
}}
|
||||
>
|
||||
<Fade in={open}>
|
||||
<Box sx={style} className="dark-BG-101010">
|
||||
<Box
|
||||
sx={{
|
||||
display: "flex",
|
||||
justifyContent: "space-between",
|
||||
alignItems: "center",
|
||||
background: "#EDEFF5",
|
||||
borderRadius: "8px",
|
||||
padding: "25px 20px",
|
||||
}}
|
||||
className="bg-black"
|
||||
>
|
||||
<Typography
|
||||
id="modal-modal-title"
|
||||
variant="h6"
|
||||
component="h2"
|
||||
sx={{
|
||||
fontWeight: "600",
|
||||
fontSize: "20px",
|
||||
}}
|
||||
>
|
||||
Create Folder
|
||||
</Typography>
|
||||
|
||||
<IconButton
|
||||
aria-label="remove"
|
||||
size="small"
|
||||
onClick={handleClose}
|
||||
className="modal-close"
|
||||
>
|
||||
<ClearIcon />
|
||||
</IconButton>
|
||||
</Box>
|
||||
|
||||
<Box component="form" noValidate onSubmit={handleSubmit}>
|
||||
<Box
|
||||
sx={{
|
||||
background: "#fff",
|
||||
padding: "30px 20px",
|
||||
borderRadius: "8px",
|
||||
}}
|
||||
className="dark-BG-101010"
|
||||
>
|
||||
<Grid container alignItems="center" spacing={1}>
|
||||
<Grid item xs={12}>
|
||||
<Typography
|
||||
as="h5"
|
||||
sx={{
|
||||
fontWeight: "600",
|
||||
fontSize: "14px",
|
||||
mb: "12px",
|
||||
}}
|
||||
>
|
||||
Folder Name
|
||||
</Typography>
|
||||
<TextField
|
||||
autoComplete="given-name"
|
||||
name="folderName"
|
||||
required
|
||||
fullWidth
|
||||
id="folderName"
|
||||
label="Folder Name"
|
||||
autoFocus
|
||||
InputProps={{
|
||||
style: { borderRadius: 8 },
|
||||
}}
|
||||
/>
|
||||
</Grid>
|
||||
|
||||
<Grid item xs={12} textAlign="end">
|
||||
<Button
|
||||
type="submit"
|
||||
variant="contained"
|
||||
sx={{
|
||||
mt: 1,
|
||||
textTransform: "capitalize",
|
||||
borderRadius: "8px",
|
||||
fontWeight: "600",
|
||||
fontSize: "13px",
|
||||
padding: "12px 20px",
|
||||
color: "#fff !important",
|
||||
}}
|
||||
>
|
||||
<AddIcon
|
||||
sx={{
|
||||
position: "relative",
|
||||
top: "-2px",
|
||||
}}
|
||||
className="mr-5px"
|
||||
/>{" "}
|
||||
Add Folder
|
||||
</Button>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</Box>
|
||||
</Box>
|
||||
</Box>
|
||||
</Fade>
|
||||
</Modal>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default AllRecentFiles;
|
||||
@@ -0,0 +1,362 @@
|
||||
import React from "react";
|
||||
import { Box, Typography } from "@mui/material";
|
||||
import Grid from "@mui/material/Grid";
|
||||
import Card from "@mui/material/Card";
|
||||
import IconButton from "@mui/material/IconButton";
|
||||
import Backdrop from "@mui/material/Backdrop";
|
||||
import Button from "@mui/material/Button";
|
||||
import Fade from "@mui/material/Fade";
|
||||
import Modal from "@mui/material/Modal";
|
||||
import TextField from "@mui/material/TextField";
|
||||
import AddIcon from "@mui/icons-material/Add";
|
||||
import ClearIcon from "@mui/icons-material/Clear";
|
||||
|
||||
// Create Files Modal Style
|
||||
const style = {
|
||||
position: "absolute",
|
||||
top: "50%",
|
||||
left: "50%",
|
||||
transform: "translate(-50%, -50%)",
|
||||
maxWidth: 500,
|
||||
width: "100%",
|
||||
bgcolor: "background.paper",
|
||||
boxShadow: 24,
|
||||
borderRadius: "8px",
|
||||
};
|
||||
|
||||
const FilesData = [
|
||||
{
|
||||
id: "1",
|
||||
icon: "/images/file1.png",
|
||||
title: "sketch-design.zip",
|
||||
},
|
||||
{
|
||||
id: "2",
|
||||
icon: "/images/file2.png",
|
||||
title: "Compile.png",
|
||||
},
|
||||
{
|
||||
id: "3",
|
||||
icon: "/images/file3.png",
|
||||
title: "Integrations.pdf",
|
||||
},
|
||||
{
|
||||
id: "4",
|
||||
icon: "/images/file4.png",
|
||||
title: "contact @32",
|
||||
},
|
||||
{
|
||||
id: "5",
|
||||
icon: "/images/file5.png",
|
||||
title: "app-Design.doc",
|
||||
},
|
||||
{
|
||||
id: "6",
|
||||
icon: "/images/file6.png",
|
||||
title: "image02.png",
|
||||
},
|
||||
{
|
||||
id: "7",
|
||||
icon: "/images/file7.png",
|
||||
title: "Ubold-sketch.doc",
|
||||
},
|
||||
{
|
||||
id: "8",
|
||||
icon: "/images/file8.png",
|
||||
title: "Annualreport.txt",
|
||||
},
|
||||
{
|
||||
id: "9",
|
||||
icon: "/images/file9.png",
|
||||
title: "Wireframes.xl4",
|
||||
},
|
||||
{
|
||||
id: "10",
|
||||
icon: "/images/file10.png",
|
||||
title: "contact @32.jpg",
|
||||
},
|
||||
{
|
||||
id: "11",
|
||||
icon: "/images/file1.png",
|
||||
title: "sketch-design.zip",
|
||||
},
|
||||
{
|
||||
id: "12",
|
||||
icon: "/images/file2.png",
|
||||
title: "Compile.png",
|
||||
},
|
||||
{
|
||||
id: "13",
|
||||
icon: "/images/file3.png",
|
||||
title: "Integrations.pdf",
|
||||
},
|
||||
{
|
||||
id: "14",
|
||||
icon: "/images/file4.png",
|
||||
title: "contact @32",
|
||||
},
|
||||
{
|
||||
id: "15",
|
||||
icon: "/images/file5.png",
|
||||
title: "app-Design.doc",
|
||||
},
|
||||
{
|
||||
id: "16",
|
||||
icon: "/images/file6.png",
|
||||
title: "image02.png",
|
||||
},
|
||||
{
|
||||
id: "17",
|
||||
icon: "/images/file7.png",
|
||||
title: "Ubold-sketch.doc",
|
||||
},
|
||||
{
|
||||
id: "18",
|
||||
icon: "/images/file8.png",
|
||||
title: "Annualreport.txt",
|
||||
},
|
||||
{
|
||||
id: "19",
|
||||
icon: "/images/file9.png",
|
||||
title: "Wireframes.xl4",
|
||||
},
|
||||
{
|
||||
id: "20",
|
||||
icon: "/images/file10.png",
|
||||
title: "contact @32.jpg",
|
||||
},
|
||||
{
|
||||
id: "21",
|
||||
icon: "/images/file5.png",
|
||||
title: "app-Design.doc",
|
||||
},
|
||||
{
|
||||
id: "22",
|
||||
icon: "/images/file6.png",
|
||||
title: "image02.png",
|
||||
},
|
||||
{
|
||||
id: "23",
|
||||
icon: "/images/file7.png",
|
||||
title: "Ubold-sketch.doc",
|
||||
},
|
||||
{
|
||||
id: "24",
|
||||
icon: "/images/file8.png",
|
||||
title: "Annualreport.txt",
|
||||
},
|
||||
];
|
||||
|
||||
const DocumentsFiles = () => {
|
||||
// Create Files Modal
|
||||
const [open, setOpen] = React.useState(false);
|
||||
const handleOpen = () => setOpen(true);
|
||||
const handleClose = () => setOpen(false);
|
||||
|
||||
// Form
|
||||
const handleSubmit = (event) => {
|
||||
event.preventDefault();
|
||||
const data = new FormData(event.currentTarget);
|
||||
console.log({
|
||||
email: data.get("email"),
|
||||
password: data.get("password"),
|
||||
});
|
||||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
<Card
|
||||
sx={{
|
||||
boxShadow: "none",
|
||||
borderRadius: "10px",
|
||||
p: "25px",
|
||||
mb: "15px",
|
||||
}}
|
||||
>
|
||||
<Box
|
||||
sx={{
|
||||
display: "flex",
|
||||
justifyContent: "space-between",
|
||||
alignItems: "center",
|
||||
borderBottom: "1px solid #EEF0F7",
|
||||
paddingBottom: "10px",
|
||||
mb: "20px",
|
||||
}}
|
||||
className="for-dark-bottom-border"
|
||||
>
|
||||
<Typography
|
||||
as="h3"
|
||||
sx={{
|
||||
fontSize: 18,
|
||||
fontWeight: 500,
|
||||
}}
|
||||
>
|
||||
Documents
|
||||
</Typography>
|
||||
|
||||
<Button
|
||||
onClick={handleOpen}
|
||||
variant="contained"
|
||||
sx={{
|
||||
mt: 1,
|
||||
textTransform: "capitalize",
|
||||
borderRadius: "8px",
|
||||
fontWeight: "500",
|
||||
fontSize: "13px",
|
||||
padding: "12px 20px",
|
||||
color: "#fff !important",
|
||||
}}
|
||||
>
|
||||
<AddIcon
|
||||
sx={{ position: "relative", top: "-1px" }}
|
||||
className="mr-5px"
|
||||
/>{" "}
|
||||
Create Files
|
||||
</Button>
|
||||
</Box>
|
||||
|
||||
<Grid
|
||||
container
|
||||
rowSpacing={1}
|
||||
columnSpacing={{ xs: 1, sm: 1, md: 1, lg: 1, xl: 2 }}
|
||||
justifyContent="center"
|
||||
>
|
||||
{FilesData.map((file) => (
|
||||
<Grid item xs={12} sm={6} md={6} lg={4} xl={2} key={file.id}>
|
||||
<Box
|
||||
sx={{
|
||||
background: "#F3F6F9",
|
||||
borderRadius: "10px",
|
||||
padding: "40px 5px",
|
||||
textAlign: "center",
|
||||
}}
|
||||
className="dark-BG-101010"
|
||||
>
|
||||
<img src={file.icon} alt="Icon" width="56px" height="56px" />
|
||||
<Typography mt={1} fontWeight="500" fontSize="13px">
|
||||
{file.title}
|
||||
</Typography>
|
||||
</Box>
|
||||
</Grid>
|
||||
))}
|
||||
</Grid>
|
||||
</Card>
|
||||
|
||||
{/* Create Files Modal */}
|
||||
<Modal
|
||||
aria-labelledby="transition-modal-title"
|
||||
aria-describedby="transition-modal-description"
|
||||
open={open}
|
||||
onClose={handleClose}
|
||||
closeAfterTransition
|
||||
BackdropComponent={Backdrop}
|
||||
BackdropProps={{
|
||||
timeout: 500,
|
||||
}}
|
||||
>
|
||||
<Fade in={open}>
|
||||
<Box sx={style} className="dark-BG-101010">
|
||||
<Box
|
||||
sx={{
|
||||
display: "flex",
|
||||
justifyContent: "space-between",
|
||||
alignItems: "center",
|
||||
background: "#EDEFF5",
|
||||
borderRadius: "8px",
|
||||
padding: "25px 20px",
|
||||
}}
|
||||
className="bg-black"
|
||||
>
|
||||
<Typography
|
||||
id="modal-modal-title"
|
||||
variant="h6"
|
||||
component="h2"
|
||||
sx={{
|
||||
fontWeight: "500",
|
||||
fontSize: "20px",
|
||||
}}
|
||||
>
|
||||
Create Folder
|
||||
</Typography>
|
||||
|
||||
<IconButton
|
||||
aria-label="remove"
|
||||
size="small"
|
||||
onClick={handleClose}
|
||||
className="modal-close"
|
||||
>
|
||||
<ClearIcon />
|
||||
</IconButton>
|
||||
</Box>
|
||||
|
||||
<Box component="form" noValidate onSubmit={handleSubmit}>
|
||||
<Box
|
||||
sx={{
|
||||
background: "#fff",
|
||||
padding: "30px 20px",
|
||||
borderRadius: "8px",
|
||||
}}
|
||||
className="dark-BG-101010"
|
||||
>
|
||||
<Grid container alignItems="center" spacing={1}>
|
||||
<Grid item xs={12}>
|
||||
<Typography
|
||||
as="h5"
|
||||
sx={{
|
||||
fontWeight: "500",
|
||||
fontSize: "14px",
|
||||
mb: "12px",
|
||||
}}
|
||||
>
|
||||
Files Name
|
||||
</Typography>
|
||||
|
||||
<TextField
|
||||
autoComplete="given-name"
|
||||
name="filesName"
|
||||
required
|
||||
fullWidth
|
||||
id="filesName"
|
||||
label="Files Name"
|
||||
autoFocus
|
||||
InputProps={{
|
||||
style: { borderRadius: 8 },
|
||||
}}
|
||||
/>
|
||||
</Grid>
|
||||
|
||||
<Grid item xs={12} textAlign="end">
|
||||
<Button
|
||||
type="submit"
|
||||
variant="contained"
|
||||
sx={{
|
||||
mt: 1,
|
||||
textTransform: "capitalize",
|
||||
borderRadius: "8px",
|
||||
fontWeight: "500",
|
||||
fontSize: "13px",
|
||||
padding: "12px 20px",
|
||||
color: "#fff !important",
|
||||
}}
|
||||
>
|
||||
<AddIcon
|
||||
sx={{
|
||||
position: "relative",
|
||||
top: "-2px",
|
||||
}}
|
||||
className="mr-5px"
|
||||
/>{" "}
|
||||
Add Files
|
||||
</Button>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</Box>
|
||||
</Box>
|
||||
</Box>
|
||||
</Fade>
|
||||
</Modal>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default DocumentsFiles;
|
||||
@@ -0,0 +1,291 @@
|
||||
import React from "react";
|
||||
import { Box, Typography } from "@mui/material";
|
||||
import Grid from "@mui/material/Grid";
|
||||
import Card from "@mui/material/Card";
|
||||
import IconButton from "@mui/material/IconButton";
|
||||
import Backdrop from "@mui/material/Backdrop";
|
||||
import Button from "@mui/material/Button";
|
||||
import Fade from "@mui/material/Fade";
|
||||
import Modal from "@mui/material/Modal";
|
||||
import TextField from "@mui/material/TextField";
|
||||
import AddIcon from "@mui/icons-material/Add";
|
||||
import ClearIcon from "@mui/icons-material/Clear";
|
||||
|
||||
// Create Files Modal Style
|
||||
const style = {
|
||||
position: "absolute",
|
||||
top: "50%",
|
||||
left: "50%",
|
||||
transform: "translate(-50%, -50%)",
|
||||
maxWidth: 500,
|
||||
width: "100%",
|
||||
bgcolor: "background.paper",
|
||||
boxShadow: 24,
|
||||
borderRadius: "8px",
|
||||
};
|
||||
|
||||
const FilesData = [
|
||||
{
|
||||
id: "1",
|
||||
icon: "/images/file1.png",
|
||||
title: "sketch-design.zip",
|
||||
},
|
||||
{
|
||||
id: "2",
|
||||
icon: "/images/file2.png",
|
||||
title: "Compile.png",
|
||||
},
|
||||
{
|
||||
id: "3",
|
||||
icon: "/images/file3.png",
|
||||
title: "Integrations.pdf",
|
||||
},
|
||||
{
|
||||
id: "4",
|
||||
icon: "/images/file4.png",
|
||||
title: "contact @32",
|
||||
},
|
||||
{
|
||||
id: "5",
|
||||
icon: "/images/file5.png",
|
||||
title: "app-Design.doc",
|
||||
},
|
||||
{
|
||||
id: "6",
|
||||
icon: "/images/file6.png",
|
||||
title: "image02.png",
|
||||
},
|
||||
{
|
||||
id: "7",
|
||||
icon: "/images/file7.png",
|
||||
title: "Ubold-sketch.doc",
|
||||
},
|
||||
{
|
||||
id: "8",
|
||||
icon: "/images/file8.png",
|
||||
title: "Annualreport.txt",
|
||||
},
|
||||
{
|
||||
id: "9",
|
||||
icon: "/images/file9.png",
|
||||
title: "Wireframes.xl4",
|
||||
},
|
||||
{
|
||||
id: "10",
|
||||
icon: "/images/file10.png",
|
||||
title: "contact @32.jpg",
|
||||
},
|
||||
];
|
||||
|
||||
const Files = () => {
|
||||
// Create Files Modal
|
||||
const [open, setOpen] = React.useState(false);
|
||||
const handleOpen = () => setOpen(true);
|
||||
const handleClose = () => setOpen(false);
|
||||
|
||||
// Form
|
||||
const handleSubmit = (event) => {
|
||||
event.preventDefault();
|
||||
const data = new FormData(event.currentTarget);
|
||||
console.log({
|
||||
email: data.get("email"),
|
||||
password: data.get("password"),
|
||||
});
|
||||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
<Card
|
||||
sx={{
|
||||
boxShadow: "none",
|
||||
borderRadius: "10px",
|
||||
p: "25px",
|
||||
mb: "15px",
|
||||
}}
|
||||
>
|
||||
<Box
|
||||
sx={{
|
||||
display: "flex",
|
||||
justifyContent: "space-between",
|
||||
alignItems: "center",
|
||||
borderBottom: "1px solid #EEF0F7",
|
||||
paddingBottom: "10px",
|
||||
mb: "20px",
|
||||
}}
|
||||
className="for-dark-bottom-border"
|
||||
>
|
||||
<Typography
|
||||
as="h3"
|
||||
sx={{
|
||||
fontSize: 18,
|
||||
fontWeight: 500,
|
||||
}}
|
||||
>
|
||||
Files
|
||||
</Typography>
|
||||
|
||||
<Button
|
||||
onClick={handleOpen}
|
||||
variant="contained"
|
||||
sx={{
|
||||
textTransform: "capitalize",
|
||||
borderRadius: "8px",
|
||||
fontWeight: "500",
|
||||
fontSize: "13px",
|
||||
padding: "12px 20px",
|
||||
color: "#fff !important",
|
||||
}}
|
||||
>
|
||||
<AddIcon
|
||||
sx={{ position: "relative", top: "-1px" }}
|
||||
className="mr-5px"
|
||||
/>{" "}
|
||||
Create Files
|
||||
</Button>
|
||||
</Box>
|
||||
|
||||
<Grid
|
||||
container
|
||||
rowSpacing={1}
|
||||
columnSpacing={{ xs: 1, sm: 1, md: 1, lg: 1, xl: 2 }}
|
||||
justifyContent="center"
|
||||
>
|
||||
{FilesData.map((file) => (
|
||||
<Grid item xs={12} sm={6} md={4} lg={4} xl={2} key={file.id}>
|
||||
<Box
|
||||
sx={{
|
||||
background: "#F3F6F9",
|
||||
borderRadius: "10px",
|
||||
padding: "40px 5px",
|
||||
textAlign: "center",
|
||||
}}
|
||||
className="dark-BG-101010"
|
||||
>
|
||||
<img src={file.icon} alt="Icon" width="56px" height="56px" />
|
||||
<Typography mt={1} fontWeight="500" fontSize="13px">
|
||||
{file.title}
|
||||
</Typography>
|
||||
</Box>
|
||||
</Grid>
|
||||
))}
|
||||
</Grid>
|
||||
</Card>
|
||||
|
||||
{/* Create Files Modal */}
|
||||
<Modal
|
||||
aria-labelledby="transition-modal-title"
|
||||
aria-describedby="transition-modal-description"
|
||||
open={open}
|
||||
onClose={handleClose}
|
||||
closeAfterTransition
|
||||
BackdropComponent={Backdrop}
|
||||
BackdropProps={{
|
||||
timeout: 500,
|
||||
}}
|
||||
>
|
||||
<Fade in={open}>
|
||||
<Box sx={style} className="dark-BG-101010">
|
||||
<Box
|
||||
sx={{
|
||||
display: "flex",
|
||||
justifyContent: "space-between",
|
||||
alignItems: "center",
|
||||
background: "#EDEFF5",
|
||||
borderRadius: "8px",
|
||||
padding: "25px 20px",
|
||||
}}
|
||||
className="bg-black"
|
||||
>
|
||||
<Typography
|
||||
id="modal-modal-title"
|
||||
variant="h6"
|
||||
component="h2"
|
||||
sx={{
|
||||
fontWeight: "500",
|
||||
fontSize: "20px",
|
||||
}}
|
||||
>
|
||||
Create Folder
|
||||
</Typography>
|
||||
|
||||
<IconButton
|
||||
aria-label="remove"
|
||||
size="small"
|
||||
onClick={handleClose}
|
||||
className="modal-close"
|
||||
>
|
||||
<ClearIcon />
|
||||
</IconButton>
|
||||
</Box>
|
||||
|
||||
<Box component="form" noValidate onSubmit={handleSubmit}>
|
||||
<Box
|
||||
sx={{
|
||||
background: "#fff",
|
||||
padding: "30px 20px",
|
||||
borderRadius: "8px",
|
||||
}}
|
||||
className="dark-BG-101010"
|
||||
>
|
||||
<Grid container alignItems="center" spacing={1}>
|
||||
<Grid item xs={12}>
|
||||
<Typography
|
||||
as="h5"
|
||||
sx={{
|
||||
fontWeight: "500",
|
||||
fontSize: "14px",
|
||||
mb: "12px",
|
||||
}}
|
||||
>
|
||||
Files Name
|
||||
</Typography>
|
||||
|
||||
<TextField
|
||||
autoComplete="given-name"
|
||||
name="filesName"
|
||||
required
|
||||
fullWidth
|
||||
id="filesName"
|
||||
label="Files Name"
|
||||
autoFocus
|
||||
InputProps={{
|
||||
style: { borderRadius: 8 },
|
||||
}}
|
||||
/>
|
||||
</Grid>
|
||||
|
||||
<Grid item xs={12} textAlign="end">
|
||||
<Button
|
||||
type="submit"
|
||||
variant="contained"
|
||||
sx={{
|
||||
mt: 1,
|
||||
textTransform: "capitalize",
|
||||
borderRadius: "8px",
|
||||
fontWeight: "500",
|
||||
fontSize: "13px",
|
||||
padding: "12px 20px",
|
||||
color: "#fff !important",
|
||||
}}
|
||||
>
|
||||
<AddIcon
|
||||
sx={{
|
||||
position: "relative",
|
||||
top: "-2px",
|
||||
}}
|
||||
className="mr-5px"
|
||||
/>{" "}
|
||||
Add Files
|
||||
</Button>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</Box>
|
||||
</Box>
|
||||
</Box>
|
||||
</Fade>
|
||||
</Modal>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default Files;
|
||||
@@ -0,0 +1,470 @@
|
||||
import React from "react";
|
||||
import { Box, Typography } from "@mui/material";
|
||||
import Grid from "@mui/material/Grid";
|
||||
import Card from "@mui/material/Card";
|
||||
import Table from "@mui/material/Table";
|
||||
import TableBody from "@mui/material/TableBody";
|
||||
import TableCell from "@mui/material/TableCell";
|
||||
import TableContainer from "@mui/material/TableContainer";
|
||||
import TableHead from "@mui/material/TableHead";
|
||||
import TableRow from "@mui/material/TableRow";
|
||||
import Paper from "@mui/material/Paper";
|
||||
import Tooltip from "@mui/material/Tooltip";
|
||||
import IconButton from "@mui/material/IconButton";
|
||||
import DeleteIcon from "@mui/icons-material/Delete";
|
||||
import CloudDownloadIcon from "@mui/icons-material/CloudDownload";
|
||||
import DriveFileRenameOutlineIcon from "@mui/icons-material/DriveFileRenameOutline";
|
||||
import Backdrop from "@mui/material/Backdrop";
|
||||
import Button from "@mui/material/Button";
|
||||
import Fade from "@mui/material/Fade";
|
||||
import Modal from "@mui/material/Modal";
|
||||
import TextField from "@mui/material/TextField";
|
||||
import AddIcon from "@mui/icons-material/Add";
|
||||
import ClearIcon from "@mui/icons-material/Clear";
|
||||
|
||||
// Create Folder Modal Style
|
||||
const style = {
|
||||
position: "absolute",
|
||||
top: "50%",
|
||||
left: "50%",
|
||||
transform: "translate(-50%, -50%)",
|
||||
maxWidth: 500,
|
||||
width: "100%",
|
||||
bgcolor: "background.paper",
|
||||
boxShadow: 24,
|
||||
borderRadius: "8px",
|
||||
};
|
||||
|
||||
function createData(name, icon, owner, fileSize, listedDate, fileItem) {
|
||||
return { name, icon, owner, fileSize, listedDate, fileItem };
|
||||
}
|
||||
|
||||
const rows = [
|
||||
createData(
|
||||
"Product UI/UX Design",
|
||||
"/images/folder.png",
|
||||
"Danielle Thompson",
|
||||
"0.7 GB",
|
||||
"Mar 08, 2021",
|
||||
"02"
|
||||
),
|
||||
createData(
|
||||
"App Design & Development",
|
||||
"/images/folder.png",
|
||||
"ET Themes",
|
||||
"521 MB",
|
||||
"Feb 13, 2021",
|
||||
"01"
|
||||
),
|
||||
createData(
|
||||
"Ubold Sketch Design",
|
||||
"/images/folder.png",
|
||||
"Gary Coley",
|
||||
"64.2 MB",
|
||||
"Dec 18, 2020",
|
||||
"02"
|
||||
),
|
||||
createData(
|
||||
"Annualreport.pdf",
|
||||
"/images/folder.png",
|
||||
"Cooper Sharwood",
|
||||
"12.5 GB",
|
||||
"Nov 25, 2020",
|
||||
"05"
|
||||
),
|
||||
createData(
|
||||
"Wireframes",
|
||||
"/images/folder.png",
|
||||
"Jasper Rigg",
|
||||
"8.3 MB",
|
||||
"Nov 25, 2019",
|
||||
"03"
|
||||
),
|
||||
createData(
|
||||
"App Design",
|
||||
"/images/folder.png",
|
||||
"ET Agency",
|
||||
"5 GB",
|
||||
"Jan 08, 2022",
|
||||
"15"
|
||||
),
|
||||
createData(
|
||||
"Web Design & Development",
|
||||
"/images/folder.png",
|
||||
"ET Templates",
|
||||
"13 GB",
|
||||
"Jan 13, 2022",
|
||||
"90"
|
||||
),
|
||||
createData(
|
||||
"React Template",
|
||||
"/images/folder.png",
|
||||
"ET Company",
|
||||
"100 GB",
|
||||
"Dec 18, 2021",
|
||||
"120"
|
||||
),
|
||||
createData(
|
||||
"Material Template",
|
||||
"/images/folder.png",
|
||||
"Cooper Sharwood",
|
||||
"12.5 GB",
|
||||
"Nov 25, 2020",
|
||||
"05"
|
||||
),
|
||||
createData(
|
||||
"Angular Template",
|
||||
"/images/folder.png",
|
||||
"Jasper Rigg",
|
||||
"8.3 MB",
|
||||
"Nov 25, 2019",
|
||||
"03"
|
||||
),
|
||||
];
|
||||
|
||||
const ImportantFiles = () => {
|
||||
// Create Folder Modal
|
||||
const [open, setOpen] = React.useState(false);
|
||||
const handleOpen = () => setOpen(true);
|
||||
const handleClose = () => setOpen(false);
|
||||
|
||||
// Form
|
||||
const handleSubmit = (event) => {
|
||||
event.preventDefault();
|
||||
const data = new FormData(event.currentTarget);
|
||||
console.log({
|
||||
email: data.get("email"),
|
||||
password: data.get("password"),
|
||||
});
|
||||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
<Card
|
||||
sx={{
|
||||
boxShadow: "none",
|
||||
borderRadius: "10px",
|
||||
p: "25px",
|
||||
mb: "15px",
|
||||
}}
|
||||
>
|
||||
<Box
|
||||
sx={{
|
||||
display: "flex",
|
||||
justifyContent: "space-between",
|
||||
alignItems: "center",
|
||||
borderBottom: "1px solid #EEF0F7",
|
||||
paddingBottom: "10px",
|
||||
mb: "20px",
|
||||
}}
|
||||
className="for-dark-bottom-border"
|
||||
>
|
||||
<Typography
|
||||
as="h3"
|
||||
sx={{
|
||||
fontSize: 18,
|
||||
fontWeight: 500,
|
||||
}}
|
||||
>
|
||||
Important Files
|
||||
</Typography>
|
||||
|
||||
<Button
|
||||
onClick={handleOpen}
|
||||
variant="contained"
|
||||
sx={{
|
||||
textTransform: "capitalize",
|
||||
borderRadius: "8px",
|
||||
fontWeight: "500",
|
||||
fontSize: "13px",
|
||||
padding: "12px 20px",
|
||||
color: "#fff !important",
|
||||
}}
|
||||
>
|
||||
<AddIcon
|
||||
sx={{ position: "relative", top: "-1px" }}
|
||||
className="mr-5px"
|
||||
/>{" "}
|
||||
Create Folder
|
||||
</Button>
|
||||
</Box>
|
||||
|
||||
<TableContainer
|
||||
component={Paper}
|
||||
sx={{
|
||||
boxShadow: "none",
|
||||
maxHeight: "650px",
|
||||
overflowY: "auto",
|
||||
}}
|
||||
>
|
||||
<Table
|
||||
sx={{ minWidth: 800 }}
|
||||
aria-label="simple table"
|
||||
className="dark-table"
|
||||
>
|
||||
<TableHead sx={{ background: "#F7FAFF" }}>
|
||||
<TableRow>
|
||||
<TableCell
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
|
||||
>
|
||||
Name
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
|
||||
>
|
||||
Owner
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
|
||||
>
|
||||
File Size
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
|
||||
>
|
||||
Listed Date
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
|
||||
>
|
||||
File Item
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="right"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
|
||||
>
|
||||
Actions
|
||||
</TableCell>
|
||||
</TableRow>
|
||||
</TableHead>
|
||||
|
||||
<TableBody>
|
||||
{rows.map((row) => (
|
||||
<TableRow
|
||||
key={row.name}
|
||||
sx={{ "&:last-child td, &:last-child th": { border: 0 } }}
|
||||
>
|
||||
<TableCell
|
||||
sx={{ borderBottom: "1px solid #F7FAFF" }}
|
||||
>
|
||||
<Box
|
||||
sx={{
|
||||
display: "flex",
|
||||
alignItems: "center",
|
||||
}}
|
||||
>
|
||||
<img src={row.icon} alt="Image" width="22px" />
|
||||
<Typography
|
||||
as="h5"
|
||||
fontWeight="500"
|
||||
fontSize="13px"
|
||||
className="ml-1"
|
||||
>
|
||||
{row.name}
|
||||
</Typography>
|
||||
</Box>
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13px" }}
|
||||
>
|
||||
{row.owner}
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13px" }}
|
||||
>
|
||||
{row.fileSize}
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13px" }}
|
||||
>
|
||||
{row.listedDate}
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13px" }}
|
||||
>
|
||||
{row.fileItem}
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="right"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13px" }}
|
||||
>
|
||||
<Box
|
||||
sx={{
|
||||
display: "inline-block",
|
||||
}}
|
||||
>
|
||||
<Tooltip title="Remove" placement="top">
|
||||
<IconButton
|
||||
aria-label="remove"
|
||||
size="small"
|
||||
color="danger"
|
||||
className="danger"
|
||||
>
|
||||
<DeleteIcon fontSize="inherit" />
|
||||
</IconButton>
|
||||
</Tooltip>
|
||||
|
||||
<Tooltip title="Download" placement="top">
|
||||
<IconButton
|
||||
aria-label="download"
|
||||
size="small"
|
||||
color="success"
|
||||
className="success"
|
||||
>
|
||||
<CloudDownloadIcon fontSize="inherit" />
|
||||
</IconButton>
|
||||
</Tooltip>
|
||||
|
||||
<Tooltip title="Rename" placement="top">
|
||||
<IconButton
|
||||
aria-label="rename"
|
||||
size="small"
|
||||
color="primary"
|
||||
className="primary"
|
||||
>
|
||||
<DriveFileRenameOutlineIcon fontSize="inherit" />
|
||||
</IconButton>
|
||||
</Tooltip>
|
||||
</Box>
|
||||
</TableCell>
|
||||
</TableRow>
|
||||
))}
|
||||
</TableBody>
|
||||
</Table>
|
||||
</TableContainer>
|
||||
</Card>
|
||||
|
||||
{/* Create Folder Modal */}
|
||||
<Modal
|
||||
aria-labelledby="transition-modal-title"
|
||||
aria-describedby="transition-modal-description"
|
||||
open={open}
|
||||
onClose={handleClose}
|
||||
closeAfterTransition
|
||||
BackdropComponent={Backdrop}
|
||||
BackdropProps={{
|
||||
timeout: 500,
|
||||
}}
|
||||
>
|
||||
<Fade in={open}>
|
||||
<Box sx={style} className="dark-BG-101010">
|
||||
<Box
|
||||
sx={{
|
||||
display: "flex",
|
||||
justifyContent: "space-between",
|
||||
alignItems: "center",
|
||||
background: "#EDEFF5",
|
||||
borderRadius: "8px",
|
||||
padding: "25px 20px",
|
||||
}}
|
||||
className="bg-black"
|
||||
>
|
||||
<Typography
|
||||
id="modal-modal-title"
|
||||
variant="h6"
|
||||
component="h2"
|
||||
sx={{
|
||||
fontWeight: "500",
|
||||
fontSize: "20px",
|
||||
}}
|
||||
>
|
||||
Create Folder
|
||||
</Typography>
|
||||
|
||||
<IconButton
|
||||
aria-label="remove"
|
||||
size="small"
|
||||
onClick={handleClose}
|
||||
className="modal-close"
|
||||
>
|
||||
<ClearIcon />
|
||||
</IconButton>
|
||||
</Box>
|
||||
|
||||
<Box component="form" noValidate onSubmit={handleSubmit}>
|
||||
<Box
|
||||
sx={{
|
||||
background: "#fff",
|
||||
padding: "30px 20px",
|
||||
borderRadius: "8px",
|
||||
}}
|
||||
className="dark-BG-101010"
|
||||
>
|
||||
<Grid container alignItems="center" spacing={1}>
|
||||
<Grid item xs={12}>
|
||||
<Typography
|
||||
as="h5"
|
||||
sx={{
|
||||
fontWeight: "500",
|
||||
fontSize: "14px",
|
||||
mb: "12px",
|
||||
}}
|
||||
>
|
||||
Folder Name
|
||||
</Typography>
|
||||
|
||||
<TextField
|
||||
autoComplete="given-name"
|
||||
name="folderName"
|
||||
required
|
||||
fullWidth
|
||||
id="folderName"
|
||||
label="Folder Name"
|
||||
autoFocus
|
||||
InputProps={{
|
||||
style: { borderRadius: 8 },
|
||||
}}
|
||||
/>
|
||||
</Grid>
|
||||
|
||||
<Grid item xs={12} textAlign="end">
|
||||
<Button
|
||||
type="submit"
|
||||
variant="contained"
|
||||
sx={{
|
||||
mt: 1,
|
||||
textTransform: "capitalize",
|
||||
borderRadius: "8px",
|
||||
fontWeight: "500",
|
||||
fontSize: "13px",
|
||||
padding: "12px 20px",
|
||||
color: "#fff !important",
|
||||
}}
|
||||
>
|
||||
<AddIcon
|
||||
sx={{
|
||||
position: "relative",
|
||||
top: "-2px",
|
||||
}}
|
||||
className="mr-5px"
|
||||
/>{" "}
|
||||
Add Folder
|
||||
</Button>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</Box>
|
||||
</Box>
|
||||
</Box>
|
||||
</Fade>
|
||||
</Modal>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default ImportantFiles;
|
||||
@@ -0,0 +1,236 @@
|
||||
import React from "react";
|
||||
import { useRouter } from "next/router";
|
||||
import Link from "next/link";
|
||||
import Box from "@mui/material/Box";
|
||||
import Card from "@mui/material/Card";
|
||||
import Typography from "@mui/material/Typography";
|
||||
import { styled, alpha } from "@mui/material/styles";
|
||||
import InputBase from "@mui/material/InputBase";
|
||||
import SearchIcon from "@mui/icons-material/Search";
|
||||
import LinearProgress, {
|
||||
linearProgressClasses,
|
||||
} from "@mui/material/LinearProgress";
|
||||
import styles from "@/components/Apps/FileManager/LeftSidebar.module.css";
|
||||
|
||||
// Search field style
|
||||
const Search = styled("div")(({ theme }) => ({
|
||||
position: "relative",
|
||||
borderRadius: 100,
|
||||
backgroundColor: alpha(theme.palette.common.white, 0.15),
|
||||
"&:hover": {
|
||||
backgroundColor: alpha(theme.palette.common.white, 0.25),
|
||||
},
|
||||
marginRight: 0,
|
||||
marginLeft: 0,
|
||||
marginBottom: 15,
|
||||
width: "100%",
|
||||
[theme.breakpoints.up("xs")]: {
|
||||
marginRight: theme.spacing(1),
|
||||
width: "auto",
|
||||
},
|
||||
}));
|
||||
|
||||
const SearchIconWrapper = styled("div")(({ theme }) => ({
|
||||
color: "#757FEF",
|
||||
padding: theme.spacing(0, 2),
|
||||
height: "100%",
|
||||
position: "absolute",
|
||||
right: "0",
|
||||
pointerEvents: "none",
|
||||
display: "flex",
|
||||
alignItems: "center",
|
||||
justifyContent: "center",
|
||||
zIndex: "5",
|
||||
}));
|
||||
|
||||
const StyledInputBase = styled(InputBase)(({ theme }) => ({
|
||||
color: "inherit",
|
||||
width: "100%",
|
||||
"& .MuiInputBase-input": {
|
||||
backgroundColor: "#F5F7FA",
|
||||
borderRadius: "30px",
|
||||
padding: theme.spacing(1.4, 0, 1.4, 2),
|
||||
},
|
||||
}));
|
||||
|
||||
// Storage Status Progress
|
||||
const BorderLinearProgress = styled(LinearProgress)(({ theme }) => ({
|
||||
height: 5,
|
||||
borderRadius: 5,
|
||||
[`&.${linearProgressClasses.colorPrimary}`]: {
|
||||
backgroundColor:
|
||||
theme.palette.grey[theme.palette.mode === "light" ? 200 : 800],
|
||||
},
|
||||
[`& .${linearProgressClasses.bar}`]: {
|
||||
borderRadius: 5,
|
||||
backgroundColor: theme.palette.mode === "light" ? "#757FEF" : "#308fe8",
|
||||
},
|
||||
}));
|
||||
|
||||
const LeftSidebar = () => {
|
||||
const router = useRouter();
|
||||
|
||||
return (
|
||||
<>
|
||||
<Card
|
||||
sx={{
|
||||
boxShadow: "none",
|
||||
p: "25px 20px",
|
||||
mb: "15px",
|
||||
}}
|
||||
>
|
||||
<Typography
|
||||
as="h1"
|
||||
sx={{
|
||||
fontSize: 17,
|
||||
fontWeight: 500,
|
||||
mb: 1,
|
||||
}}
|
||||
>
|
||||
My Drive
|
||||
</Typography>
|
||||
|
||||
{/* Search */}
|
||||
<Search className="ls-search-form">
|
||||
<SearchIconWrapper className="search-btn">
|
||||
<SearchIcon />
|
||||
</SearchIconWrapper>
|
||||
<StyledInputBase
|
||||
placeholder="Search here.."
|
||||
inputProps={{ "aria-label": "search" }}
|
||||
/>
|
||||
</Search>
|
||||
|
||||
{/* Nav */}
|
||||
<ul className={styles.leftNav}>
|
||||
<li
|
||||
className={
|
||||
router.pathname == "/apps/file-manager" ? "activeFMLink" : ""
|
||||
}
|
||||
>
|
||||
<Link href="/apps/file-manager">
|
||||
<i className="ri-folder-line"></i> My Drive
|
||||
</Link>
|
||||
|
||||
<ul>
|
||||
<li
|
||||
className={
|
||||
router.pathname == "/apps/file-manager/assets"
|
||||
? "activeFMLink"
|
||||
: ""
|
||||
}
|
||||
>
|
||||
<Link href="/apps/file-manager/assets">Assets</Link>
|
||||
</li>
|
||||
|
||||
<li
|
||||
className={
|
||||
router.pathname == "/apps/file-manager/projects"
|
||||
? "activeFMLink"
|
||||
: ""
|
||||
}
|
||||
>
|
||||
<Link href="/apps/file-manager/projects">Projects</Link>
|
||||
</li>
|
||||
|
||||
<li
|
||||
className={
|
||||
router.pathname == "/apps/file-manager/personal"
|
||||
? "activeFMLink"
|
||||
: ""
|
||||
}
|
||||
>
|
||||
<Link href="/apps/file-manager/personal">Personal</Link>
|
||||
</li>
|
||||
|
||||
<li
|
||||
className={
|
||||
router.pathname == "/apps/file-manager/templates"
|
||||
? "activeFMLink"
|
||||
: ""
|
||||
}
|
||||
>
|
||||
<Link href="/apps/file-manager/templates">Templates</Link>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li
|
||||
className={
|
||||
router.pathname == "/apps/file-manager/documents"
|
||||
? "activeFMLink"
|
||||
: ""
|
||||
}
|
||||
>
|
||||
<Link href="/apps/file-manager/documents">
|
||||
<i className="ri-file-text-line"></i> Documents
|
||||
</Link>
|
||||
</li>
|
||||
|
||||
<li
|
||||
className={
|
||||
router.pathname == "/apps/file-manager/media"
|
||||
? "activeFMLink"
|
||||
: ""
|
||||
}
|
||||
>
|
||||
<Link href="/apps/file-manager/media">
|
||||
<i className="ri-image-line"></i> Media
|
||||
</Link>
|
||||
</li>
|
||||
|
||||
<li
|
||||
className={
|
||||
router.pathname == "/apps/file-manager/recents"
|
||||
? "activeFMLink"
|
||||
: ""
|
||||
}
|
||||
>
|
||||
<Link href="/apps/file-manager/recents">
|
||||
<i className="ri-time-line"></i> Recents
|
||||
</Link>
|
||||
</li>
|
||||
|
||||
<li
|
||||
className={
|
||||
router.pathname == "/apps/file-manager/important"
|
||||
? "activeFMLink"
|
||||
: ""
|
||||
}
|
||||
>
|
||||
<Link href="/apps/file-manager/important">
|
||||
<i className="ri-star-fill"></i> Important
|
||||
</Link>
|
||||
</li>
|
||||
|
||||
<li
|
||||
className={
|
||||
router.pathname == "/apps/file-manager/trash"
|
||||
? "activeFMLink"
|
||||
: ""
|
||||
}
|
||||
>
|
||||
<Link href="/apps/file-manager/trash">
|
||||
<i className="ri-delete-bin-line"></i> Trash
|
||||
</Link>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
{/* Storage status */}
|
||||
<Box>
|
||||
<Typography fontSize="14px" fontWeight="500" mb="5px">
|
||||
Storage Status
|
||||
</Typography>
|
||||
|
||||
<BorderLinearProgress variant="determinate" value={60} />
|
||||
|
||||
<Typography fontSize="12px" mt="5px" color="#A9A9C8">
|
||||
186.5 GB Used of 120 GB
|
||||
</Typography>
|
||||
</Box>
|
||||
</Card>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default LeftSidebar;
|
||||
@@ -0,0 +1,73 @@
|
||||
.leftNav {
|
||||
padding: 0;
|
||||
margin: 0 0 30px;
|
||||
list-style-type: none;
|
||||
}
|
||||
.leftNav li {
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
.leftNav li:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.leftNav li a {
|
||||
text-decoration: none;
|
||||
color: #260944;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
}
|
||||
.leftNav li a:hover, .leftNav li a:hover i {
|
||||
color: var(--primaryColor);
|
||||
}
|
||||
.leftNav li a i {
|
||||
color: #818093;
|
||||
font-size: 18px;
|
||||
position: relative;
|
||||
top: 3px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
.leftNav li ul {
|
||||
padding: 0;
|
||||
margin: 15px 0 0;
|
||||
list-style-type: none;
|
||||
}
|
||||
.leftNav li ul li {
|
||||
position: relative;
|
||||
padding-left: 45px;
|
||||
}
|
||||
.leftNav li ul li::before {
|
||||
content: "";
|
||||
background-color: #818093;
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
border-radius: 100%;
|
||||
position: absolute;
|
||||
left: 30px;
|
||||
top: 6px;
|
||||
}
|
||||
.leftNav li ul li a {
|
||||
color: #5B5B98;
|
||||
font-size: 13.5px;
|
||||
}
|
||||
|
||||
/* For RTL Style */
|
||||
[dir="rtl"] .leftNav li a i {
|
||||
margin-right: 0;
|
||||
margin-left: 5px;
|
||||
}
|
||||
[dir="rtl"] .leftNav li ul li {
|
||||
padding-left: 0;
|
||||
padding-right: 45px;
|
||||
}
|
||||
[dir="rtl"] .leftNav li ul li::before {
|
||||
left: auto;
|
||||
right: 25px;
|
||||
}
|
||||
|
||||
/* For dark mode */
|
||||
[class="dark"] .leftNav li a {
|
||||
color: var(--darkHeadingTextColor);
|
||||
}
|
||||
[class="dark"] .leftNav li ul li a {
|
||||
color: var(--darkBodyTextColor);
|
||||
}
|
||||
@@ -0,0 +1,294 @@
|
||||
import React from "react";
|
||||
import { Box, Typography } from "@mui/material";
|
||||
import Card from "@mui/material/Card";
|
||||
import Table from "@mui/material/Table";
|
||||
import TableBody from "@mui/material/TableBody";
|
||||
import TableCell from "@mui/material/TableCell";
|
||||
import TableContainer from "@mui/material/TableContainer";
|
||||
import TableHead from "@mui/material/TableHead";
|
||||
import TableRow from "@mui/material/TableRow";
|
||||
import Paper from "@mui/material/Paper";
|
||||
import Tooltip from "@mui/material/Tooltip";
|
||||
import IconButton from "@mui/material/IconButton";
|
||||
import DeleteIcon from "@mui/icons-material/Delete";
|
||||
import CloudDownloadIcon from "@mui/icons-material/CloudDownload";
|
||||
import DriveFileRenameOutlineIcon from "@mui/icons-material/DriveFileRenameOutline";
|
||||
|
||||
function createData(name, icon, owner, fileSize, listedDate, fileItem) {
|
||||
return { name, icon, owner, fileSize, listedDate, fileItem };
|
||||
}
|
||||
|
||||
const rows = [
|
||||
createData(
|
||||
"Product UI/UX Design",
|
||||
"/images/media.png",
|
||||
"Danielle Thompson",
|
||||
"0.7 GB",
|
||||
"Mar 08, 2021",
|
||||
"02"
|
||||
),
|
||||
createData(
|
||||
"App Design & Development",
|
||||
"/images/media.png",
|
||||
"ET Themes",
|
||||
"521 MB",
|
||||
"Feb 13, 2021",
|
||||
"01"
|
||||
),
|
||||
createData(
|
||||
"Ubold Sketch Design",
|
||||
"/images/media.png",
|
||||
"Gary Coley",
|
||||
"64.2 MB",
|
||||
"Dec 18, 2020",
|
||||
"02"
|
||||
),
|
||||
createData(
|
||||
"Annualreport.pdf",
|
||||
"/images/media.png",
|
||||
"Cooper Sharwood",
|
||||
"12.5 GB",
|
||||
"Nov 25, 2020",
|
||||
"05"
|
||||
),
|
||||
createData(
|
||||
"Wireframes",
|
||||
"/images/media.png",
|
||||
"Jasper Rigg",
|
||||
"8.3 MB",
|
||||
"Nov 25, 2019",
|
||||
"03"
|
||||
),
|
||||
createData(
|
||||
"App Design",
|
||||
"/images/media.png",
|
||||
"ET Agency",
|
||||
"5 GB",
|
||||
"Jan 08, 2022",
|
||||
"15"
|
||||
),
|
||||
createData(
|
||||
"Web Design & Development",
|
||||
"/images/media.png",
|
||||
"ET Templates",
|
||||
"13 GB",
|
||||
"Jan 13, 2022",
|
||||
"90"
|
||||
),
|
||||
createData(
|
||||
"React Template",
|
||||
"/images/media.png",
|
||||
"ET Company",
|
||||
"100 GB",
|
||||
"Dec 18, 2021",
|
||||
"120"
|
||||
),
|
||||
createData(
|
||||
"Material Template",
|
||||
"/images/media.png",
|
||||
"Cooper Sharwood",
|
||||
"12.5 GB",
|
||||
"Nov 25, 2020",
|
||||
"05"
|
||||
),
|
||||
createData(
|
||||
"Angular Template",
|
||||
"/images/media.png",
|
||||
"Jasper Rigg",
|
||||
"8.3 MB",
|
||||
"Nov 25, 2019",
|
||||
"03"
|
||||
),
|
||||
];
|
||||
|
||||
const MediaFiles = () => {
|
||||
return (
|
||||
<>
|
||||
<Card
|
||||
sx={{
|
||||
boxShadow: "none",
|
||||
borderRadius: "10px",
|
||||
p: "25px",
|
||||
mb: "15px",
|
||||
}}
|
||||
>
|
||||
<Box
|
||||
sx={{
|
||||
borderBottom: "1px solid #EEF0F7",
|
||||
paddingBottom: "10px",
|
||||
mb: "20px",
|
||||
}}
|
||||
className="for-dark-bottom-border"
|
||||
>
|
||||
<Typography
|
||||
as="h3"
|
||||
sx={{
|
||||
fontSize: 18,
|
||||
fontWeight: 500,
|
||||
}}
|
||||
>
|
||||
Media
|
||||
</Typography>
|
||||
</Box>
|
||||
|
||||
<TableContainer
|
||||
component={Paper}
|
||||
sx={{
|
||||
boxShadow: "none",
|
||||
maxHeight: "800px",
|
||||
overflowY: "auto",
|
||||
}}
|
||||
>
|
||||
<Table
|
||||
sx={{ minWidth: 800 }}
|
||||
aria-label="simple table"
|
||||
className="dark-table"
|
||||
>
|
||||
<TableHead sx={{ background: "#F7FAFF" }}>
|
||||
<TableRow>
|
||||
<TableCell sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}>
|
||||
Name
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
|
||||
>
|
||||
Owner
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
|
||||
>
|
||||
File Size
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
|
||||
>
|
||||
Listed Date
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
|
||||
>
|
||||
File Item
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="right"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
|
||||
>
|
||||
Actions
|
||||
</TableCell>
|
||||
</TableRow>
|
||||
</TableHead>
|
||||
|
||||
<TableBody>
|
||||
{rows.map((row) => (
|
||||
<TableRow
|
||||
key={row.name}
|
||||
sx={{ "&:last-child td, &:last-child th": { border: 0 } }}
|
||||
>
|
||||
<TableCell
|
||||
sx={{ borderBottom: "1px solid #F7FAFF" }}
|
||||
>
|
||||
<Box
|
||||
sx={{
|
||||
display: "flex",
|
||||
alignItems: "center",
|
||||
}}
|
||||
>
|
||||
<img src={row.icon} alt="Image" width="18px" />
|
||||
<Typography
|
||||
as="h5"
|
||||
fontWeight="500"
|
||||
fontSize="13px"
|
||||
className="ml-1"
|
||||
>
|
||||
{row.name}
|
||||
</Typography>
|
||||
</Box>
|
||||
</TableCell>
|
||||
|
||||
<TableCell sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13px" }}>
|
||||
{row.owner}
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13px" }}
|
||||
>
|
||||
{row.fileSize}
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13px" }}
|
||||
>
|
||||
{row.listedDate}
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13px" }}
|
||||
>
|
||||
{row.fileItem}
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="right"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF" }}
|
||||
>
|
||||
<Box
|
||||
sx={{
|
||||
display: "inline-block",
|
||||
}}
|
||||
>
|
||||
<Tooltip title="Remove" placement="top">
|
||||
<IconButton
|
||||
aria-label="remove"
|
||||
size="small"
|
||||
color="danger"
|
||||
className="danger"
|
||||
>
|
||||
<DeleteIcon fontSize="inherit" />
|
||||
</IconButton>
|
||||
</Tooltip>
|
||||
|
||||
<Tooltip title="Download" placement="top">
|
||||
<IconButton
|
||||
aria-label="download"
|
||||
size="small"
|
||||
color="success"
|
||||
className="success"
|
||||
>
|
||||
<CloudDownloadIcon fontSize="inherit" />
|
||||
</IconButton>
|
||||
</Tooltip>
|
||||
|
||||
<Tooltip title="Rename" placement="top">
|
||||
<IconButton
|
||||
aria-label="rename"
|
||||
size="small"
|
||||
color="primary"
|
||||
className="primary"
|
||||
>
|
||||
<DriveFileRenameOutlineIcon fontSize="inherit" />
|
||||
</IconButton>
|
||||
</Tooltip>
|
||||
</Box>
|
||||
</TableCell>
|
||||
</TableRow>
|
||||
))}
|
||||
</TableBody>
|
||||
</Table>
|
||||
</TableContainer>
|
||||
</Card>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default MediaFiles;
|
||||
@@ -0,0 +1,162 @@
|
||||
import React from "react";
|
||||
import Grid from "@mui/material/Grid";
|
||||
import { Box, Typography } from "@mui/material";
|
||||
import Card from "@mui/material/Card";
|
||||
import Menu from "@mui/material/Menu";
|
||||
import MenuItem from "@mui/material/MenuItem";
|
||||
import IconButton from "@mui/material/IconButton";
|
||||
import MoreHorizIcon from "@mui/icons-material/MoreHoriz";
|
||||
|
||||
const MyDriveData = [
|
||||
{
|
||||
id: "1",
|
||||
icon: "/images/folder.png",
|
||||
title: "Projects",
|
||||
totalFiles: "387 Files",
|
||||
filesSize: "4.5 GB",
|
||||
},
|
||||
{
|
||||
id: "2",
|
||||
icon: "/images/folder.png",
|
||||
title: "Documents",
|
||||
totalFiles: "1572 Files",
|
||||
filesSize: "7.5 GB",
|
||||
},
|
||||
{
|
||||
id: "3",
|
||||
icon: "/images/folder.png",
|
||||
title: "Media",
|
||||
totalFiles: "1241 Files",
|
||||
filesSize: "2.8 GB",
|
||||
},
|
||||
{
|
||||
id: "4",
|
||||
icon: "/images/folder.png",
|
||||
title: "Applications",
|
||||
totalFiles: "2487 Files",
|
||||
filesSize: "4.5 GB",
|
||||
},
|
||||
];
|
||||
|
||||
const MyDrive = () => {
|
||||
const [anchorEl, setAnchorEl] = React.useState(null);
|
||||
const open = Boolean(anchorEl);
|
||||
const handleClick = (event) => {
|
||||
setAnchorEl(event.currentTarget);
|
||||
};
|
||||
const handleClose = () => {
|
||||
setAnchorEl(null);
|
||||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
<Grid
|
||||
container
|
||||
rowSpacing={1}
|
||||
columnSpacing={{ xs: 1, sm: 1, md: 1, lg: 1, xl: 2 }}
|
||||
>
|
||||
{MyDriveData.map((dInfo) => (
|
||||
<Grid item xs={12} sm={6} md={6} lg={6} xl={3} key={dInfo.id}>
|
||||
<Card
|
||||
sx={{
|
||||
boxShadow: "none",
|
||||
borderRadius: "10px",
|
||||
p: "15px 20px 20px",
|
||||
mb: "15px",
|
||||
}}
|
||||
>
|
||||
<Box
|
||||
sx={{
|
||||
display: "flex",
|
||||
justifyContent: "end",
|
||||
}}
|
||||
>
|
||||
<Box>
|
||||
<IconButton
|
||||
onClick={handleClick}
|
||||
size="small"
|
||||
aria-controls={open ? "account-menu" : undefined}
|
||||
aria-haspopup="true"
|
||||
aria-expanded={open ? "true" : undefined}
|
||||
>
|
||||
<MoreHorizIcon />
|
||||
</IconButton>
|
||||
</Box>
|
||||
<Menu
|
||||
anchorEl={anchorEl}
|
||||
id="account-menu"
|
||||
open={open}
|
||||
onClose={handleClose}
|
||||
onClick={handleClose}
|
||||
PaperProps={{
|
||||
elevation: 0,
|
||||
sx: {
|
||||
overflow: "visible",
|
||||
filter: "drop-shadow(0px 2px 8px rgba(229,229,229,0.32))",
|
||||
mt: 1.5,
|
||||
"& .MuiAvatar-root": {
|
||||
width: 32,
|
||||
height: 32,
|
||||
ml: -0.5,
|
||||
mr: 1,
|
||||
},
|
||||
"&:before": {
|
||||
content: '""',
|
||||
display: "block",
|
||||
position: "absolute",
|
||||
top: 0,
|
||||
right: 14,
|
||||
width: 10,
|
||||
height: 10,
|
||||
bgcolor: "background.paper",
|
||||
transform: "translateY(-50%) rotate(45deg)",
|
||||
zIndex: 0,
|
||||
},
|
||||
},
|
||||
}}
|
||||
transformOrigin={{ horizontal: "right", vertical: "top" }}
|
||||
anchorOrigin={{ horizontal: "right", vertical: "bottom" }}
|
||||
>
|
||||
<MenuItem sx={{ fontSize: "13px" }}>
|
||||
<i className="ri-edit-2-line mr-5px"></i> Rename
|
||||
</MenuItem>
|
||||
<MenuItem sx={{ fontSize: "13px" }}>
|
||||
<i className="ri-download-cloud-line mr-5px"></i> Download
|
||||
</MenuItem>
|
||||
<MenuItem sx={{ fontSize: "13px" }}>
|
||||
<i className="ri-delete-bin-line mr-5px"></i> Remove
|
||||
</MenuItem>
|
||||
</Menu>
|
||||
</Box>
|
||||
|
||||
<Box
|
||||
sx={{
|
||||
textAlign: "center",
|
||||
padding: "30px 0",
|
||||
}}
|
||||
>
|
||||
<img src={dInfo.icon} alt="folder" />
|
||||
<Typography as="h3" fontWeight="500" fontSize="14px" mt="10px">
|
||||
{dInfo.title}
|
||||
</Typography>
|
||||
</Box>
|
||||
|
||||
<Box
|
||||
sx={{
|
||||
display: "flex",
|
||||
justifyContent: "space-between",
|
||||
alignItems: "center",
|
||||
}}
|
||||
>
|
||||
<Typography>{dInfo.totalFiles}</Typography>
|
||||
<Typography>{dInfo.filesSize}</Typography>
|
||||
</Box>
|
||||
</Card>
|
||||
</Grid>
|
||||
))}
|
||||
</Grid>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default MyDrive;
|
||||
@@ -0,0 +1,218 @@
|
||||
import React from "react";
|
||||
import Grid from "@mui/material/Grid";
|
||||
import { Box, Typography } from "@mui/material";
|
||||
import Card from "@mui/material/Card";
|
||||
import Menu from "@mui/material/Menu";
|
||||
import MenuItem from "@mui/material/MenuItem";
|
||||
import IconButton from "@mui/material/IconButton";
|
||||
import MoreHorizIcon from "@mui/icons-material/MoreHoriz";
|
||||
|
||||
const PersonalFilesData = [
|
||||
{
|
||||
id: "1",
|
||||
icon: "/images/folder.png",
|
||||
title: "Mobile Apps",
|
||||
totalFiles: "55 Files",
|
||||
filesSize: "4.5 GB",
|
||||
},
|
||||
{
|
||||
id: "2",
|
||||
icon: "/images/folder.png",
|
||||
title: "Important Files",
|
||||
totalFiles: "200 Files",
|
||||
filesSize: "6.5 GB",
|
||||
},
|
||||
{
|
||||
id: "3",
|
||||
icon: "/images/folder.png",
|
||||
title: "Angular Template",
|
||||
totalFiles: "340 Files",
|
||||
filesSize: "7.5 GB",
|
||||
},
|
||||
{
|
||||
id: "4",
|
||||
icon: "/images/folder.png",
|
||||
title: "Projects",
|
||||
totalFiles: "387 Files",
|
||||
filesSize: "4.5 GB",
|
||||
},
|
||||
{
|
||||
id: "5",
|
||||
icon: "/images/folder.png",
|
||||
title: "Documents",
|
||||
totalFiles: "1572 Files",
|
||||
filesSize: "7.5 GB",
|
||||
},
|
||||
{
|
||||
id: "6",
|
||||
icon: "/images/folder.png",
|
||||
title: "ET Template",
|
||||
totalFiles: "60 Files",
|
||||
filesSize: "8 GB",
|
||||
},
|
||||
{
|
||||
id: "7",
|
||||
icon: "/images/folder.png",
|
||||
title: "React Template",
|
||||
totalFiles: "120 Files",
|
||||
filesSize: "6.5 GB",
|
||||
},
|
||||
{
|
||||
id: "8",
|
||||
icon: "/images/folder.png",
|
||||
title: "Material UI",
|
||||
totalFiles: "40 Files",
|
||||
filesSize: "5.5 GB",
|
||||
},
|
||||
{
|
||||
id: "9",
|
||||
icon: "/images/folder.png",
|
||||
title: "WP Themes",
|
||||
totalFiles: "2487 Files",
|
||||
filesSize: "4.5 GB",
|
||||
},
|
||||
{
|
||||
id: "10",
|
||||
icon: "/images/folder.png",
|
||||
title: "Personal Photos",
|
||||
totalFiles: "2587 Files",
|
||||
filesSize: "14 GB",
|
||||
},
|
||||
{
|
||||
id: "11",
|
||||
icon: "/images/folder.png",
|
||||
title: "Media",
|
||||
totalFiles: "1241 Files",
|
||||
filesSize: "2.8 GB",
|
||||
},
|
||||
{
|
||||
id: "12",
|
||||
icon: "/images/folder.png",
|
||||
title: "Applications",
|
||||
totalFiles: "2487 Files",
|
||||
filesSize: "4.5 GB",
|
||||
},
|
||||
];
|
||||
|
||||
const PersonalFiles = () => {
|
||||
const [anchorEl, setAnchorEl] = React.useState(null);
|
||||
const open = Boolean(anchorEl);
|
||||
const handleClick = (event) => {
|
||||
setAnchorEl(event.currentTarget);
|
||||
};
|
||||
const handleClose = () => {
|
||||
setAnchorEl(null);
|
||||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
<Grid
|
||||
container
|
||||
rowSpacing={1}
|
||||
columnSpacing={{ xs: 1, sm: 1, md: 1, lg: 1, xl: 2 }}
|
||||
>
|
||||
{PersonalFilesData.map((file) => (
|
||||
<Grid item xs={12} sm={6} md={6} lg={6} xl={3} key={file.id}>
|
||||
<Card
|
||||
sx={{
|
||||
boxShadow: "none",
|
||||
borderRadius: "10px",
|
||||
p: "15px 20px 20px",
|
||||
mb: "15px",
|
||||
}}
|
||||
>
|
||||
<Box
|
||||
sx={{
|
||||
display: "flex",
|
||||
justifyContent: "end",
|
||||
}}
|
||||
>
|
||||
<Box>
|
||||
<IconButton
|
||||
onClick={handleClick}
|
||||
size="small"
|
||||
aria-controls={open ? "account-menu" : undefined}
|
||||
aria-haspopup="true"
|
||||
aria-expanded={open ? "true" : undefined}
|
||||
>
|
||||
<MoreHorizIcon />
|
||||
</IconButton>
|
||||
</Box>
|
||||
<Menu
|
||||
anchorEl={anchorEl}
|
||||
id="account-menu"
|
||||
open={open}
|
||||
onClose={handleClose}
|
||||
onClick={handleClose}
|
||||
PaperProps={{
|
||||
elevation: 0,
|
||||
sx: {
|
||||
overflow: "visible",
|
||||
filter: "drop-shadow(0px 2px 8px rgba(229,229,229,0.32))",
|
||||
mt: 1.5,
|
||||
"& .MuiAvatar-root": {
|
||||
width: 32,
|
||||
height: 32,
|
||||
ml: -0.5,
|
||||
mr: 1,
|
||||
},
|
||||
"&:before": {
|
||||
content: '""',
|
||||
display: "block",
|
||||
position: "absolute",
|
||||
top: 0,
|
||||
right: 14,
|
||||
width: 10,
|
||||
height: 10,
|
||||
bgcolor: "background.paper",
|
||||
transform: "translateY(-50%) rotate(45deg)",
|
||||
zIndex: 0,
|
||||
},
|
||||
},
|
||||
}}
|
||||
transformOrigin={{ horizontal: "right", vertical: "top" }}
|
||||
anchorOrigin={{ horizontal: "right", vertical: "bottom" }}
|
||||
>
|
||||
<MenuItem sx={{ fontSize: "13px" }}>
|
||||
<i className="ri-edit-2-line mr-5px"></i> Rename
|
||||
</MenuItem>
|
||||
<MenuItem sx={{ fontSize: "13px" }}>
|
||||
<i className="ri-download-cloud-line mr-5px"></i> Download
|
||||
</MenuItem>
|
||||
<MenuItem sx={{ fontSize: "13px" }}>
|
||||
<i className="ri-delete-bin-line mr-5px"></i> Remove
|
||||
</MenuItem>
|
||||
</Menu>
|
||||
</Box>
|
||||
|
||||
<Box
|
||||
sx={{
|
||||
textAlign: "center",
|
||||
padding: "30px 0",
|
||||
}}
|
||||
>
|
||||
<img src={file.icon} alt="folder" />
|
||||
<Typography as="h3" fontWeight="500" fontSize="14px" mt="10px">
|
||||
{file.title}
|
||||
</Typography>
|
||||
</Box>
|
||||
|
||||
<Box
|
||||
sx={{
|
||||
display: "flex",
|
||||
justifyContent: "space-between",
|
||||
alignItems: "center",
|
||||
}}
|
||||
>
|
||||
<Typography>{file.totalFiles}</Typography>
|
||||
<Typography>{file.filesSize}</Typography>
|
||||
</Box>
|
||||
</Card>
|
||||
</Grid>
|
||||
))}
|
||||
</Grid>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default PersonalFiles;
|
||||
@@ -0,0 +1,433 @@
|
||||
import React from "react";
|
||||
import { Box, Typography } from "@mui/material";
|
||||
import Grid from "@mui/material/Grid";
|
||||
import Card from "@mui/material/Card";
|
||||
import Table from "@mui/material/Table";
|
||||
import TableBody from "@mui/material/TableBody";
|
||||
import TableCell from "@mui/material/TableCell";
|
||||
import TableContainer from "@mui/material/TableContainer";
|
||||
import TableHead from "@mui/material/TableHead";
|
||||
import TableRow from "@mui/material/TableRow";
|
||||
import Paper from "@mui/material/Paper";
|
||||
import Tooltip from "@mui/material/Tooltip";
|
||||
import IconButton from "@mui/material/IconButton";
|
||||
import DeleteIcon from "@mui/icons-material/Delete";
|
||||
import CloudDownloadIcon from "@mui/icons-material/CloudDownload";
|
||||
import DriveFileRenameOutlineIcon from "@mui/icons-material/DriveFileRenameOutline";
|
||||
import Backdrop from "@mui/material/Backdrop";
|
||||
import Button from "@mui/material/Button";
|
||||
import Fade from "@mui/material/Fade";
|
||||
import Modal from "@mui/material/Modal";
|
||||
import TextField from "@mui/material/TextField";
|
||||
import AddIcon from "@mui/icons-material/Add";
|
||||
import ClearIcon from "@mui/icons-material/Clear";
|
||||
|
||||
// Create Folder Modal Style
|
||||
const style = {
|
||||
position: "absolute",
|
||||
top: "50%",
|
||||
left: "50%",
|
||||
transform: "translate(-50%, -50%)",
|
||||
maxWidth: 500,
|
||||
width: "100%",
|
||||
bgcolor: "background.paper",
|
||||
boxShadow: 24,
|
||||
borderRadius: "8px",
|
||||
};
|
||||
|
||||
function createData(name, icon, owner, fileSize, listedDate, fileItem) {
|
||||
return { name, icon, owner, fileSize, listedDate, fileItem };
|
||||
}
|
||||
|
||||
const rows = [
|
||||
createData(
|
||||
"Product UI/UX Design",
|
||||
"/images/folder.png",
|
||||
"Danielle Thompson",
|
||||
"0.7 GB",
|
||||
"Mar 08, 2021",
|
||||
"02"
|
||||
),
|
||||
createData(
|
||||
"App Design & Development",
|
||||
"/images/folder.png",
|
||||
"ET Themes",
|
||||
"521 MB",
|
||||
"Feb 13, 2021",
|
||||
"01"
|
||||
),
|
||||
createData(
|
||||
"Ubold Sketch Design",
|
||||
"/images/folder.png",
|
||||
"Gary Coley",
|
||||
"64.2 MB",
|
||||
"Dec 18, 2020",
|
||||
"02"
|
||||
),
|
||||
createData(
|
||||
"Annualreport.pdf",
|
||||
"/images/folder.png",
|
||||
"Cooper Sharwood",
|
||||
"12.5 GB",
|
||||
"Nov 25, 2020",
|
||||
"05"
|
||||
),
|
||||
createData(
|
||||
"Wireframes",
|
||||
"/images/folder.png",
|
||||
"Jasper Rigg",
|
||||
"8.3 MB",
|
||||
"Nov 25, 2019",
|
||||
"03"
|
||||
),
|
||||
];
|
||||
|
||||
const RecentFiles = () => {
|
||||
// Create Folder Modal
|
||||
const [open, setOpen] = React.useState(false);
|
||||
const handleOpen = () => setOpen(true);
|
||||
const handleClose = () => setOpen(false);
|
||||
|
||||
// Form
|
||||
const handleSubmit = (event) => {
|
||||
event.preventDefault();
|
||||
const data = new FormData(event.currentTarget);
|
||||
console.log({
|
||||
email: data.get("email"),
|
||||
password: data.get("password"),
|
||||
});
|
||||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
<Card
|
||||
sx={{
|
||||
boxShadow: "none",
|
||||
borderRadius: "10px",
|
||||
p: "25px",
|
||||
mb: "15px",
|
||||
}}
|
||||
>
|
||||
<Box
|
||||
sx={{
|
||||
display: "flex",
|
||||
justifyContent: "space-between",
|
||||
alignItems: "center",
|
||||
borderBottom: "1px solid #EEF0F7",
|
||||
paddingBottom: "10px",
|
||||
mb: "20px",
|
||||
}}
|
||||
className="for-dark-bottom-border"
|
||||
>
|
||||
<Typography
|
||||
as="h3"
|
||||
sx={{
|
||||
fontSize: 18,
|
||||
fontWeight: 500,
|
||||
}}
|
||||
>
|
||||
Recent Files
|
||||
</Typography>
|
||||
|
||||
<Button
|
||||
onClick={handleOpen}
|
||||
variant="contained"
|
||||
sx={{
|
||||
textTransform: "capitalize",
|
||||
borderRadius: "8px",
|
||||
fontWeight: "500",
|
||||
fontSize: "13px",
|
||||
padding: "12px 20px",
|
||||
color: "#fff !important",
|
||||
}}
|
||||
>
|
||||
<AddIcon
|
||||
sx={{ position: "relative", top: "-1px" }}
|
||||
className="mr-5px"
|
||||
/>{" "}
|
||||
Create Folder
|
||||
</Button>
|
||||
</Box>
|
||||
|
||||
<TableContainer
|
||||
component={Paper}
|
||||
sx={{
|
||||
boxShadow: "none",
|
||||
maxHeight: "355px",
|
||||
overflowY: "auto",
|
||||
}}
|
||||
>
|
||||
<Table
|
||||
sx={{ minWidth: 800 }}
|
||||
aria-label="simple table"
|
||||
className="dark-table"
|
||||
>
|
||||
<TableHead sx={{ background: "#F7FAFF" }}>
|
||||
<TableRow>
|
||||
<TableCell
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
|
||||
>
|
||||
Name
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
|
||||
>
|
||||
Owner
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
|
||||
>
|
||||
File Size
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
|
||||
>
|
||||
Listed Date
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
|
||||
>
|
||||
File Item
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="right"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
|
||||
>
|
||||
Actions
|
||||
</TableCell>
|
||||
</TableRow>
|
||||
</TableHead>
|
||||
|
||||
<TableBody>
|
||||
{rows.map((row) => (
|
||||
<TableRow
|
||||
key={row.name}
|
||||
sx={{ "&:last-child td, &:last-child th": { border: 0 } }}
|
||||
>
|
||||
<TableCell
|
||||
sx={{ borderBottom: "1px solid #F7FAFF" }}
|
||||
>
|
||||
<Box
|
||||
sx={{
|
||||
display: "flex",
|
||||
alignItems: "center",
|
||||
}}
|
||||
>
|
||||
<img src={row.icon} alt="Image" width="22px" />
|
||||
<Typography
|
||||
as="h5"
|
||||
fontWeight="500"
|
||||
fontSize="13px"
|
||||
className="ml-1"
|
||||
>
|
||||
{row.name}
|
||||
</Typography>
|
||||
</Box>
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13px" }}
|
||||
>
|
||||
{row.owner}
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13px" }}
|
||||
>
|
||||
{row.fileSize}
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13px" }}
|
||||
>
|
||||
{row.listedDate}
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13px" }}
|
||||
>
|
||||
{row.fileItem}
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="right"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF" }}
|
||||
>
|
||||
<Box
|
||||
sx={{
|
||||
display: "inline-block",
|
||||
}}
|
||||
>
|
||||
<Tooltip title="Remove" placement="top">
|
||||
<IconButton
|
||||
aria-label="remove"
|
||||
size="small"
|
||||
color="danger"
|
||||
className="danger"
|
||||
>
|
||||
<DeleteIcon fontSize="inherit" />
|
||||
</IconButton>
|
||||
</Tooltip>
|
||||
|
||||
<Tooltip title="Download" placement="top">
|
||||
<IconButton
|
||||
aria-label="download"
|
||||
size="small"
|
||||
color="success"
|
||||
className="success"
|
||||
>
|
||||
<CloudDownloadIcon fontSize="inherit" />
|
||||
</IconButton>
|
||||
</Tooltip>
|
||||
|
||||
<Tooltip title="Rename" placement="top">
|
||||
<IconButton
|
||||
aria-label="rename"
|
||||
size="small"
|
||||
color="primary"
|
||||
className="primary"
|
||||
>
|
||||
<DriveFileRenameOutlineIcon fontSize="inherit" />
|
||||
</IconButton>
|
||||
</Tooltip>
|
||||
</Box>
|
||||
</TableCell>
|
||||
</TableRow>
|
||||
))}
|
||||
</TableBody>
|
||||
</Table>
|
||||
</TableContainer>
|
||||
</Card>
|
||||
|
||||
{/* Create Folder Modal */}
|
||||
<Modal
|
||||
aria-labelledby="transition-modal-title"
|
||||
aria-describedby="transition-modal-description"
|
||||
open={open}
|
||||
onClose={handleClose}
|
||||
closeAfterTransition
|
||||
BackdropComponent={Backdrop}
|
||||
BackdropProps={{
|
||||
timeout: 500,
|
||||
}}
|
||||
>
|
||||
<Fade in={open}>
|
||||
<Box
|
||||
sx={style}
|
||||
className="dark-BG-101010"
|
||||
>
|
||||
<Box
|
||||
sx={{
|
||||
display: "flex",
|
||||
justifyContent: "space-between",
|
||||
alignItems: "center",
|
||||
background: "#EDEFF5",
|
||||
borderRadius: "8px",
|
||||
padding: "25px 20px",
|
||||
}}
|
||||
className="bg-black"
|
||||
>
|
||||
<Typography
|
||||
id="modal-modal-title"
|
||||
variant="h6"
|
||||
component="h2"
|
||||
sx={{
|
||||
fontWeight: "500",
|
||||
fontSize: "20px",
|
||||
}}
|
||||
>
|
||||
Create Folder
|
||||
</Typography>
|
||||
|
||||
<IconButton
|
||||
aria-label="remove"
|
||||
size="small"
|
||||
onClick={handleClose}
|
||||
className="modal-close"
|
||||
>
|
||||
<ClearIcon />
|
||||
</IconButton>
|
||||
</Box>
|
||||
|
||||
<Box component="form" noValidate onSubmit={handleSubmit}>
|
||||
<Box
|
||||
sx={{
|
||||
background: "#fff",
|
||||
padding: "30px 20px",
|
||||
borderRadius: "8px",
|
||||
}}
|
||||
className="dark-BG-101010"
|
||||
>
|
||||
<Grid container alignItems="center" spacing={1}>
|
||||
<Grid item xs={12}>
|
||||
<Typography
|
||||
as="h5"
|
||||
sx={{
|
||||
fontWeight: "500",
|
||||
fontSize: "14px",
|
||||
mb: "12px",
|
||||
}}
|
||||
>
|
||||
Folder Name
|
||||
</Typography>
|
||||
|
||||
<TextField
|
||||
autoComplete="given-name"
|
||||
name="folderName"
|
||||
required
|
||||
fullWidth
|
||||
id="folderName"
|
||||
label="Folder Name"
|
||||
autoFocus
|
||||
InputProps={{
|
||||
style: { borderRadius: 8 },
|
||||
}}
|
||||
/>
|
||||
</Grid>
|
||||
|
||||
<Grid item xs={12} textAlign="end">
|
||||
<Button
|
||||
type="submit"
|
||||
variant="contained"
|
||||
sx={{
|
||||
mt: 1,
|
||||
textTransform: "capitalize",
|
||||
borderRadius: "8px",
|
||||
fontWeight: "500",
|
||||
fontSize: "13px",
|
||||
padding: "12px 20px",
|
||||
color: "#fff !important",
|
||||
}}
|
||||
>
|
||||
<AddIcon
|
||||
sx={{
|
||||
position: "relative",
|
||||
top: "-2px",
|
||||
}}
|
||||
className="mr-5px"
|
||||
/>{" "}
|
||||
Add Folder
|
||||
</Button>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</Box>
|
||||
</Box>
|
||||
</Box>
|
||||
</Fade>
|
||||
</Modal>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default RecentFiles;
|
||||
@@ -0,0 +1,298 @@
|
||||
import React from "react";
|
||||
import { Box, Typography } from "@mui/material";
|
||||
import Card from "@mui/material/Card";
|
||||
import Table from "@mui/material/Table";
|
||||
import TableBody from "@mui/material/TableBody";
|
||||
import TableCell from "@mui/material/TableCell";
|
||||
import TableContainer from "@mui/material/TableContainer";
|
||||
import TableHead from "@mui/material/TableHead";
|
||||
import TableRow from "@mui/material/TableRow";
|
||||
import Paper from "@mui/material/Paper";
|
||||
import Tooltip from "@mui/material/Tooltip";
|
||||
import IconButton from "@mui/material/IconButton";
|
||||
import DeleteIcon from "@mui/icons-material/Delete";
|
||||
import CloudDownloadIcon from "@mui/icons-material/CloudDownload";
|
||||
import DriveFileRenameOutlineIcon from "@mui/icons-material/DriveFileRenameOutline";
|
||||
|
||||
function createData(name, icon, owner, fileSize, listedDate, fileItem) {
|
||||
return { name, icon, owner, fileSize, listedDate, fileItem };
|
||||
}
|
||||
|
||||
const rows = [
|
||||
createData(
|
||||
"Product UI/UX Design",
|
||||
"/images/folder.png",
|
||||
"Danielle Thompson",
|
||||
"0.7 GB",
|
||||
"Mar 08, 2021",
|
||||
"02"
|
||||
),
|
||||
createData(
|
||||
"App Design & Development",
|
||||
"/images/folder.png",
|
||||
"ET Themes",
|
||||
"521 MB",
|
||||
"Feb 13, 2021",
|
||||
"01"
|
||||
),
|
||||
createData(
|
||||
"Ubold Sketch Design",
|
||||
"/images/folder.png",
|
||||
"Gary Coley",
|
||||
"64.2 MB",
|
||||
"Dec 18, 2020",
|
||||
"02"
|
||||
),
|
||||
createData(
|
||||
"Annualreport.pdf",
|
||||
"/images/folder.png",
|
||||
"Cooper Sharwood",
|
||||
"12.5 GB",
|
||||
"Nov 25, 2020",
|
||||
"05"
|
||||
),
|
||||
createData(
|
||||
"Wireframes",
|
||||
"/images/folder.png",
|
||||
"Jasper Rigg",
|
||||
"8.3 MB",
|
||||
"Nov 25, 2019",
|
||||
"03"
|
||||
),
|
||||
createData(
|
||||
"App Design",
|
||||
"/images/folder.png",
|
||||
"ET Agency",
|
||||
"5 GB",
|
||||
"Jan 08, 2022",
|
||||
"15"
|
||||
),
|
||||
createData(
|
||||
"Web Design & Development",
|
||||
"/images/folder.png",
|
||||
"ET Templates",
|
||||
"13 GB",
|
||||
"Jan 13, 2022",
|
||||
"90"
|
||||
),
|
||||
createData(
|
||||
"React Template",
|
||||
"/images/folder.png",
|
||||
"ET Company",
|
||||
"100 GB",
|
||||
"Dec 18, 2021",
|
||||
"120"
|
||||
),
|
||||
createData(
|
||||
"Material Template",
|
||||
"/images/folder.png",
|
||||
"Cooper Sharwood",
|
||||
"12.5 GB",
|
||||
"Nov 25, 2020",
|
||||
"05"
|
||||
),
|
||||
createData(
|
||||
"Angular Template",
|
||||
"/images/folder.png",
|
||||
"Jasper Rigg",
|
||||
"8.3 MB",
|
||||
"Nov 25, 2019",
|
||||
"03"
|
||||
),
|
||||
];
|
||||
|
||||
const TemplateFiles = () => {
|
||||
return (
|
||||
<>
|
||||
<Card
|
||||
sx={{
|
||||
boxShadow: "none",
|
||||
borderRadius: "10px",
|
||||
p: "25px",
|
||||
mb: "15px",
|
||||
}}
|
||||
>
|
||||
<Box
|
||||
sx={{
|
||||
borderBottom: "1px solid #EEF0F7",
|
||||
paddingBottom: "10px",
|
||||
mb: "20px",
|
||||
}}
|
||||
className="for-dark-bottom-border"
|
||||
>
|
||||
<Typography
|
||||
as="h3"
|
||||
sx={{
|
||||
fontSize: 18,
|
||||
fontWeight: 500,
|
||||
}}
|
||||
>
|
||||
Templates
|
||||
</Typography>
|
||||
</Box>
|
||||
|
||||
<TableContainer
|
||||
component={Paper}
|
||||
sx={{
|
||||
boxShadow: "none",
|
||||
maxHeight: "650px",
|
||||
overflowY: "auto",
|
||||
}}
|
||||
>
|
||||
<Table
|
||||
sx={{ minWidth: 800 }}
|
||||
aria-label="simple table"
|
||||
className="dark-table"
|
||||
>
|
||||
<TableHead sx={{ background: "#F7FAFF" }}>
|
||||
<TableRow>
|
||||
<TableCell
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
|
||||
>
|
||||
Name
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
|
||||
>
|
||||
Owner
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
|
||||
>
|
||||
File Size
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
|
||||
>
|
||||
Listed Date
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
|
||||
>
|
||||
File Item
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="right"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
|
||||
>
|
||||
Actions
|
||||
</TableCell>
|
||||
</TableRow>
|
||||
</TableHead>
|
||||
|
||||
<TableBody>
|
||||
{rows.map((row) => (
|
||||
<TableRow
|
||||
key={row.name}
|
||||
sx={{ "&:last-child td, &:last-child th": { border: 0 } }}
|
||||
>
|
||||
<TableCell
|
||||
sx={{ borderBottom: "1px solid #F7FAFF" }}
|
||||
>
|
||||
<Box
|
||||
sx={{
|
||||
display: "flex",
|
||||
alignItems: "center",
|
||||
}}
|
||||
>
|
||||
<img src={row.icon} alt="Image" width="22px" />
|
||||
<Typography
|
||||
as="h5"
|
||||
fontWeight="500"
|
||||
fontSize="13px"
|
||||
className="ml-1"
|
||||
>
|
||||
{row.name}
|
||||
</Typography>
|
||||
</Box>
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13px" }}
|
||||
>
|
||||
{row.owner}
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13px" }}
|
||||
>
|
||||
{row.fileSize}
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13px" }}
|
||||
>
|
||||
{row.listedDate}
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13px" }}
|
||||
>
|
||||
{row.fileItem}
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="right"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF" }}
|
||||
>
|
||||
<Box
|
||||
sx={{
|
||||
display: "inline-block",
|
||||
}}
|
||||
>
|
||||
<Tooltip title="Remove" placement="top">
|
||||
<IconButton
|
||||
aria-label="remove"
|
||||
size="small"
|
||||
color="danger"
|
||||
className="danger"
|
||||
>
|
||||
<DeleteIcon fontSize="inherit" />
|
||||
</IconButton>
|
||||
</Tooltip>
|
||||
|
||||
<Tooltip title="Download" placement="top">
|
||||
<IconButton
|
||||
aria-label="download"
|
||||
size="small"
|
||||
color="success"
|
||||
className="success"
|
||||
>
|
||||
<CloudDownloadIcon fontSize="inherit" />
|
||||
</IconButton>
|
||||
</Tooltip>
|
||||
|
||||
<Tooltip title="Rename" placement="top">
|
||||
<IconButton
|
||||
aria-label="rename"
|
||||
size="small"
|
||||
color="primary"
|
||||
className="primary"
|
||||
>
|
||||
<DriveFileRenameOutlineIcon fontSize="inherit" />
|
||||
</IconButton>
|
||||
</Tooltip>
|
||||
</Box>
|
||||
</TableCell>
|
||||
</TableRow>
|
||||
))}
|
||||
</TableBody>
|
||||
</Table>
|
||||
</TableContainer>
|
||||
</Card>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default TemplateFiles;
|
||||
@@ -0,0 +1,274 @@
|
||||
import React from "react";
|
||||
import { Box, Typography } from "@mui/material";
|
||||
import Card from "@mui/material/Card";
|
||||
import Table from "@mui/material/Table";
|
||||
import TableBody from "@mui/material/TableBody";
|
||||
import TableCell from "@mui/material/TableCell";
|
||||
import TableContainer from "@mui/material/TableContainer";
|
||||
import TableHead from "@mui/material/TableHead";
|
||||
import TableRow from "@mui/material/TableRow";
|
||||
import Paper from "@mui/material/Paper";
|
||||
import Tooltip from "@mui/material/Tooltip";
|
||||
import IconButton from "@mui/material/IconButton";
|
||||
import DeleteIcon from "@mui/icons-material/Delete";
|
||||
|
||||
function createData(name, icon, owner, fileSize, listedDate, fileItem) {
|
||||
return { name, icon, owner, fileSize, listedDate, fileItem };
|
||||
}
|
||||
|
||||
const rows = [
|
||||
createData(
|
||||
"Product UI/UX Design",
|
||||
"/images/folder.png",
|
||||
"Danielle Thompson",
|
||||
"0.7 GB",
|
||||
"Mar 08, 2021",
|
||||
"02"
|
||||
),
|
||||
createData(
|
||||
"App Design & Development",
|
||||
"/images/folder.png",
|
||||
"ET Themes",
|
||||
"521 MB",
|
||||
"Feb 13, 2021",
|
||||
"01"
|
||||
),
|
||||
createData(
|
||||
"Ubold Sketch Design",
|
||||
"/images/folder.png",
|
||||
"Gary Coley",
|
||||
"64.2 MB",
|
||||
"Dec 18, 2020",
|
||||
"02"
|
||||
),
|
||||
createData(
|
||||
"Annualreport.pdf",
|
||||
"/images/folder.png",
|
||||
"Cooper Sharwood",
|
||||
"12.5 GB",
|
||||
"Nov 25, 2020",
|
||||
"05"
|
||||
),
|
||||
createData(
|
||||
"Wireframes",
|
||||
"/images/folder.png",
|
||||
"Jasper Rigg",
|
||||
"8.3 MB",
|
||||
"Nov 25, 2019",
|
||||
"03"
|
||||
),
|
||||
createData(
|
||||
"App Design",
|
||||
"/images/folder.png",
|
||||
"ET Agency",
|
||||
"5 GB",
|
||||
"Jan 08, 2022",
|
||||
"15"
|
||||
),
|
||||
createData(
|
||||
"Web Design & Development",
|
||||
"/images/folder.png",
|
||||
"ET Templates",
|
||||
"13 GB",
|
||||
"Jan 13, 2022",
|
||||
"90"
|
||||
),
|
||||
createData(
|
||||
"React Template",
|
||||
"/images/folder.png",
|
||||
"ET Company",
|
||||
"100 GB",
|
||||
"Dec 18, 2021",
|
||||
"120"
|
||||
),
|
||||
createData(
|
||||
"Material Template",
|
||||
"/images/folder.png",
|
||||
"Cooper Sharwood",
|
||||
"12.5 GB",
|
||||
"Nov 25, 2020",
|
||||
"05"
|
||||
),
|
||||
createData(
|
||||
"Angular Template",
|
||||
"/images/folder.png",
|
||||
"Jasper Rigg",
|
||||
"8.3 MB",
|
||||
"Nov 25, 2019",
|
||||
"03"
|
||||
),
|
||||
];
|
||||
|
||||
const TrashFiles = () => {
|
||||
return (
|
||||
<>
|
||||
<Card
|
||||
sx={{
|
||||
boxShadow: "none",
|
||||
borderRadius: "10px",
|
||||
p: "25px",
|
||||
mb: "15px",
|
||||
}}
|
||||
>
|
||||
<Box
|
||||
sx={{
|
||||
borderBottom: "1px solid #EEF0F7",
|
||||
paddingBottom: "10px",
|
||||
mb: "20px",
|
||||
}}
|
||||
className="for-dark-bottom-border"
|
||||
>
|
||||
<Typography
|
||||
as="h3"
|
||||
sx={{
|
||||
fontSize: 18,
|
||||
fontWeight: 500,
|
||||
}}
|
||||
>
|
||||
Trash Files
|
||||
</Typography>
|
||||
</Box>
|
||||
|
||||
<TableContainer
|
||||
component={Paper}
|
||||
sx={{
|
||||
boxShadow: "none",
|
||||
maxHeight: "650px",
|
||||
overflowY: "auto",
|
||||
}}
|
||||
>
|
||||
<Table
|
||||
sx={{ minWidth: 800 }}
|
||||
aria-label="simple table"
|
||||
className="dark-table"
|
||||
>
|
||||
<TableHead sx={{ background: "#F7FAFF" }}>
|
||||
<TableRow>
|
||||
<TableCell
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
|
||||
>
|
||||
Name
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
|
||||
>
|
||||
Owner
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
|
||||
>
|
||||
File Size
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
|
||||
>
|
||||
Listed Date
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
|
||||
>
|
||||
File Item
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="right"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
|
||||
>
|
||||
Actions
|
||||
</TableCell>
|
||||
</TableRow>
|
||||
</TableHead>
|
||||
|
||||
<TableBody>
|
||||
{rows.map((row) => (
|
||||
<TableRow
|
||||
key={row.name}
|
||||
sx={{ "&:last-child td, &:last-child th": { border: 0 } }}
|
||||
>
|
||||
<TableCell
|
||||
sx={{ borderBottom: "1px solid #F7FAFF" }}
|
||||
>
|
||||
<Box
|
||||
sx={{
|
||||
display: "flex",
|
||||
alignItems: "center",
|
||||
}}
|
||||
>
|
||||
<img src={row.icon} alt="Image" width="22px" />
|
||||
<Typography
|
||||
as="h5"
|
||||
fontWeight="500"
|
||||
fontSize="13px"
|
||||
className="ml-1"
|
||||
>
|
||||
{row.name}
|
||||
</Typography>
|
||||
</Box>
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13px" }}
|
||||
>
|
||||
{row.owner}
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13px" }}
|
||||
>
|
||||
{row.fileSize}
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13px" }}
|
||||
>
|
||||
{row.listedDate}
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13px" }}
|
||||
>
|
||||
{row.fileItem}
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="right"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF" }}
|
||||
>
|
||||
<Box
|
||||
sx={{
|
||||
display: "inline-block",
|
||||
}}
|
||||
>
|
||||
<Tooltip title="Remove Permanently" placement="top">
|
||||
<IconButton
|
||||
aria-label="Remove Permanently"
|
||||
size="small"
|
||||
color="danger"
|
||||
className="danger"
|
||||
>
|
||||
<DeleteIcon fontSize="inherit" />
|
||||
</IconButton>
|
||||
</Tooltip>
|
||||
</Box>
|
||||
</TableCell>
|
||||
</TableRow>
|
||||
))}
|
||||
</TableBody>
|
||||
</Table>
|
||||
</TableContainer>
|
||||
</Card>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default TrashFiles;
|
||||
Reference in New Issue
Block a user