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,40 @@
.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;
}
}
@@ -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;
+87
View File
@@ -0,0 +1,87 @@
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: "Completed Projects",
title: "24k",
image: "/images/users-icon.png",
},
{
id: "2",
subTitle: "Pending Projects",
title: "17",
image: "/images/graph-icon.png",
},
{
id: "3",
subTitle: "Total Revenue",
title: "16.2M",
image: "/images/work-icon.png",
}
];
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={4} lg={4} key={feature.id}>
<Card
sx={{
boxShadow: "none",
borderRadius: "10px",
p: "30px 20px 20px",
mb: "15px",
}}
>
<Box
sx={{
display: "flex",
alignItems: "center",
}}
>
<Box
sx={{
width: "58px",
height: "58px",
lineHeight: "85px",
background: "rgba(85, 112, 241, 0.12)",
borderRadius: "8px",
textAlign: "center",
}}
className='mr-15px'
>
<img src={feature.image} alt="Icon" />
</Box>
<Box>
<Typography variant="p" sx={{ fontSize: '13px' }}>
{feature.subTitle}
</Typography>
<Typography
variant="h1"
sx={{ fontSize: 28, fontWeight: 700, mt: "5px" }}
>
{feature.title}
</Typography>
</Box>
</Box>
</Card>
</Grid>
))}
</Grid>
</>
);
};
export default Features;
@@ -0,0 +1,76 @@
import React, { Component } from "react";
import dynamic from "next/dynamic";
const Chart = dynamic(() => import("react-apexcharts"), {
ssr: false,
});
import styles from "@/components/Dashboard/Analytics/Profile/ImpressionShare.module.css"
class ImpressionShare extends Component {
constructor(props) {
super(props);
this.state = {
series: [45],
options: {
chart: {
type: "radialBar",
offsetY: -20,
sparkline: {
enabled: true,
},
},
plotOptions: {
radialBar: {
startAngle: -110,
endAngle: 110,
track: {
background: "#e7e7e7",
strokeWidth: "90%",
margin: 5,
},
dataLabels: {
name: {
show: false,
},
value: {
offsetY: -2,
fontSize: "15px",
fontWeight: "500",
color: '#5B5B98'
},
},
},
},
grid: {
padding: {
top: -10,
},
},
fill: {
colors: ["#00B69B"],
},
labels: ["Average Results"],
},
};
}
render() {
return (
<>
<div className={styles.chartBox}>
<Chart
options={this.state.options}
series={this.state.series}
type="radialBar"
height={100}
// width={150}
/>
<h4>Excellent</h4>
<h3>Impression Share</h3>
</div>
</>
);
}
}
export default ImpressionShare;
@@ -0,0 +1,24 @@
.chartBox {
text-align: center;
top: 12px;
position: relative;
}
.chartBox h4 {
margin: 0;
color: #00B69B;
font-weight: 500;
font-size: 11px;
line-height: 14px;
position: absolute;
bottom: 30px;
left: 0;
right: 0;
}
.chartBox h3 {
margin: 0;
color: #5B5B98;
font-weight: 500;
font-size: 12px;
position: relative;
bottom: 7px;
}
+415
View File
@@ -0,0 +1,415 @@
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";
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(name, startDate, endDate, status, badgeClass, budget) {
return {
name,
startDate,
endDate,
status,
badgeClass,
budget
};
}
const rows = [
createData(
"Public Beta Release",
"1 Jan 2022",
"1 Apr 2022",
"Completed",
"successBadge",
"$1250"
),
createData(
"Fix Platform Errors",
"1 Mar 2022",
"1 May 2022",
"Completed",
"successBadge",
"$1550"
),
createData(
"Launch our Mobile App",
"15 Apr 2022",
"15 Jun 2022",
"On Going",
"primaryBadge",
"$2500"
),
createData(
"Add the New Pricing Page",
"15 May 2022",
"15 Jun 2022",
"Pending",
"dangerBadge",
"$100"
),
createData(
"Redesign New Online Shop",
"15 Jun 2022",
"15 Aug 2022",
"On Going",
"primaryBadge",
"$1000"
),
createData(
"Material Ui Design",
"15 Jul 2022",
"15 Sep 2022",
"On Going",
"primaryBadge",
"$2200"
),
createData(
"Add Progress Track",
"15 Mar 2022",
"15 May 2022",
"Completed",
"successBadge",
"$1400"
),
createData(
"Web Design",
"15 Aug 2022",
"15 Dec 2022",
"On Going",
"primaryBadge",
"$4000"
),
createData(
"Web Development",
"15 Nov 2022",
"15 Jan 2023",
"On Going",
"primaryBadge",
"$400"
),
createData(
"React App Development",
"15 Jan 2022",
"15 Mar 2022",
"Completed",
"successBadge",
"$1200"
),
createData(
"eCommerce Development",
"15 Mar 2022",
"15 May 2022",
"On Going",
"primaryBadge",
"$250"
),
createData(
"App Development",
"15 May 2022",
"15 Jul 2022",
"On Going",
"primaryBadge",
"$3400"
),
].sort((a, b) => (a.name < b.name ? -1 : 1));
const MyTasks = () => {
const [page, setPage] = React.useState(0);
const [rowsPerPage, setRowsPerPage] = React.useState(8);
// 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: 600 }}
aria-label="custom pagination 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",
}}
>
Start Date
</TableCell>
<TableCell
sx={{
borderBottom: "1px solid #F7FAFF",
fontSize: "13.5px",
}}
>
End Date
</TableCell>
<TableCell
align="center"
sx={{
borderBottom: "1px solid #F7FAFF",
fontSize: "13.5px",
}}
>
Status
</TableCell>
<TableCell
align="center"
sx={{
borderBottom: "1px solid #F7FAFF",
fontSize: "13.5px",
}}
>
Budget
</TableCell>
</TableRow>
</TableHead>
<TableBody>
{(rowsPerPage > 0
? rows.slice(
page * rowsPerPage,
page * rowsPerPage + rowsPerPage
)
: rows
).map((row) => (
<TableRow key={row.name}>
<TableCell
sx={{
fontWeight: "500",
fontSize: "13px",
borderBottom: "1px solid #F7FAFF",
color: "#260944",
pt: '16px',
pb: '16px',
}}
>
{row.name}
</TableCell>
<TableCell
sx={{
borderBottom: "1px solid #F7FAFF",
fontSize: "13px",
pt: '16px',
pb: '16px',
}}
>
{row.startDate}
</TableCell>
<TableCell
sx={{
borderBottom: "1px solid #F7FAFF",
fontSize: "13px",
pt: '16px',
pb: '16px',
}}
>
{row.endDate}
</TableCell>
<TableCell
align="center"
sx={{
fontWeight: 500,
borderBottom: "1px solid #F7FAFF",
fontSize: "11px",
pt: '16px',
pb: '16px',
}}
>
<span className={row.badgeClass}>{row.status}</span>
</TableCell>
<TableCell
sx={{
borderBottom: "1px solid #F7FAFF",
fontSize: "13px",
pt: '16px',
pb: '16px',
}}
align="center"
>
{row.budget}
</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;
+160
View File
@@ -0,0 +1,160 @@
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 dynamic from "next/dynamic";
const Chart = dynamic(() => import("react-apexcharts"), {
ssr: false,
});
const Overview = () => {
// Select Form
const [select, setSelect] = React.useState("");
const handleChange = (event) => {
setSelect(event.target.value);
};
// Chart
const series = [
{
name: "Income",
data: [20, 35, 20, 40, 40, 50, 25, 25, 35, 30, 25, 40],
},
];
const options = {
chart: {
toolbar: {
show: false,
},
events: {
click: function (chart, w, e) {
// console.log(chart, w, e)
},
},
},
colors: ["#90C6E0"],
plotOptions: {
bar: {
columnWidth: "30%",
distributed: true,
},
},
dataLabels: {
enabled: false,
},
legend: {
show: false,
},
xaxis: {
categories: [
["Jan"],
["Feb"],
["Mar"],
["Api"],
["May"],
["Jun"],
["Jul"],
["Aug"],
["Sep"],
["Oct"],
["Nov"],
["Dec"],
],
labels: {
style: {
colors: "#A9A9C8",
fontSize: "12px",
},
},
},
yaxis: {
labels: {
style: {
colors: "#A9A9C8",
fontSize: "12px",
},
},
axisBorder: {
show: false,
colors: "#f6f6f7",
},
},
fill: {
opacity: 1,
},
tooltip: {
y: {
formatter: function (val) {
return "$" + val + "k";
},
},
},
grid: {
show: true,
borderColor: "#EDEFF5",
strokeDashArray: 5,
},
};
return (
<>
<Card
sx={{
boxShadow: "none",
borderRadius: "10px",
p: "25px 25px 15px",
mb: "15px",
}}
>
<Box
sx={{
display: "flex",
alignItems: "center",
justifyContent: "space-between",
borderBottom: "1px solid #EEF0F7",
paddingBottom: "10px",
marginBottom: "10px",
}}
className="for-dark-bottom-border"
>
<Typography
as="h3"
sx={{
fontSize: 18,
fontWeight: 500,
}}
>
Overview
</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' }}>This Week</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>
<Chart options={options} series={series} type="bar" height={250} />
</Card>
</>
);
};
export default Overview;
@@ -0,0 +1,98 @@
import React from "react";
import { Box, Typography } from "@mui/material";
import Card from "@mui/material/Card";
const personalInfo = [
{
title: 'Full Name :',
text: 'Andrew Burns',
},
{
title: 'Mobile :',
text: '(123) 123 1234',
},
{
title: 'Email :',
text: 'andrewburns@gmail.com',
},
{
title: 'Location : ',
text: 'USA',
},
{
title: 'Experience : ',
text: 'Back end Developer',
},
]
const PersonalInformation = () => {
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,
}}
>
Personal Information
</Typography>
</Box>
<Box>
<Typography
as='h4'
fontWeight='500'
fontSize='15px'
mb={1}
>
About Me:
</Typography>
<Typography mb={1}>Hi I'm Andrew Burns,has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type.</Typography>
{personalInfo.map((info) => (
<Box
sx={{
display: 'flex',
borderBottom: '1px solid #F7FAFF',
p: '10px 0',
}}
key={info.title}
className="for-dark-bottom-border"
>
<Typography
as='h4'
fontWeight='500'
fontSize='14px'
width='100px'
>
{info.title}
</Typography>
<Typography>{info.text}</Typography>
</Box>
))}
</Box>
</Card>
</>
);
};
export default PersonalInformation;
@@ -0,0 +1,57 @@
.profileBox {
background-color: #fff;
border-radius: 10px;
position: relative;
margin-bottom: 15px;
}
.header {
background: #EAEDFB;
border-radius: 10px 10px 0px 0px;
padding: 30px 15px 50px;
position: relative;
}
.headerContent {
max-width: 300px;
position: relative;
z-index: 1;
}
.header h1 {
margin: 0 0 10px;
font-size: 18px;
color: #757FEF;
font-weight: 500;
}
.header p {
margin: 0;
font-size: 14px;
color: #757FEF;
}
.header img {
position: absolute;
bottom: 0;
right: 0;
}
.profileInfoContent {
padding: 0 15px 30px;
}
.profileInfo {
position: relative;
}
.profileInfo img {
position: absolute;
top: -30px;
width: 60px;
height: 60px;
border: 5px solid #fff;
border-radius: 100%;
box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}
.profileInfo h3 {
margin: 0 0 5px;
font-size: 14px;
padding-top: 45px;
}
.profileInfo p {
margin: 0;
font-size: 13px;
}
@@ -0,0 +1,46 @@
import React from "react";
import Grid from "@mui/material/Grid";
import styles from "@/components/Dashboard/Analytics/Profile/Profile.module.css";
import ImpressionShare from "./ImpressionShare";
const ProfileContent = () => {
return (
<>
<div className={styles.profileBox}>
<div className={styles.header}>
<div className={styles.headerContent}>
<h1>Welcome to admash Dashboard!</h1>
<p>
You have done 68% 😎 more sales today. Check your new badge in
your profile.
</p>
</div>
<img src="/images/working-on-table.png" alt="Working on table" />
</div>
<div className={styles.profileInfoContent}>
<Grid
container
alignItems="flex-end"
rowSpacing={1}
columnSpacing={{ xs: 1, sm: 2, md: 2 }}
>
<Grid item xs={6} md={6} lg={8}>
<div className={styles.profileInfo}>
<img src="/images/profile.png" alt="Profile" />
<h3>Andrew Burns</h3>
<p>Programmer</p>
</div>
</Grid>
<Grid item xs={6} md={6} lg={4}>
<ImpressionShare />
</Grid>
</Grid>
</div>
</div>
</>
);
};
export default ProfileContent;