first commit

This commit is contained in:
DESKTOP-GBA0BK8\Admin
2023-03-25 20:44:56 -04:00
commit 97cc85c49d
711 changed files with 109164 additions and 0 deletions
@@ -0,0 +1,56 @@
.timelineList .tList {
position: relative;
margin-bottom: 15px;
padding-bottom: 15px;
border-bottom: 1px solid #F7FAFF;
display: flex;
align-items: center;
justify-content: space-between;
}
.timelineList .tList:last-child {
border: none;
padding-bottom: 0;
margin-bottom: 0;
}
.timelineList .tList .content {
display: flex;
align-items: center;
}
.timelineList .tList .content img {
margin-right: 10px;
width: 27px;
}
.timelineList .tList .content h5 {
margin: 0;
color: #5B5B98;
font-size: 13px;
font-weight: 500;
}
.timelineList .tList .date {
color: #A9A9C8;
font-size: 12px;
margin: 0;
}
@media only screen and (min-width: 1800px) {
.timelineList .tList {
margin-bottom: 16.5px;
padding-bottom: 16.5px;
}
}
[dir="rtl"] .timelineList .tList .content img {
margin-right: 0;
margin-left: 10px;
}
/* For dark mode */
[class="dark"] .timelineList .tList {
border-bottom: 1px solid var(--borderColor);
}
[class="dark"] .timelineList .tList:last-child {
border-bottom: none;
}
[class="dark"] .timelineList .tList .content h5 {
color: var(--darkHeadingTextColor);
}
@@ -0,0 +1,158 @@
import React from "react";
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";
import styles from "@/components/Dashboard/ProjectManagement/ActivityTimeline/ActivityTimeline.module.css";
const ActivityTimelineData = [
{
id: "1",
image: '/images/pdf-icon.png',
title: "Donald updated the status",
time: "54 min ago",
},
{
id: "2",
image: '/images/man.png',
title: "Design new UI and check sales",
time: "10 hours ago",
},
{
id: "3",
title: "James Bangs Client Meeting",
image: '/images/small-product-img.png',
time: "5 min ago",
},
{
id: "4",
title: "Joseph Rust opened new showcase",
image: '/images/small-product-img2.png',
time: "10 min ago",
},
{
id: "5",
title: "Brust opened new showcase",
image: '/images/small-product-img3.png',
time: "15 min ago",
},
{
id: "6",
title: "Create a new project for client",
image: '/images/man.png',
time: "20 min ago",
},
];
const ActivityTimeline = () => {
const [anchorEl, setAnchorEl] = React.useState(null);
const open = Boolean(anchorEl);
const handleClick = (event) => {
setAnchorEl(event.currentTarget);
};
const handleClose = () => {
setAnchorEl(null);
};
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,
}}
>
Activity Timeline
</Typography>
<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(0,0,0,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>Last 15 Days</MenuItem>
<MenuItem>Last Month</MenuItem>
<MenuItem>Last Year</MenuItem>
</Menu>
</Box>
<div className={styles.timelineList}>
{ActivityTimelineData.slice(0, 6).map((timeline) => (
<div className={styles.tList} key={timeline.id}>
<div className={styles.content}>
<img src={timeline.image} alt="Icon" />
<h5>{timeline.title}</h5>
</div>
<p className={styles.date}>{timeline.time}</p>
</div>
))}
</div>
</Card>
</>
);
};
export default ActivityTimeline;
@@ -0,0 +1,10 @@
.members {
display: flex;
align-items: center;
position: relative;
}
.members img {
border-radius: 100%;
border: 2px solid #fff;
margin-left: -6px;
}
@@ -0,0 +1,566 @@
import React from "react";
import { Box } from "@mui/material";
import Card from "@mui/material/Card";
import { Typography } from "@mui/material";
import InputLabel from "@mui/material/InputLabel";
import MenuItem from "@mui/material/MenuItem";
import FormControl from "@mui/material/FormControl";
import Select from "@mui/material/Select";
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 { styled } from "@mui/material/styles";
import LinearProgress, {
linearProgressClasses,
} from "@mui/material/LinearProgress";
import styles from "@/components/Dashboard/ProjectManagement/AllProjects/AllProjects.module.css";
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 AllProjects = () => {
const [select, setSelect] = React.useState("");
const handleChange = (event) => {
setSelect(event.target.value);
};
return (
<>
<Card
sx={{
boxShadow: "none",
borderRadius: "10px",
p: "25px",
mb: "15px",
}}
>
<Box
sx={{
display: "flex",
alignItems: "center",
justifyContent: "space-between",
borderBottom: "1px solid #EEF0F7",
paddingBottom: "10px",
marginBottom: "15px",
}}
className="for-dark-bottom-border"
>
<Typography
as="h3"
sx={{
fontSize: 18,
fontWeight: 500,
}}
>
All Projects
</Typography>
<Box>
<FormControl sx={{ minWidth: 120 }} size="small">
<InputLabel id="demo-select-small" sx={{ fontSize: "14px" }}>
Select
</InputLabel>
<Select
labelId="demo-select-small"
id="demo-select-small"
value={select}
label="Select"
onChange={handleChange}
sx={{ fontSize: "14px" }}
>
<MenuItem value={0} sx={{ fontSize: "13px" }}>
Today
</MenuItem>
<MenuItem value={1} sx={{ fontSize: "13px" }}>
Last 7 Days
</MenuItem>
<MenuItem value={2} sx={{ fontSize: "13px" }}>
This Month
</MenuItem>
<MenuItem value={3} sx={{ fontSize: "13px" }}>
Last 12 Months
</MenuItem>
<MenuItem value={4} sx={{ fontSize: "13px" }}>
All Time
</MenuItem>
</Select>
</FormControl>
</Box>
</Box>
<TableContainer
component={Paper}
sx={{
boxShadow: "none",
maxHeight: "370px",
overflowY: "auto",
}}
>
<Table
sx={{ minWidth: 700 }}
aria-label="simple table"
className="dark-table"
>
<TableHead sx={{ background: "#F7FAFF" }}>
<TableRow>
<TableCell
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
>
Project Name
</TableCell>
<TableCell
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
>
Members
</TableCell>
<TableCell
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
align="center"
>
Budget
</TableCell>
<TableCell
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
align="center"
>
Status
</TableCell>
<TableCell
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
>
Completion
</TableCell>
<TableCell
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
align="right"
>
Due Date
</TableCell>
</TableRow>
</TableHead>
<TableBody>
<TableRow
sx={{ "&:last-child td, &:last-child th": { border: 0 } }}
>
<TableCell sx={{ borderBottom: "1px solid #F7FAFF" }}>
<Box
sx={{
display: "flex",
alignItems: "center",
}}
>
<img
src="/images/project-logo1.png"
alt="Image"
width="25px"
/>
<Typography
as="h5"
fontWeight="500"
fontSize="13px"
className="ml-1"
>
Product UI/UX Design
</Typography>
</Box>
</TableCell>
<TableCell sx={{ borderBottom: "1px solid #F7FAFF" }}>
<div className={styles.members}>
<img
src="/images/user1.png"
alt="Image"
width="28px"
height="28px"
/>
<img
src="/images/user2.png"
alt="Image"
width="28px"
height="28px"
/>
<img
src="/images/user3.png"
alt="Image"
width="28px"
height="28px"
/>
</div>
</TableCell>
<TableCell
align="center"
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13px" }}
>
$14,000
</TableCell>
<TableCell
align="center"
sx={{
fontWeight: 500,
borderBottom: "1px solid #F7FAFF",
fontSize: "11px",
}}
>
<span className="successBadge">Active</span>
</TableCell>
<TableCell sx={{ borderBottom: "1px solid #F7FAFF" }}>
<Box>
<Typography fontSize="12px">70%</Typography>
<BorderLinearProgress variant="determinate" value={70} />
</Box>
</TableCell>
<TableCell
align="right"
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13px" }}
>
08 Mar 2021
</TableCell>
</TableRow>
<TableRow
sx={{ "&:last-child td, &:last-child th": { border: 0 } }}
>
<TableCell sx={{ borderBottom: "1px solid #F7FAFF" }}>
<Box
sx={{
display: "flex",
alignItems: "center",
}}
>
<img
src="/images/project-logo2.png"
alt="Image"
width="25px"
/>
<Typography
as="h5"
fontWeight="500"
fontSize="13px"
className="ml-1"
>
Public Beta Release
</Typography>
</Box>
</TableCell>
<TableCell sx={{ borderBottom: "1px solid #F7FAFF" }}>
<div className={styles.members}>
<img
src="/images/user4.png"
alt="Image"
width="28px"
height="28px"
/>
<img
src="/images/user5.png"
alt="Image"
width="28px"
height="28px"
/>
</div>
</TableCell>
<TableCell
align="center"
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13px" }}
>
$14,000
</TableCell>
<TableCell
align="center"
sx={{
fontWeight: 500,
borderBottom: "1px solid #F7FAFF",
fontSize: "11px",
}}
>
<span className="primaryBadge">Complete</span>
</TableCell>
<TableCell sx={{ borderBottom: "1px solid #F7FAFF" }}>
<Box>
<Typography fontSize="12px">100%</Typography>
<BorderLinearProgress variant="determinate" value={100} />
</Box>
</TableCell>
<TableCell
align="right"
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13px" }}
>
17 Apr 2021
</TableCell>
</TableRow>
<TableRow
sx={{ "&:last-child td, &:last-child th": { border: 0 } }}
>
<TableCell sx={{ borderBottom: "1px solid #F7FAFF" }}>
<Box
sx={{
display: "flex",
alignItems: "center",
}}
>
<img
src="/images/project-logo3.png"
alt="Image"
width="25px"
/>
<Typography
as="h5"
fontWeight="500"
fontSize="13px"
className="ml-1"
>
SEO Marketing
</Typography>
</Box>
</TableCell>
<TableCell sx={{ borderBottom: "1px solid #F7FAFF" }}>
<div className={styles.members}>
<img
src="/images/user6.png"
alt="Image"
width="28px"
height="28px"
/>
<img
src="/images/user7.png"
alt="Image"
width="28px"
height="28px"
/>
</div>
</TableCell>
<TableCell
align="center"
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13px" }}
>
$12,000
</TableCell>
<TableCell
align="center"
sx={{
fontWeight: 500,
borderBottom: "1px solid #F7FAFF",
fontSize: "11px",
}}
>
<span className="primaryBadge">Complete</span>
</TableCell>
<TableCell sx={{ borderBottom: "1px solid #F7FAFF" }}>
<Box>
<Typography fontSize="12px">100%</Typography>
<BorderLinearProgress variant="determinate" value={100} />
</Box>
</TableCell>
<TableCell
align="right"
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13px" }}
>
10 Sep 2021
</TableCell>
</TableRow>
<TableRow
sx={{ "&:last-child td, &:last-child th": { border: 0 } }}
>
<TableCell sx={{ borderBottom: "1px solid #F7FAFF" }}>
<Box
sx={{
display: "flex",
alignItems: "center",
}}
>
<img
src="/images/project-logo4.png"
alt="Image"
width="25px"
/>
<Typography
as="h5"
fontWeight="500"
fontSize="13px"
className="ml-1"
>
New Office Building
</Typography>
</Box>
</TableCell>
<TableCell sx={{ borderBottom: "1px solid #F7FAFF" }}>
<div className={styles.members}>
<img
src="/images/user1.png"
alt="Image"
width="28px"
height="28px"
/>
<img
src="/images/user2.png"
alt="Image"
width="28px"
height="28px"
/>
<img
src="/images/user3.png"
alt="Image"
width="28px"
height="28px"
/>
</div>
</TableCell>
<TableCell
align="center"
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13px" }}
>
$9,000
</TableCell>
<TableCell
align="center"
sx={{
fontWeight: 500,
borderBottom: "1px solid #F7FAFF",
fontSize: "11px",
}}
>
<span className="dangerBadge">Pending</span>
</TableCell>
<TableCell sx={{ borderBottom: "1px solid #F7FAFF" }}>
<Box>
<Typography fontSize="12px">0%</Typography>
<BorderLinearProgress variant="determinate" value={0} />
</Box>
</TableCell>
<TableCell
align="right"
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13px" }}
>
06 Aug 2022
</TableCell>
</TableRow>
<TableRow
sx={{ "&:last-child td, &:last-child th": { border: 0 } }}
>
<TableCell sx={{ borderBottom: "1px solid #F7FAFF" }}>
<Box
sx={{
display: "flex",
alignItems: "center",
}}
>
<img
src="/images/project-logo5.png"
alt="Image"
width="25px"
/>
<Typography
as="h5"
fontWeight="500"
fontSize="13px"
className="ml-1"
>
Product Devlopment
</Typography>
</Box>
</TableCell>
<TableCell sx={{ borderBottom: "1px solid #F7FAFF" }}>
<div className={styles.members}>
<img
src="/images/user7.png"
alt="Image"
width="28px"
height="28px"
/>
<img
src="/images/user8.png"
alt="Image"
width="28px"
height="28px"
/>
<img
src="/images/user9.png"
alt="Image"
width="28px"
height="28px"
/>
</div>
</TableCell>
<TableCell
align="center"
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13px" }}
>
$16,000
</TableCell>
<TableCell
align="center"
sx={{
fontWeight: 500,
borderBottom: "1px solid #F7FAFF",
fontSize: "11px",
}}
>
<span className="successBadge">Active</span>
</TableCell>
<TableCell sx={{ borderBottom: "1px solid #F7FAFF" }}>
<Box>
<Typography fontSize="12px">80%</Typography>
<BorderLinearProgress variant="determinate" value={80} />
</Box>
</TableCell>
<TableCell
align="right"
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13px" }}
>
08 Mar 2022
</TableCell>
</TableRow>
</TableBody>
</Table>
</TableContainer>
</Card>
</>
);
};
export default AllProjects;
@@ -0,0 +1,224 @@
import React from "react";
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";
import ArrowDownwardIcon from "@mui/icons-material/ArrowDownward";
import ArrowUpwardIcon from "@mui/icons-material/ArrowUpward";
import dynamic from "next/dynamic";
const Chart = dynamic(() => import("react-apexcharts"), {
ssr: false,
});
const CompletedTasks = () => {
const [anchorEl, setAnchorEl] = React.useState(null);
const open = Boolean(anchorEl);
const handleClick = (event) => {
setAnchorEl(event.currentTarget);
};
const handleClose = () => {
setAnchorEl(null);
};
// Chart
const series = [
{
name: "Task",
data: [21, 22, 10, 28, 16, 21, 13, 30],
},
];
const options = {
chart: {
toolbar: {
show: false,
},
events: {
click: function (chart, w, e) {
// console.log(chart, w, e)
},
},
},
colors: ["#757FEF"],
plotOptions: {
bar: {
columnWidth: "30%",
distributed: true,
borderRadius: 6,
},
},
dataLabels: {
enabled: false,
},
legend: {
show: false,
},
xaxis: {
categories: [
["1 Jan"],
["2 Jan"],
["3 Jan"],
["4 Jan"],
["5 Jan"],
["6 Jan"],
["7 Jan"],
["8 Jan"],
],
labels: {
show: false,
},
axisTicks: {
show: false,
},
},
yaxis: {
show: false,
},
grid: {
show: false,
},
fill: {
opacity: 1,
},
};
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,
}}
>
Completed Tasks
</Typography>
<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(0,0,0,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: "14px" }}>Last 15 Days</MenuItem>
<MenuItem sx={{ fontSize: "14px" }}>Last Month</MenuItem>
<MenuItem sx={{ fontSize: "14px" }}>Last Year</MenuItem>
</Menu>
</Box>
<Chart options={options} series={series} type="bar" height={320} />
<Box
sx={{
display: "flex",
alignItems: "center",
justifyContent: "space-between",
textAlign: "center",
mt: "22px",
}}
>
<Box>
<Typography color="#A9A9C8" mb={1} fontSize="14px">
Target
</Typography>
<Typography fontWeight="500" fontSize="18px" as="h4">
<ArrowDownwardIcon
color="danger"
style={{ position: "relative", top: "3px" }}
/>{" "}
20k
</Typography>
</Box>
<Box>
<Typography color="#A9A9C8" mb={1} fontSize="14px">
Last Week
</Typography>
<Typography fontWeight="500" fontSize="18px" as="h4">
<ArrowUpwardIcon
color="success"
style={{ position: "relative", top: "3px" }}
/>{" "}
5.50k
</Typography>
</Box>
<Box>
<Typography color="#A9A9C8" mb={1} fontSize="14px">
Last Month
</Typography>
<Typography fontWeight="500" fontSize="18px" as="h4">
<ArrowUpwardIcon
color="success"
style={{ position: "relative", top: "3px" }}
/>{" "}
50k
</Typography>
</Box>
</Box>
</Card>
</>
);
};
export default CompletedTasks;
@@ -0,0 +1,150 @@
import React from "react";
import Grid from "@mui/material/Grid";
import Box from "@mui/material/Box";
import Card from "@mui/material/Card";
import Typography from "@mui/material/Typography";
const FeaturesData = [
{
id: "1",
subTitle: "Due Tasks",
title: "41",
iconName: "ri-pie-chart-2-line",
badgeProgress: "5.80%",
badgeClass: "successBadge",
badgeIcon: "ri-arrow-up-s-fill",
growthText: "Completed: 13 Projects this month",
},
{
id: "2",
subTitle: "Active Projects",
title: "65",
iconName: "ri-briefcase-line",
badgeProgress: "1.04%",
badgeClass: "dangerBadge",
badgeIcon: "ri-arrow-down-s-fill",
growthText: "Projects this month",
},
{
id: "3",
subTitle: "Total Hours",
title: "599",
iconName: "ri-time-line",
badgeProgress: "5.80%",
badgeClass: "successBadge",
badgeIcon: "ri-arrow-up-s-fill",
growthText: "Projects this month",
},
{
id: "4",
subTitle: "Total Projects",
title: "24k",
iconName: "ri-shield-check-line",
badgeProgress: "7.80%",
badgeClass: "successBadge",
badgeIcon: "ri-arrow-up-s-fill",
growthText: "Completed: 13 Projects this month",
},
];
const Features = () => {
return (
<>
<Grid
container
justifyContent="center"
rowSpacing={1}
columnSpacing={{ xs: 1, sm: 2, md: 2 }}
>
{FeaturesData.map((feature) => (
<Grid item xs={12} sm={6} md={6} lg={6} xl={3} key={feature.id}>
<Card
sx={{
boxShadow: "none",
borderRadius: "10px",
p: "20px 15px",
mb: "15px",
}}
>
<Box
sx={{
display: "flex",
alignItems: "center",
justifyContent: "space-between",
}}
>
<Box
sx={{
display: "flex",
alignItems: "center",
}}
>
<Box
sx={{
width: "58px",
height: "58px",
lineHeight: "58px",
background: "#757FEF",
color: "#fff",
fontSize: "30px",
borderRadius: "8px",
textAlign: "center",
}}
className="mr-10px"
>
<i className={feature.iconName}></i>
</Box>
<Box>
<Typography sx={{ fontSize: "13px" }}>
{feature.subTitle}
</Typography>
<Typography
variant="h1"
sx={{ fontSize: 25, fontWeight: 700, marginTop: '4px' }}
>
{feature.title}
</Typography>
</Box>
</Box>
<Box>
<span
className={feature.badgeClass}
style={{ fontSize: "13px", fontWeight: "500" }}
>
{feature.badgeProgress}
<i
className={feature.badgeIcon}
style={{
fontSize: "13px",
position: "relative",
top: "2px",
lineHeight: "1",
}}
></i>
</span>
</Box>
</Box>
<Box mt={2}>
<Typography
sx={{
fontSize: "13px",
display: "flex",
alignItems: "center",
}}
>
<span className="successColor mr-5px">{feature.icon}</span>
{feature.growthText}
</Typography>
</Box>
</Card>
</Grid>
))}
</Grid>
</>
);
};
export default Features;
@@ -0,0 +1,472 @@
import React, { Component } from "react";
import dynamic from "next/dynamic";
const Chart = dynamic(() => import("react-apexcharts"), {
ssr: false,
});
class IssuesSummaryChart extends Component {
constructor(props) {
super(props);
this.state = {
series: [
{
data: [
[1327359500000, 30.95],
[1327445000000, 31.34],
[1327532400000, 31.18],
[1327618800000, 31.05],
[1327878000000, 31.0],
[1327964400000, 30.95],
[1328050800000, 31.24],
[1328137200000, 31.29],
[1328223500000, 31.85],
[1328482800000, 31.86],
[1328569200000, 32.28],
[1328655500000, 32.1],
[1328742000000, 32.65],
[1328828400000, 32.21],
[1329087500000, 32.35],
[1329174000000, 32.44],
[1329260400000, 32.46],
[1329346800000, 32.86],
[1329433200000, 32.75],
[1329778800000, 32.54],
[1329865200000, 32.33],
[1329951500000, 32.97],
[1330038000000, 33.41],
[1330297200000, 33.27],
[1330383500000, 33.27],
[1330470000000, 32.89],
[1330556400000, 33.1],
[1330642800000, 33.73],
[1330902000000, 33.22],
[1330988400000, 31.99],
[1331074800000, 32.41],
[1331161200000, 33.05],
[1331247500000, 33.64],
[1331506800000, 33.56],
[1331593200000, 34.22],
[1331679500000, 33.77],
[1331765000000, 34.17],
[1331852400000, 33.82],
[1332111500000, 34.51],
[1332198000000, 33.16],
[1332284400000, 33.56],
[1332370800000, 33.71],
[1332457200000, 33.81],
[1332712800000, 34.4],
[1332799200000, 34.63],
[1332885500000, 34.46],
[1332972000000, 34.48],
[1333058400000, 34.31],
[1333317500000, 34.7],
[1333404000000, 34.31],
[1333490400000, 33.46],
[1333576800000, 33.59],
[1333922400000, 33.22],
[1334008800000, 32.61],
[1334095200000, 33.01],
[1334181500000, 33.55],
[1334268000000, 33.18],
[1334527200000, 32.84],
[1334613500000, 33.84],
[1334700000000, 33.39],
[1334786400000, 32.91],
[1334872800000, 33.06],
[1335132000000, 32.62],
[1335218400000, 32.4],
[1335304800000, 33.13],
[1335391200000, 33.26],
[1335477500000, 33.58],
[1335736800000, 33.55],
[1335823200000, 33.77],
[1335909500000, 33.76],
[1335995000000, 33.32],
[1336082400000, 32.61],
[1336341500000, 32.52],
[1336428000000, 32.67],
[1336514400000, 32.52],
[1336500800000, 31.92],
[1336687200000, 32.2],
[1336946400000, 32.23],
[1337032800000, 32.33],
[1337119200000, 32.36],
[1337205500000, 32.01],
[1337292000000, 31.31],
[1337551200000, 32.01],
[1337637500000, 32.01],
[1337724000000, 32.18],
[1337810400000, 31.54],
[1337896800000, 31.6],
[1338242400000, 32.05],
[1338328800000, 31.29],
[1338415200000, 31.05],
[1338501500000, 29.82],
[1338760800000, 30.31],
[1338847200000, 30.7],
[1338933500000, 31.69],
[1339020000000, 31.32],
[1339106400000, 31.65],
[1339365500000, 31.13],
[1339452000000, 31.77],
[1339538400000, 31.79],
[1339624800000, 31.67],
[1339711200000, 32.39],
[1339970400000, 32.63],
[1340056800000, 32.89],
[1340143200000, 31.99],
[1340229500000, 31.23],
[1340315000000, 31.57],
[1340575200000, 30.84],
[1340661500000, 31.07],
[1340748000000, 31.41],
[1340834400000, 31.17],
[1340920800000, 32.37],
[1341180000000, 32.19],
[1341266400000, 32.51],
[1341439200000, 32.53],
[1341525500000, 31.37],
[1341784800000, 30.43],
[1341871200000, 30.44],
[1341957500000, 30.2],
[1342044000000, 30.14],
[1342130400000, 30.65],
[1342389500000, 30.4],
[1342475000000, 30.65],
[1342562400000, 31.43],
[1342648800000, 31.89],
[1342735200000, 31.38],
[1342994400000, 30.64],
[1343080800000, 30.02],
[1343167200000, 30.33],
[1343253500000, 30.95],
[1343340000000, 31.89],
[1343599200000, 31.01],
[1343685500000, 30.88],
[1343772000000, 30.69],
[1343858400000, 30.58],
[1343944800000, 32.02],
[1344204000000, 32.14],
[1344290400000, 32.37],
[1344376800000, 32.51],
[1344463200000, 32.65],
[1344549500000, 32.64],
[1344808800000, 32.27],
[1344895200000, 32.1],
[1344981500000, 32.91],
[1345068000000, 33.65],
[1345154400000, 33.8],
[1345413500000, 33.92],
[1345500000000, 33.75],
[1345586400000, 33.84],
[1345672800000, 33.5],
[1345759200000, 32.26],
[1346018400000, 32.32],
[1346104800000, 32.06],
[1346191200000, 31.96],
[1346277500000, 31.46],
[1346364000000, 31.27],
[1346709500000, 31.43],
[1346795000000, 32.26],
[1346882400000, 32.79],
[1346968800000, 32.46],
[1347228000000, 32.13],
[1347314400000, 32.43],
[1347400800000, 32.42],
[1347487200000, 32.81],
[1347573500000, 33.34],
[1347832800000, 33.41],
[1347919200000, 32.57],
[1348005500000, 33.12],
[1348092000000, 34.53],
[1348178400000, 33.83],
[1348437500000, 33.41],
[1348524000000, 32.9],
[1348610400000, 32.53],
[1348696800000, 32.8],
[1348783200000, 32.44],
[1349042400000, 32.62],
[1349128800000, 32.57],
[1349215200000, 32.6],
[1349301500000, 32.68],
[1349388000000, 32.47],
[1349647200000, 32.23],
[1349733500000, 31.68],
[1349820000000, 31.51],
[1349906400000, 31.78],
[1349992800000, 31.94],
[1350252000000, 32.33],
[1350338400000, 33.24],
[1350424800000, 33.44],
[1350511200000, 33.48],
[1350597500000, 33.24],
[1350856800000, 33.49],
[1350943200000, 33.31],
[1351029500000, 33.36],
[1351115000000, 33.4],
[1351202400000, 34.01],
[1351638000000, 34.02],
[1351724400000, 34.36],
[1351810800000, 34.39],
[1352070000000, 34.24],
[1352156400000, 34.39],
[1352242800000, 33.47],
[1352329200000, 32.98],
[1352415500000, 32.9],
[1352674800000, 32.7],
[1352761200000, 32.54],
[1352847500000, 32.23],
[1352934000000, 32.64],
[1353020400000, 32.65],
[1353279500000, 32.92],
[1353365000000, 32.64],
[1353452400000, 32.84],
[1353625200000, 33.4],
[1353884400000, 33.3],
[1353970800000, 33.18],
[1354057200000, 33.88],
[1354143500000, 34.09],
[1354230000000, 34.61],
[1354489200000, 34.7],
[1354575500000, 35.3],
[1354662000000, 35.4],
[1354748400000, 35.14],
[1354834800000, 35.48],
[1355094000000, 35.75],
[1355180400000, 35.54],
[1355266800000, 35.96],
[1355353200000, 35.53],
[1355439500000, 37.56],
[1355698800000, 37.42],
[1355785200000, 37.49],
[1355871500000, 38.09],
[1355958000000, 37.87],
[1356044400000, 37.71],
[1356303500000, 37.53],
[1356476400000, 37.55],
[1356562800000, 37.3],
[1356649200000, 36.9],
[1356908400000, 37.68],
[1357081200000, 38.34],
[1357167500000, 37.75],
[1357254000000, 38.13],
[1357513200000, 37.94],
[1357599500000, 38.14],
[1357685000000, 38.66],
[1357772400000, 38.62],
[1357858800000, 38.09],
[1358118000000, 38.16],
[1358204400000, 38.15],
[1358290800000, 37.88],
[1358377200000, 37.73],
[1358463500000, 37.98],
[1358809200000, 37.95],
[1358895500000, 38.25],
[1358982000000, 38.1],
[1359068400000, 38.32],
[1359327500000, 38.24],
[1359414000000, 38.52],
[1359500400000, 37.94],
[1359586800000, 37.83],
[1359673200000, 38.34],
[1359932400000, 38.1],
[1350018800000, 38.51],
[1360105200000, 38.4],
[1360191500000, 38.07],
[1360278000000, 39.12],
[1360537200000, 38.64],
[1360623500000, 38.89],
[1360710000000, 38.81],
[1360796400000, 38.61],
[1360882800000, 38.63],
[1361228400000, 38.99],
[1361314800000, 38.77],
[1361401200000, 38.34],
[1361487500000, 38.55],
[1361746800000, 38.11],
[1361833200000, 38.59],
[1361919500000, 39.6],
],
},
],
options: {
chart: {
id: "area-datetime",
zoom: {
autoScaleYaxis: true,
},
},
annotations: {
yaxis: [
{
y: 30,
borderColor: "#999",
label: {
show: true,
text: "Support",
style: {
color: "#fff",
background: "#00E396",
},
},
},
],
xaxis: [
{
x: new Date("14 Nov 2012").getTime(),
borderColor: "#999",
yAxisIndex: 0,
label: {
show: true,
text: "Rally",
style: {
color: "#fff",
background: "#775DD0",
},
},
},
],
},
dataLabels: {
enabled: false,
},
markers: {
size: 0,
style: "hollow",
},
xaxis: {
type: "datetime",
min: new Date("01 Mar 2012").getTime(),
tickAmount: 6,
},
tooltip: {
x: {
format: "dd MMM yyyy",
},
},
fill: {
type: "gradient",
gradient: {
shadeIntensity: 1,
opacityFrom: 0.7,
opacityTo: 0.9,
stops: [0, 100],
},
},
},
selection: "one_year",
};
}
updateData(timeline) {
this.setState({
selection: timeline,
});
switch (timeline) {
case "one_month":
ApexCharts.exec(
"area-datetime",
"zoomX",
new Date("28 Jan 2013").getTime(),
new Date("27 Feb 2013").getTime()
);
break;
case "six_months":
ApexCharts.exec(
"area-datetime",
"zoomX",
new Date("27 Sep 2012").getTime(),
new Date("27 Feb 2013").getTime()
);
break;
case "one_year":
ApexCharts.exec(
"area-datetime",
"zoomX",
new Date("27 Feb 2012").getTime(),
new Date("27 Feb 2013").getTime()
);
break;
case "ytd":
ApexCharts.exec(
"area-datetime",
"zoomX",
new Date("01 Jan 2013").getTime(),
new Date("27 Feb 2013").getTime()
);
break;
case "all":
ApexCharts.exec(
"area-datetime",
"zoomX",
new Date("23 Jan 2012").getTime(),
new Date("27 Feb 2013").getTime()
);
break;
default:
}
}
render() {
return (
<>
<div id="chart">
<div className="toolbar">
<button
id="one_month"
onClick={() => this.updateData("one_month")}
className={this.state.selection === "one_month" ? "active" : ""}
>
1M
</button>
&nbsp;
<button
id="six_months"
onClick={() => this.updateData("six_months")}
className={this.state.selection === "six_months" ? "active" : ""}
>
6M
</button>
&nbsp;
<button
id="one_year"
onClick={() => this.updateData("one_year")}
className={this.state.selection === "one_year" ? "active" : ""}
>
1Y
</button>
&nbsp;
<button
id="ytd"
onClick={() => this.updateData("ytd")}
className={this.state.selection === "ytd" ? "active" : ""}
>
YTD
</button>
&nbsp;
<button
id="all"
onClick={() => this.updateData("all")}
className={this.state.selection === "all" ? "active" : ""}
>
ALL
</button>
</div>
<div id="chart-timeline">
<Chart
options={this.state.options}
series={this.state.series}
type="area"
height={350}
/>
</div>
</div>
</>
);
}
}
export default IssuesSummaryChart;
@@ -0,0 +1,43 @@
import React from "react";
import { Box, Typography } from "@mui/material";
import Card from "@mui/material/Card";
import IssuesSummaryChart from "./IssuesSummaryChart";
const IssuesSummary = () => {
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,
}}
>
Issues Summary
</Typography>
</Box>
{/* IssuesSummaryChart */}
<IssuesSummaryChart />
</Card>
</>
);
};
export default IssuesSummary;
@@ -0,0 +1,402 @@
import React from "react";
import { Box, Typography } from "@mui/material";
import Card from "@mui/material/Card";
import IconButton from "@mui/material/IconButton";
import PropTypes from "prop-types";
import { useTheme } from "@mui/material/styles";
import Table from "@mui/material/Table";
import TableHead from "@mui/material/TableHead";
import TableBody from "@mui/material/TableBody";
import TableCell from "@mui/material/TableCell";
import TableContainer from "@mui/material/TableContainer";
import TableFooter from "@mui/material/TableFooter";
import TablePagination from "@mui/material/TablePagination";
import TableRow from "@mui/material/TableRow";
import Paper from "@mui/material/Paper";
import FirstPageIcon from "@mui/icons-material/FirstPage";
import KeyboardArrowLeft from "@mui/icons-material/KeyboardArrowLeft";
import KeyboardArrowRight from "@mui/icons-material/KeyboardArrowRight";
import LastPageIcon from "@mui/icons-material/LastPage";
import Tooltip from "@mui/material/Tooltip";
import Checkbox from '@mui/material/Checkbox';
const label = { inputProps: { 'aria-label': 'Checkbox demo' } };
function MyTask(props) {
const theme = useTheme();
const { count, page, rowsPerPage, onPageChange } = props;
const handleFirstPageButtonClick = (event) => {
onPageChange(event, 0);
};
const handleBackButtonClick = (event) => {
onPageChange(event, page - 1);
};
const handleNextButtonClick = (event) => {
onPageChange(event, page + 1);
};
const handleLastPageButtonClick = (event) => {
onPageChange(event, Math.max(0, Math.ceil(count / rowsPerPage) - 1));
};
return (
<Box sx={{ flexShrink: 0, ml: 2.5 }}>
<IconButton
onClick={handleFirstPageButtonClick}
disabled={page === 0}
aria-label="first page"
>
{theme.direction === "rtl" ? <LastPageIcon /> : <FirstPageIcon />}
</IconButton>
<IconButton
onClick={handleBackButtonClick}
disabled={page === 0}
aria-label="previous page"
>
{theme.direction === "rtl" ? (
<KeyboardArrowRight />
) : (
<KeyboardArrowLeft />
)}
</IconButton>
<IconButton
onClick={handleNextButtonClick}
disabled={page >= Math.ceil(count / rowsPerPage) - 1}
aria-label="next page"
>
{theme.direction === "rtl" ? (
<KeyboardArrowLeft />
) : (
<KeyboardArrowRight />
)}
</IconButton>
<IconButton
onClick={handleLastPageButtonClick}
disabled={page >= Math.ceil(count / rowsPerPage) - 1}
aria-label="last page"
>
{theme.direction === "rtl" ? <FirstPageIcon /> : <LastPageIcon />}
</IconButton>
</Box>
);
}
MyTask.propTypes = {
count: PropTypes.number.isRequired,
onPageChange: PropTypes.func.isRequired,
page: PropTypes.number.isRequired,
rowsPerPage: PropTypes.number.isRequired,
};
function createData(task, dedline, status, badgeClass, assignee, memberName) {
return {
task,
dedline,
status,
badgeClass,
assignee,
memberName,
};
}
const rows = [
createData(
"Public Beta Release",
"14 Feb 2022",
"On Going",
"successBadge",
"/images/user1.png",
"Wade"
),
createData(
"Fix Platform Errors",
"15 Mar 2022",
"Completed",
"primaryBadge",
"/images/user2.png",
"Dave"
),
createData(
"Launch our Mobile App",
"15 Apr 2022",
"On Going",
"successBadge",
"/images/user3.png",
"Liam"
),
createData(
"Add the New Pricing Page",
"15 May 2022",
"Pending",
"dangerBadge",
"/images/user4.png",
"Nathaniel"
),
createData(
"Redesign New Online Shop",
"15 Jun 2022",
"On Going",
"successBadge",
"/images/user5.png",
"Lewis"
),
createData(
"Material Ui Design",
"15 Jul 2022",
"On Going",
"successBadge",
"/images/user6.png",
"Milton"
),
createData(
"Add Progress Track",
"15 Mar 2022",
"Completed",
"primaryBadge",
"/images/user7.png",
"Claude"
),
createData(
"Web Design",
"15 Aug 2022",
"On Going",
"successBadge",
"/images/user8.png",
"Harvey"
),
createData(
"Web Development",
"15 Nov 2022",
"On Going",
"successBadge",
"/images/user9.png",
"Blake"
),
createData(
"React App Development",
"15 Dec 2022",
"Completed",
"primaryBadge",
"/images/user10.png",
"Antonio"
),
createData(
"eCommerce Development",
"15 Nov 2022",
"On Going",
"successBadge",
"/images/user11.png",
"Conner"
),
createData(
"App Development",
"15 Nov 2022",
"On Going",
"successBadge",
"/images/user12.png",
"Shane"
),
].sort((a, b) => (a.task < b.task ? -1 : 1));
const MyTasks = () => {
const [page, setPage] = React.useState(0);
const [rowsPerPage, setRowsPerPage] = React.useState(6);
// Avoid a layout jump when reaching the last page with empty rows.
const emptyRows =
page > 0 ? Math.max(0, (1 + page) * rowsPerPage - rows.length) : 0;
const handleChangePage = (event, newPage) => {
setPage(newPage);
};
const handleChangeRowsPerPage = (event) => {
setRowsPerPage(parseInt(event.target.value, 10));
setPage(0);
};
return (
<>
<Card
sx={{
boxShadow: "none",
borderRadius: "10px",
p: "25px 20px 15px",
mb: "15px",
}}
>
<Box
sx={{
paddingBottom: "10px",
}}
>
<Typography
as="h3"
sx={{
fontSize: 18,
fontWeight: 500,
}}
>
My Tasks
</Typography>
</Box>
<TableContainer
component={Paper}
sx={{
boxShadow: "none",
}}
>
<Table
sx={{ minWidth: 500 }}
aria-label="custom pagination table"
className="dark-table"
>
<TableHead sx={{ background: "#F7FAFF" }}>
<TableRow>
<TableCell
sx={{
borderBottom: "1px solid #F7FAFF",
fontSize: "13.5px",
padding: "15px 10px",
}}
>
Task
</TableCell>
<TableCell
sx={{
borderBottom: "1px solid #F7FAFF",
fontSize: "13.5px",
padding: "15px 10px",
}}
>
Dedline
</TableCell>
<TableCell
align="center"
sx={{
borderBottom: "1px solid #F7FAFF",
fontSize: "13.5px",
padding: "15px 10px",
}}
>
Status
</TableCell>
<TableCell
align="center"
sx={{
borderBottom: "1px solid #F7FAFF",
fontSize: "13.5px",
padding: "15px 10px",
}}
>
Assignee
</TableCell>
</TableRow>
</TableHead>
<TableBody>
{(rowsPerPage > 0
? rows.slice(
page * rowsPerPage,
page * rowsPerPage + rowsPerPage
)
: rows
).map((row) => (
<TableRow key={row.task}>
<TableCell
sx={{
fontWeight: "500",
fontSize: "13px",
borderBottom: "1px solid #F7FAFF",
color: "#260944",
padding: "9px 10px",
}}
>
<Checkbox {...label} size="small" />
{row.task}
</TableCell>
<TableCell
sx={{
borderBottom: "1px solid #F7FAFF",
padding: "9px 10px",
fontSize: "13px",
}}
>
{row.dedline}
</TableCell>
<TableCell
align="center"
sx={{
fontWeight: 500,
borderBottom: "1px solid #F7FAFF",
fontSize: "12px",
padding: "9px 10px",
}}
>
<span className={row.badgeClass}>{row.status}</span>
</TableCell>
<TableCell
align="center"
sx={{
borderBottom: "1px solid #F7FAFF",
padding: "9px 10px",
}}
>
<Tooltip title={row.memberName} placement="left">
<img
src={row.assignee}
alt="Img"
wisth="30px"
height="30px"
className="borRadius100"
/>
</Tooltip>
</TableCell>
</TableRow>
))}
{emptyRows > 0 && (
<TableRow style={{ height: 53 * emptyRows }}>
<TableCell
colSpan={4}
style={{ borderBottom: "1px solid #F7FAFF" }}
/>
</TableRow>
)}
</TableBody>
<TableFooter>
<TableRow>
<TablePagination
rowsPerPageOptions={[5, 10, 25, { label: "All", value: -1 }]}
colSpan={8}
count={rows.length}
rowsPerPage={rowsPerPage}
page={page}
SelectProps={{
inputProps: {
"aria-label": "rows per page",
},
native: true,
}}
onPageChange={handleChangePage}
onRowsPerPageChange={handleChangeRowsPerPage}
ActionsComponent={MyTask}
style={{ borderBottom: "none" }}
/>
</TableRow>
</TableFooter>
</Table>
</TableContainer>
</Card>
</>
);
};
export default MyTasks;
@@ -0,0 +1,50 @@
import React, { Component } from "react";
import dynamic from "next/dynamic";
const Chart = dynamic(() => import("react-apexcharts"), {
ssr: false,
});
class TaskDistributionChart extends Component {
constructor(props) {
super(props);
this.state = {
series: [14, 23, 21, 17],
options: {
labels: ['API', 'Frontend', 'Backend', 'Design'],
colors: ["#B8C8DB", "#A1AADB", "#BA68C8", "#8E72C8"],
fill: {
opacity: 0.9,
},
responsive: [
{
breakpoint: 480,
options: {
chart: {
width: 200,
},
legend: {
position: "bottom",
},
},
},
],
},
};
}
render() {
return (
<>
<Chart
options={this.state.options}
series={this.state.series}
height="390"
type="polarArea"
/>
</>
);
}
}
export default TaskDistributionChart;
@@ -0,0 +1,75 @@
import React from "react";
import { Box } from "@mui/material";
import Card from "@mui/material/Card";
import { Typography } from "@mui/material";
import InputLabel from "@mui/material/InputLabel";
import MenuItem from "@mui/material/MenuItem";
import FormControl from "@mui/material/FormControl";
import Select from "@mui/material/Select";
import TaskDistributionChart from "./TaskDistributionChart";
const TaskDistribution = () => {
const [select, setSelect] = React.useState("");
const handleChange = (event) => {
setSelect(event.target.value);
};
return (
<>
<Card
sx={{
boxShadow: "none",
borderRadius: "10px",
p: "25px",
mb: "15px",
}}
>
<Box
sx={{
display: "flex",
alignItems: "center",
justifyContent: "space-between",
borderBottom: "1px solid #EEF0F7",
paddingBottom: "10px",
marginBottom: "15px",
}}
className="for-dark-bottom-border"
>
<Typography
as="h3"
sx={{
fontSize: 18,
fontWeight: 500,
}}
>
Task Distribution
</Typography>
<Box>
<FormControl sx={{ minWidth: 120 }} size="small">
<InputLabel id="demo-select-small" sx={{ fontSize: '14px' }}>Select</InputLabel>
<Select
labelId="demo-select-small"
id="demo-select-small"
value={select}
label="Select"
onChange={handleChange}
sx={{ fontSize: '14px' }}
>
<MenuItem value={0} sx={{ fontSize: '14px' }}>Today</MenuItem>
<MenuItem value={1} sx={{ fontSize: '14px' }}>Last 7 Days</MenuItem>
<MenuItem value={2} sx={{ fontSize: '14px' }}>Last Month</MenuItem>
<MenuItem value={3} sx={{ fontSize: '14px' }}>Last 12 Months</MenuItem>
<MenuItem value={4} sx={{ fontSize: '14px' }}>All Time</MenuItem>
</Select>
</FormControl>
</Box>
</Box>
{/* TaskDistributionChart */}
<TaskDistributionChart />
</Card>
</>
);
};
export default TaskDistribution;
@@ -0,0 +1,141 @@
import React, { Component } from "react";
import { Box, Typography } from "@mui/material";
import ArrowDownwardIcon from "@mui/icons-material/ArrowDownward";
import ArrowUpwardIcon from "@mui/icons-material/ArrowUpward";
import dynamic from "next/dynamic";
const Chart = dynamic(() => import("react-apexcharts"), {
ssr: false,
});
class TasksPerformanceChart extends Component {
constructor(props) {
super(props);
this.state = {
series: [76, 67, 61, 90],
options: {
plotOptions: {
radialBar: {
offsetY: 0,
startAngle: 0,
endAngle: 270,
hollow: {
margin: 5,
size: "25%",
background: "transparent",
image: undefined,
},
dataLabels: {
name: {
show: false,
},
value: {
show: false,
},
},
},
},
colors: ["#757FEF", "#9EA5F4", "#C8CCF9", "#F1F2FD"],
labels: ["Completed", "Active", "Assigned", "Pending"],
legend: {
show: true,
floating: true,
fontSize: "13px",
position: "left",
offsetY: 0,
labels: {
color: "#5B5B98"
},
markers: {
size: 0,
},
formatter: function (seriesName, opts) {
return seriesName + ": " + opts.w.globals.series[opts.seriesIndex];
},
itemMargin: {
vertical: 3,
},
},
responsive: [
{
breakpoint: 480,
options: {
chart: {
height: 280
},
legend: {
show: false,
},
},
},
],
fill: {
opacity: 1,
},
},
};
}
render() {
return (
<>
<Chart
options={this.state.options}
series={this.state.series}
type="radialBar"
height={355}
/>
<Box
sx={{
display: "flex",
alignItems: "center",
justifyContent: "space-between",
textAlign: "center",
mt: "22px",
}}
>
<Box>
<Typography color="#A9A9C8" mb={1} fontSize="14px">
Target
</Typography>
<Typography fontWeight="500" fontSize="18px" as="h4">
<ArrowDownwardIcon
color="danger"
style={{ position: "relative", top: "3px" }}
/>{" "}
30k
</Typography>
</Box>
<Box>
<Typography color="#A9A9C8" mb={1} fontSize="14px">
Last Week
</Typography>
<Typography fontWeight="500" fontSize="18px" as="h4">
<ArrowUpwardIcon
color="success"
style={{ position: "relative", top: "3px" }}
/>{" "}
40k
</Typography>
</Box>
<Box>
<Typography color="#A9A9C8" mb={1} fontSize="14px">
Last Month
</Typography>
<Typography fontWeight="500" fontSize="18px" as="h4">
<ArrowUpwardIcon
color="success"
style={{ position: "relative", top: "3px" }}
/>{" "}
60k
</Typography>
</Box>
</Box>
</>
);
}
}
export default TasksPerformanceChart;
@@ -0,0 +1,110 @@
import React from "react";
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";
import TasksPerformanceChart from "./TasksPerformanceChart";
const TasksPerformance = () => {
const [anchorEl, setAnchorEl] = React.useState(null);
const open = Boolean(anchorEl);
const handleClick = (event) => {
setAnchorEl(event.currentTarget);
};
const handleClose = () => {
setAnchorEl(null);
};
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,
}}
>
Tasks Performance
</Typography>
<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(0,0,0,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: "14px" }}>Last 15 Days</MenuItem>
<MenuItem sx={{ fontSize: "14px" }}>Last Month</MenuItem>
<MenuItem sx={{ fontSize: "14px" }}>Last Year</MenuItem>
</Menu>
</Box>
{/* TasksPerformanceChart */}
<TasksPerformanceChart />
</Card>
</>
);
};
export default TasksPerformance;
@@ -0,0 +1,209 @@
import React from "react";
import { Box } from "@mui/material";
import Card from "@mui/material/Card";
import { Typography } from "@mui/material";
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 { styled } from "@mui/material/styles";
import LinearProgress, {
linearProgressClasses,
} from "@mui/material/LinearProgress";
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 TeamMembersData = [
{
id: "1",
image: "/images/user1.png",
name: "Jordan Stevenson",
userName: "@jstevenson5c",
hours: "110h : 150m",
task: "258",
progress: "25",
},
{
id: "2",
image: "/images/user2.png",
name: "Lydia Reese",
userName: "@lreese3b",
hours: "220h : 58m",
task: "158",
progress: "50",
},
{
id: "3",
image: "/images/user3.png",
name: "Easin Arafat",
userName: "@jstevenson5c",
hours: "315h : 40m",
task: "250",
progress: "30",
},
{
id: "4",
image: "/images/user4.png",
name: "Laurent Perrier",
userName: "@laurentperrier",
hours: "90h : 50m",
task: "200",
progress: "75",
},
{
id: "5",
image: "/images/user5.png",
name: "Laurent Perrier",
userName: "@laurentperrier",
hours: "90h : 50m",
task: "200",
progress: "75",
},
];
const TeamMembers = () => {
return (
<>
<Card
sx={{
boxShadow: "none",
borderRadius: "10px",
p: "25px",
mb: "15px",
}}
>
<Box
sx={{
borderBottom: "1px solid #EEF0F7",
paddingBottom: "10px",
marginBottom: "15px",
}}
className="for-dark-bottom-border"
>
<Typography
as="h3"
sx={{
fontSize: 18,
fontWeight: 500,
}}
>
Team Members
</Typography>
</Box>
<TableContainer
component={Paper}
sx={{
boxShadow: "none",
maxHeight: "440px",
overflowY: "auto",
}}
>
<Table
sx={{ minWidth: 450 }}
aria-label="simple table"
className="dark-table"
>
<TableHead sx={{ background: "#F7FAFF" }}>
<TableRow>
<TableCell
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
>
Member
</TableCell>
<TableCell
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
>
Hours
</TableCell>
<TableCell
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
align="center"
>
Task
</TableCell>
<TableCell
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
>
Status
</TableCell>
</TableRow>
</TableHead>
<TableBody>
{TeamMembersData.map((team) => (
<TableRow
sx={{ "&:last-child td, &:last-child th": { border: 0 } }}
key={team.id}
>
<TableCell sx={{ borderBottom: "1px solid #F7FAFF" }}>
<Box
sx={{
display: "flex",
alignItems: "center",
}}
>
<img
src={team.image}
alt="Image"
width="40px"
height="40px"
className="borRadius100"
/>
<Box className="ml-1">
<Typography as="h5" fontWeight="500" fontSize="13px">
{team.name}
</Typography>
<Typography fontSize="13px">{team.userName}</Typography>
</Box>
</Box>
</TableCell>
<TableCell sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13px" }}>
{team.hours}
</TableCell>
<TableCell
align="center"
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13px" }}
>
{team.task}
</TableCell>
<TableCell sx={{ borderBottom: "1px solid #F7FAFF" }}>
<Box>
<Typography fontSize="12px">{team.progress}%</Typography>
<BorderLinearProgress
variant="determinate"
value={team.progress}
/>
</Box>
</TableCell>
</TableRow>
))}
</TableBody>
</Table>
</TableContainer>
</Card>
</>
);
};
export default TeamMembers;
@@ -0,0 +1,103 @@
import React, { Component } from "react";
import { Box, Typography } from "@mui/material";
import dynamic from "next/dynamic";
const Chart = dynamic(() => import("react-apexcharts"), {
ssr: false,
});
import ArrowDownwardIcon from "@mui/icons-material/ArrowDownward";
import ArrowUpwardIcon from "@mui/icons-material/ArrowUpward";
class TotalUsersChart extends Component {
constructor(props) {
super(props);
this.state = {
series: [44, 55, 13],
options: {
labels: ["Target", "Last week", "Last Month"],
colors: ["#757FEF", "#90C6E0", "#E040FB"],
legend: {
show: false,
},
tooltip: {
y: {
formatter: function (val) {
return "" + val + "k";
},
},
},
responsive: [{
breakpoint: 480,
options: {
chart: {
height: 280
}
}
}]
},
};
}
render() {
return (
<>
<Chart
options={this.state.options}
series={this.state.series}
type="pie"
height={350}
/>
<Box
sx={{
display: "flex",
alignItems: "center",
justifyContent: "space-between",
textAlign: "center",
mt: "30px",
}}
>
<Box>
<Typography color="#A9A9C8" mb={1} fontSize="14px">
Target
</Typography>
<Typography fontWeight="500" fontSize="18px" as="h4">
<ArrowDownwardIcon
color="danger"
style={{ position: "relative", top: "3px" }}
/>{" "}
18k
</Typography>
</Box>
<Box>
<Typography color="#A9A9C8" mb={1} fontSize="14px">
Last Week
</Typography>
<Typography fontWeight="500" fontSize="18px" as="h4">
<ArrowUpwardIcon
color="success"
style={{ position: "relative", top: "3px" }}
/>{" "}
5.21k
</Typography>
</Box>
<Box>
<Typography color="#A9A9C8" mb={1} fontSize="14px">
Last Month
</Typography>
<Typography fontWeight="500" fontSize="18px" as="h4">
<ArrowDownwardIcon
color="danger"
style={{ position: "relative", top: "3px" }}
/>{" "}
32k
</Typography>
</Box>
</Box>
</>
);
}
}
export default TotalUsersChart;
@@ -0,0 +1,110 @@
import React from "react";
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";
import TotalUsersChart from "./TotalUsersChart";
const TotalUsers = () => {
const [anchorEl, setAnchorEl] = React.useState(null);
const open = Boolean(anchorEl);
const handleClick = (event) => {
setAnchorEl(event.currentTarget);
};
const handleClose = () => {
setAnchorEl(null);
};
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,
}}
>
Total Users
</Typography>
<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(0,0,0,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: '14px' }}>Last 15 Days</MenuItem>
<MenuItem sx={{ fontSize: '14px' }}>Last Month</MenuItem>
<MenuItem sx={{ fontSize: '14px' }}>Last Year</MenuItem>
</Menu>
</Box>
{/* TotalUsersChart */}
<TotalUsersChart />
</Card>
</>
);
};
export default TotalUsers;