first commit
This commit is contained in:
@@ -0,0 +1,90 @@
|
||||
.timelineList .tList {
|
||||
position: relative;
|
||||
padding-left: 20px;
|
||||
margin-bottom: 9px;
|
||||
padding-bottom: 9px;
|
||||
border-bottom: 1px solid #F7FAFF;
|
||||
}
|
||||
.timelineList .tList:last-child {
|
||||
border: none;
|
||||
padding-bottom: 0;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.timelineList .tList::before {
|
||||
content: '';
|
||||
background: linear-gradient(149.1deg, #99B8F3 14.61%, #177FCB 130.18%);
|
||||
box-shadow: 0px 2.98686px 13.4409px rgba(126, 172, 235, 0.25);
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
border-radius: 100%;
|
||||
position: absolute;
|
||||
top: 4px;
|
||||
left: 0;
|
||||
}
|
||||
.timelineList .tList::after {
|
||||
content: '';
|
||||
background: #F7FAFF;
|
||||
width: 3px;
|
||||
height: 75px;
|
||||
border-radius: 5px;
|
||||
position: absolute;
|
||||
top: 18px;
|
||||
left: 3px;
|
||||
}
|
||||
.timelineList .tList h4 {
|
||||
font-weight: 500;
|
||||
font-size: 14px;
|
||||
margin: 0 0 8px;
|
||||
}
|
||||
.timelineList .tList .content {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.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;
|
||||
}
|
||||
|
||||
/* For RTL Style */
|
||||
[dir="rtl"] .timelineList .tList {
|
||||
padding-left: 0;
|
||||
padding-right: 20px;
|
||||
}
|
||||
[dir="rtl"] .timelineList .tList::before {
|
||||
left: auto;
|
||||
right: 0;
|
||||
}
|
||||
[dir="rtl"] .timelineList .tList::after {
|
||||
left: auto;
|
||||
right: 3px;
|
||||
}
|
||||
[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(--darkBodyTextColor);
|
||||
}
|
||||
[class="dark"] .timelineList .tList::after {
|
||||
background: var(--borderColor);
|
||||
}
|
||||
@@ -0,0 +1,151 @@
|
||||
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/Analytics/ActivityTimeline/ActivityTimeline.module.css";
|
||||
|
||||
const ActivityTimelineData = [
|
||||
{
|
||||
id: "1",
|
||||
title: "8 Invoices have been paid",
|
||||
subTitle: "Invoices have been paid to the company.",
|
||||
icon: "/images/pdf-icon.png",
|
||||
date: "11:47 PM Wednesday",
|
||||
},
|
||||
{
|
||||
id: "2",
|
||||
title: "8 Invoices have been paid",
|
||||
subTitle: "Create a new project for client Johnson John",
|
||||
icon: "/images/man.png",
|
||||
date: "April, 18",
|
||||
},
|
||||
{
|
||||
id: "3",
|
||||
title: "Added new style collection",
|
||||
subTitle: "Product uploaded By Nesta Technologies",
|
||||
icon: "/images/small-product-img.png",
|
||||
date: "02:14 PM Today",
|
||||
},
|
||||
{
|
||||
id: "4",
|
||||
title: "Brust opened new showcase",
|
||||
subTitle: "Product uploaded By Nesta Technologies",
|
||||
icon: "/images/small-product-img2.png",
|
||||
date: "5 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 20px",
|
||||
mb: "15px",
|
||||
}}
|
||||
>
|
||||
<Box
|
||||
sx={{
|
||||
display: "flex",
|
||||
justifyContent: "space-between",
|
||||
alignItems: "center",
|
||||
borderBottom: "1px solid #EEF0F7",
|
||||
paddingBottom: "10px",
|
||||
mb: "15px",
|
||||
}}
|
||||
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, 4).map((timeline) => (
|
||||
<div className={styles.tList} key={timeline.id}>
|
||||
<h4>{timeline.title}</h4>
|
||||
<div className={styles.content}>
|
||||
<img src={timeline.icon} alt="Icon" />
|
||||
<h5>{timeline.subTitle}</h5>
|
||||
</div>
|
||||
<p className={styles.date}>{timeline.date}</p>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</Card>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default ActivityTimeline;
|
||||
@@ -0,0 +1,112 @@
|
||||
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 Chart from "chart.js/auto";
|
||||
import { Line } from "react-chartjs-2";
|
||||
|
||||
const labels = ["Sat", "Sun", "Mon", "Tue", "Wed", "Thu", "Fri"];
|
||||
|
||||
const data = {
|
||||
labels: labels,
|
||||
datasets: [
|
||||
{
|
||||
label: "New Visitors",
|
||||
backgroundColor: "#6F52ED",
|
||||
borderColor: "#6F52ED",
|
||||
data: [30, 40, 30, 80, 65, 70, 30],
|
||||
},
|
||||
{
|
||||
label: "Unique Visitors",
|
||||
backgroundColor: "#2DB6F5",
|
||||
borderColor: "#2DB6F5",
|
||||
data: [55, 60, 55, 45, 35, 55, 60],
|
||||
},
|
||||
{
|
||||
label: "Previous Visitors",
|
||||
backgroundColor: "#F765A3",
|
||||
borderColor: "#F765A3",
|
||||
data: [45, 30, 40, 30, 20, 30, 40],
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
const options = {
|
||||
plugins: {
|
||||
legend: {
|
||||
labels: {
|
||||
color: '#5B5B98'
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
const AudienceOverview = () => {
|
||||
// Select Form
|
||||
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,
|
||||
}}
|
||||
>
|
||||
Audience 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' }}>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>
|
||||
|
||||
<Line data={data} options={options} height={100}/>
|
||||
</Card>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default AudienceOverview;
|
||||
@@ -0,0 +1,548 @@
|
||||
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 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";
|
||||
|
||||
function BrowserUsedAndTrafficReport(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>
|
||||
);
|
||||
}
|
||||
|
||||
BrowserUsedAndTrafficReport.propTypes = {
|
||||
count: PropTypes.number.isRequired,
|
||||
onPageChange: PropTypes.func.isRequired,
|
||||
page: PropTypes.number.isRequired,
|
||||
rowsPerPage: PropTypes.number.isRequired,
|
||||
};
|
||||
|
||||
function createData(
|
||||
channel,
|
||||
sessions,
|
||||
sessionsProgress,
|
||||
prevPeriod,
|
||||
prevPeriodProgress,
|
||||
transactions,
|
||||
transactionsProgress,
|
||||
change,
|
||||
iconName,
|
||||
badgeClass
|
||||
) {
|
||||
return {
|
||||
channel,
|
||||
sessions,
|
||||
sessionsProgress,
|
||||
prevPeriod,
|
||||
prevPeriodProgress,
|
||||
transactions,
|
||||
transactionsProgress,
|
||||
change,
|
||||
iconName,
|
||||
badgeClass,
|
||||
};
|
||||
}
|
||||
|
||||
const rows = [
|
||||
createData(
|
||||
"Organic search",
|
||||
"10853",
|
||||
"(52%)",
|
||||
"566",
|
||||
"(52%)",
|
||||
"566",
|
||||
"(52%)",
|
||||
"52.80%",
|
||||
"ri-arrow-up-s-fill",
|
||||
"successBadge"
|
||||
),
|
||||
createData(
|
||||
"Direct",
|
||||
"10844",
|
||||
"(50%)",
|
||||
"666",
|
||||
"(50%)",
|
||||
"766",
|
||||
"(50%)",
|
||||
"55.99%",
|
||||
"ri-arrow-up-s-fill",
|
||||
"successBadge"
|
||||
),
|
||||
createData(
|
||||
"Referal",
|
||||
"20844",
|
||||
"(60%)",
|
||||
"754",
|
||||
"(60%)",
|
||||
"899",
|
||||
"(60%)",
|
||||
"60.99%",
|
||||
"ri-arrow-down-s-fill",
|
||||
"dangerBadge"
|
||||
),
|
||||
createData(
|
||||
"Email",
|
||||
"15844",
|
||||
"(50%)",
|
||||
"764",
|
||||
"(50%)",
|
||||
"755",
|
||||
"(50%)",
|
||||
"50.99%",
|
||||
"ri-arrow-up-s-fill",
|
||||
"successBadge"
|
||||
),
|
||||
createData(
|
||||
"Social",
|
||||
"12844",
|
||||
"(50%)",
|
||||
"764",
|
||||
"(50%)",
|
||||
"755",
|
||||
"(50%)",
|
||||
"50.99%",
|
||||
"ri-arrow-up-s-fill",
|
||||
"successBadge"
|
||||
),
|
||||
createData(
|
||||
"Chrome",
|
||||
"5853",
|
||||
"(52%)",
|
||||
"466",
|
||||
"(52%)",
|
||||
"566",
|
||||
"(52%)",
|
||||
"52.80%",
|
||||
"ri-arrow-up-s-fill",
|
||||
"successBadge"
|
||||
),
|
||||
createData(
|
||||
"Safari",
|
||||
"2844",
|
||||
"(50%)",
|
||||
"766",
|
||||
"(50%)",
|
||||
"666",
|
||||
"(50%)",
|
||||
"55.00%",
|
||||
"ri-arrow-up-s-fill",
|
||||
"successBadge"
|
||||
),
|
||||
createData(
|
||||
"Edge",
|
||||
"1844",
|
||||
"(60%)",
|
||||
"454",
|
||||
"(60%)",
|
||||
"399",
|
||||
"(60%)",
|
||||
"60.00%",
|
||||
"ri-arrow-down-s-fill",
|
||||
"dangerBadge"
|
||||
),
|
||||
createData(
|
||||
"Firefox",
|
||||
"15844",
|
||||
"(55%)",
|
||||
"564",
|
||||
"(55%)",
|
||||
"455",
|
||||
"(55%)",
|
||||
"55.00%",
|
||||
"ri-arrow-up-s-fill",
|
||||
"successBadge"
|
||||
),
|
||||
createData(
|
||||
"Opera",
|
||||
"11844",
|
||||
"(50%)",
|
||||
"864",
|
||||
"(50%)",
|
||||
"655",
|
||||
"(50%)",
|
||||
"50.00%",
|
||||
"ri-arrow-up-s-fill",
|
||||
"successBadge"
|
||||
),
|
||||
].sort((a, b) => (a.channel < b.channel ? -1 : 1));
|
||||
|
||||
const BrowserUsedAndTrafficReports = () => {
|
||||
const [anchorEl, setAnchorEl] = React.useState(null);
|
||||
const open = Boolean(anchorEl);
|
||||
const handleClick = (event) => {
|
||||
setAnchorEl(event.currentTarget);
|
||||
};
|
||||
const handleClose = () => {
|
||||
setAnchorEl(null);
|
||||
};
|
||||
|
||||
// Table
|
||||
const [page, setPage] = React.useState(0);
|
||||
const [rowsPerPage, setRowsPerPage] = React.useState(4);
|
||||
|
||||
// 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={{
|
||||
display: "flex",
|
||||
justifyContent: "space-between",
|
||||
alignItems: "center",
|
||||
paddingBottom: "10px",
|
||||
}}
|
||||
>
|
||||
<Typography
|
||||
as="h3"
|
||||
sx={{
|
||||
fontSize: 18,
|
||||
fontWeight: 500,
|
||||
}}
|
||||
>
|
||||
Browser Used & Traffic Reports
|
||||
</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>
|
||||
|
||||
<TableContainer
|
||||
component={Paper}
|
||||
sx={{
|
||||
boxShadow: "none",
|
||||
}}
|
||||
>
|
||||
<Table
|
||||
sx={{ minWidth: 550 }}
|
||||
aria-label="custom pagination table"
|
||||
className="dark-table"
|
||||
>
|
||||
<TableHead sx={{ background: "#F7FAFF" }}>
|
||||
<TableRow>
|
||||
<TableCell
|
||||
style={{
|
||||
borderBottom: "1px solid #F7FAFF",
|
||||
fontSize: "13.5px",
|
||||
}}
|
||||
>
|
||||
Channel
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
style={{
|
||||
borderBottom: "1px solid #F7FAFF",
|
||||
fontSize: "13.5px",
|
||||
}}
|
||||
>
|
||||
Sessions
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
style={{
|
||||
borderBottom: "1px solid #F7FAFF",
|
||||
fontSize: "13.5px",
|
||||
}}
|
||||
>
|
||||
Prev.Period
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
style={{
|
||||
borderBottom: "1px solid #F7FAFF",
|
||||
fontSize: "13.5px",
|
||||
}}
|
||||
>
|
||||
Transactions
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
style={{
|
||||
borderBottom: "1px solid #F7FAFF",
|
||||
fontSize: "13.5px",
|
||||
}}
|
||||
>
|
||||
% Change
|
||||
</TableCell>
|
||||
</TableRow>
|
||||
</TableHead>
|
||||
|
||||
<TableBody>
|
||||
{(rowsPerPage > 0
|
||||
? rows.slice(
|
||||
page * rowsPerPage,
|
||||
page * rowsPerPage + rowsPerPage
|
||||
)
|
||||
: rows
|
||||
).map((row) => (
|
||||
<TableRow key={row.channel}>
|
||||
<TableCell
|
||||
style={{
|
||||
fontWeight: "500",
|
||||
fontSize: "13px",
|
||||
borderBottom: "1px solid #F7FAFF",
|
||||
color: "#757FEF",
|
||||
}}
|
||||
>
|
||||
{row.channel}
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
style={{
|
||||
borderBottom: "1px solid #F7FAFF",
|
||||
color: "#5B5B98",
|
||||
fontWeight: "500",
|
||||
fontSize: "13px",
|
||||
}}
|
||||
>
|
||||
{row.sessions}{" "}
|
||||
<Typography
|
||||
as="span"
|
||||
sx={{ color: "#A9A9C8", fontSize: "13px" }}
|
||||
>
|
||||
{row.sessionsProgress}
|
||||
</Typography>
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
style={{
|
||||
borderBottom: "1px solid #F7FAFF",
|
||||
color: "#5B5B98",
|
||||
fontWeight: "500",
|
||||
fontSize: "13px",
|
||||
}}
|
||||
>
|
||||
{row.prevPeriod}{" "}
|
||||
<Typography
|
||||
as="span"
|
||||
sx={{ color: "#A9A9C8", fontSize: "13px" }}
|
||||
>
|
||||
{row.prevPeriodProgress}
|
||||
</Typography>
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
style={{
|
||||
borderBottom: "1px solid #F7FAFF",
|
||||
color: "#5B5B98",
|
||||
fontWeight: "500",
|
||||
fontSize: "13px",
|
||||
}}
|
||||
>
|
||||
{row.transactions}{" "}
|
||||
<Typography
|
||||
as="span"
|
||||
sx={{ color: "#A9A9C8", fontSize: "13px" }}
|
||||
>
|
||||
{row.transactionsProgress}
|
||||
</Typography>
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
style={{
|
||||
fontWeight: 500,
|
||||
borderBottom: "1px solid #F7FAFF",
|
||||
fontSize: "12px",
|
||||
}}
|
||||
>
|
||||
<span className={row.badgeClass}>
|
||||
{row.change}{" "}
|
||||
<i
|
||||
className={row.iconName}
|
||||
style={{
|
||||
fontSize: "15px",
|
||||
position: "relative",
|
||||
top: "4px",
|
||||
lineHeight: "1",
|
||||
fontWight: "bold",
|
||||
}}
|
||||
></i>
|
||||
</span>
|
||||
</TableCell>
|
||||
</TableRow>
|
||||
))}
|
||||
|
||||
{emptyRows > 0 && (
|
||||
<TableRow style={{ height: 53 * emptyRows }}>
|
||||
<TableCell
|
||||
colSpan={5}
|
||||
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={BrowserUsedAndTrafficReport}
|
||||
style={{ borderBottom: "none" }}
|
||||
/>
|
||||
</TableRow>
|
||||
</TableFooter>
|
||||
</Table>
|
||||
</TableContainer>
|
||||
</Card>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default BrowserUsedAndTrafficReports;
|
||||
@@ -0,0 +1,114 @@
|
||||
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";
|
||||
import TrendingUpIcon from "@mui/icons-material/TrendingUp";
|
||||
import TrendingDownIcon from "@mui/icons-material/TrendingDown";
|
||||
|
||||
const FeaturesData = [
|
||||
{
|
||||
id: "1",
|
||||
subTitle: "Enrolled Courses",
|
||||
title: "24k",
|
||||
image: "/images/users-icon.png",
|
||||
icon: <TrendingUpIcon />,
|
||||
growthText: "9.5% new session",
|
||||
color: "successColor",
|
||||
},
|
||||
{
|
||||
id: "2",
|
||||
subTitle: "Active Courses",
|
||||
title: "17",
|
||||
image: "/images/graph-icon.png",
|
||||
icon: <TrendingDownIcon />,
|
||||
growthText: "7.5% vs. previous month",
|
||||
color: "dangerColor",
|
||||
},
|
||||
{
|
||||
id: "3",
|
||||
subTitle: "Completed Courses",
|
||||
title: "64",
|
||||
image: "/images/work-icon.png",
|
||||
icon: <TrendingUpIcon />,
|
||||
growthText: "3.5% bounce rate",
|
||||
color: "successColor",
|
||||
},
|
||||
];
|
||||
|
||||
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", mb: "5px" }}>
|
||||
{feature.subTitle}
|
||||
</Typography>
|
||||
<Typography
|
||||
variant="h1"
|
||||
sx={{ fontSize: 28, fontWeight: 700 }}
|
||||
>
|
||||
{feature.title}
|
||||
</Typography>
|
||||
</Box>
|
||||
</Box>
|
||||
|
||||
<Box mt={2}>
|
||||
<Typography
|
||||
sx={{
|
||||
fontSize: "13px",
|
||||
fontWeight: "500",
|
||||
display: "flex",
|
||||
alignItems: "center",
|
||||
}}
|
||||
>
|
||||
<span className={`mr-5px ${feature.color}`}>
|
||||
{feature.icon}
|
||||
</span>
|
||||
{feature.growthText}
|
||||
</Typography>
|
||||
</Box>
|
||||
</Card>
|
||||
</Grid>
|
||||
))}
|
||||
</Grid>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default Features;
|
||||
@@ -0,0 +1,65 @@
|
||||
.infoList {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
border-bottom: 1px solid #F7FAFF;
|
||||
margin-bottom: 13px;
|
||||
padding-bottom: 13px;
|
||||
position: relative;
|
||||
padding-left: 15px;
|
||||
}
|
||||
.infoList::before {
|
||||
content: '';
|
||||
background: #00B69B;
|
||||
box-shadow: 0px 2.98686px 13.4409px rgba(126, 172, 235, 0.25);
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
border-radius: 100%;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 5px;
|
||||
}
|
||||
.infoList:last-child {
|
||||
border-bottom: none;
|
||||
margin-bottom: 0;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
.infoList p {
|
||||
font-size: 13px;
|
||||
margin: 0;
|
||||
}
|
||||
.infoList .rightContent {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.infoList h5 {
|
||||
margin: 0 15px 0 0;
|
||||
font-size: 12px;
|
||||
color: #5B5B98;
|
||||
}
|
||||
.infoList .rightContent i {
|
||||
position: relative;
|
||||
top: 2px;
|
||||
}
|
||||
|
||||
/* For RTL Style */
|
||||
[dir="rtl"] .infoList {
|
||||
padding-left: 0;
|
||||
padding-right: 15px;
|
||||
}
|
||||
[dir="rtl"] .infoList::before {
|
||||
left: auto;
|
||||
right: 0;
|
||||
}
|
||||
[dir="rtl"] .infoList h5 {
|
||||
margin: 0 0 0 15px;
|
||||
}
|
||||
|
||||
/* For dark mode */
|
||||
[class="dark"] .infoList {
|
||||
border-bottom: 1px solid var(--borderColor);
|
||||
}
|
||||
[class="dark"] .infoList:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
@@ -0,0 +1,105 @@
|
||||
import React, { Component } from "react";
|
||||
import { Box, Typography } from "@mui/material";
|
||||
import Card from "@mui/material/Card";
|
||||
import dynamic from "next/dynamic";
|
||||
const Chart = dynamic(() => import("react-apexcharts"), {
|
||||
ssr: false,
|
||||
});
|
||||
import styles from "@/components/Dashboard/Analytics/Gender/Gender.module.css";
|
||||
|
||||
class Gender extends Component {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.state = {
|
||||
series: [50],
|
||||
options: {
|
||||
plotOptions: {
|
||||
radialBar: {
|
||||
hollow: {
|
||||
size: "50%",
|
||||
},
|
||||
track: {
|
||||
background: "rgba(0, 182, 155, 0.5)",
|
||||
},
|
||||
dataLabels: {
|
||||
name: {
|
||||
show: false,
|
||||
},
|
||||
value: {
|
||||
offsetY: 4,
|
||||
color: "#00B69B",
|
||||
fontSize: "16px",
|
||||
fontWeight: "500",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
fill: {
|
||||
colors: ["#00B69B"],
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
render() {
|
||||
return (
|
||||
<>
|
||||
<Card
|
||||
sx={{
|
||||
boxShadow: "none",
|
||||
borderRadius: "10px",
|
||||
p: "25px 20px",
|
||||
mb: "15px",
|
||||
}}
|
||||
>
|
||||
<Box
|
||||
sx={{
|
||||
borderBottom: "1px solid #EEF0F7",
|
||||
paddingBottom: "10px",
|
||||
}}
|
||||
className="for-dark-bottom-border"
|
||||
>
|
||||
<Typography
|
||||
as="h3"
|
||||
sx={{
|
||||
fontSize: 18,
|
||||
fontWeight: 500,
|
||||
}}
|
||||
>
|
||||
Gender
|
||||
</Typography>
|
||||
</Box>
|
||||
|
||||
<Chart
|
||||
options={this.state.options}
|
||||
series={this.state.series}
|
||||
type="radialBar"
|
||||
/>
|
||||
|
||||
<>
|
||||
<div className={styles.infoList}>
|
||||
<p>Male</p>
|
||||
<h5>45,347</h5>
|
||||
<div className={styles.rightContent}>
|
||||
<p>
|
||||
<i className="ri-bar-chart-fill"></i> 70%
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className={styles.infoList}>
|
||||
<p>Female</p>
|
||||
<h5>20,738</h5>
|
||||
<div className={styles.rightContent}>
|
||||
<p>
|
||||
<i className="ri-bar-chart-fill"></i> 30%
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</>
|
||||
</Card>
|
||||
</>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export default Gender;
|
||||
@@ -0,0 +1,66 @@
|
||||
.infoList {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
border-bottom: 1px solid #F7FAFF;
|
||||
margin-bottom: 13px;
|
||||
padding-bottom: 13px;
|
||||
position: relative;
|
||||
padding-left: 15px;
|
||||
}
|
||||
.infoList::before {
|
||||
content: '';
|
||||
background: #757FEF;
|
||||
box-shadow: 0px 2.98686px 13.4409px rgba(126, 172, 235, 0.25);
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
border-radius: 100%;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 5px;
|
||||
}
|
||||
.infoList:last-child {
|
||||
border-bottom: none;
|
||||
margin-bottom: 0;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
.infoList p {
|
||||
font-size: 13px;
|
||||
margin: 0;
|
||||
}
|
||||
.infoList .rightContent {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.infoList h5 {
|
||||
margin: 0 15px 0 0;
|
||||
font-size: 12px;
|
||||
color: #5B5B98;
|
||||
}
|
||||
.infoList .rightContent i {
|
||||
position: relative;
|
||||
top: 2px;
|
||||
}
|
||||
|
||||
|
||||
/* For RTL Style */
|
||||
[dir="rtl"] .infoList {
|
||||
padding-left: 0;
|
||||
padding-right: 15px;
|
||||
}
|
||||
[dir="rtl"] .infoList::before {
|
||||
left: auto;
|
||||
right: 0;
|
||||
}
|
||||
[dir="rtl"] .infoList h5 {
|
||||
margin: 0 0 0 15px;
|
||||
}
|
||||
|
||||
/* For dark mode */
|
||||
[class="dark"] .infoList {
|
||||
border-bottom: 1px solid var(--borderColor);
|
||||
}
|
||||
[class="dark"] .infoList:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
@@ -0,0 +1,105 @@
|
||||
import React, { Component } from "react";
|
||||
import { Box, Typography } from "@mui/material";
|
||||
import Card from "@mui/material/Card";
|
||||
import dynamic from "next/dynamic";
|
||||
const Chart = dynamic(() => import("react-apexcharts"), {
|
||||
ssr: false,
|
||||
});
|
||||
import styles from "@/components/Dashboard/Analytics/NewReturning/NewReturning.module.css";
|
||||
|
||||
class NewReturning extends Component {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.state = {
|
||||
series: [60],
|
||||
options: {
|
||||
plotOptions: {
|
||||
radialBar: {
|
||||
hollow: {
|
||||
size: "50%",
|
||||
},
|
||||
track: {
|
||||
background: "rgba(117, 127, 239, 0.5)",
|
||||
},
|
||||
dataLabels: {
|
||||
name: {
|
||||
show: false,
|
||||
},
|
||||
value: {
|
||||
offsetY: 4,
|
||||
color: "#757FEF",
|
||||
fontSize: "16px",
|
||||
fontWeight: "500",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
fill: {
|
||||
colors: ["#757FEF"],
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
render() {
|
||||
return (
|
||||
<>
|
||||
<Card
|
||||
sx={{
|
||||
boxShadow: "none",
|
||||
borderRadius: "10px",
|
||||
p: "25px 20px",
|
||||
mb: "15px",
|
||||
}}
|
||||
>
|
||||
<Box
|
||||
sx={{
|
||||
borderBottom: "1px solid #EEF0F7",
|
||||
paddingBottom: "10px",
|
||||
}}
|
||||
className="for-dark-bottom-border"
|
||||
>
|
||||
<Typography
|
||||
as="h3"
|
||||
sx={{
|
||||
fontSize: 18,
|
||||
fontWeight: 500,
|
||||
}}
|
||||
>
|
||||
New vs. Returning
|
||||
</Typography>
|
||||
</Box>
|
||||
|
||||
<Chart
|
||||
options={this.state.options}
|
||||
series={this.state.series}
|
||||
type="radialBar"
|
||||
/>
|
||||
|
||||
<>
|
||||
<div className={styles.infoList}>
|
||||
<p>New</p>
|
||||
<h5>36,868</h5>
|
||||
<div className={styles.rightContent}>
|
||||
<p>
|
||||
<i className="ri-bar-chart-fill"></i> 75%
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className={styles.infoList}>
|
||||
<p>Returning</p>
|
||||
<h5>9,217</h5>
|
||||
<div className={styles.rightContent}>
|
||||
<p>
|
||||
<i className="ri-bar-chart-fill"></i> 25%
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</>
|
||||
</Card>
|
||||
</>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export default NewReturning;
|
||||
@@ -0,0 +1,75 @@
|
||||
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}
|
||||
/>
|
||||
<h4>Excellent</h4>
|
||||
<h3>Impression Share</h3>
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export default ImpressionShare;
|
||||
@@ -0,0 +1,33 @@
|
||||
.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;
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 767px) {
|
||||
.chartBox h4 {
|
||||
bottom: 24px;
|
||||
}
|
||||
.chartBox h3 {
|
||||
font-size: 10px;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,74 @@
|
||||
.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;
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 767px) {
|
||||
.profileInfo h3 {
|
||||
font-size: 12px;
|
||||
}
|
||||
.profileInfo p {
|
||||
font-size: 11px;
|
||||
}
|
||||
}
|
||||
|
||||
/* For dark mode */
|
||||
[class="dark"] .profileBox {
|
||||
background-color: var(--cardBg);
|
||||
}
|
||||
[class="dark"] .header {
|
||||
background: #161515;
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
import React from "react";
|
||||
import Grid from "@mui/material/Grid";
|
||||
import Link from "@mui/material/Link";
|
||||
import styles from "@/components/Dashboard/Analytics/Profile/Profile.module.css";
|
||||
import ImpressionShare from "./ImpressionShare";
|
||||
|
||||
const Profile = () => {
|
||||
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={4} md={4} lg={4}>
|
||||
<div className={styles.profileInfo}>
|
||||
<img src="/images/profile.png" alt="Profile" />
|
||||
<h3>Andrew Burns</h3>
|
||||
<p>Programmer</p>
|
||||
</div>
|
||||
</Grid>
|
||||
|
||||
<Grid item xs={4} md={4} lg={4}>
|
||||
<Link
|
||||
href="#"
|
||||
underline="none"
|
||||
sx={{
|
||||
background: "#757FEF",
|
||||
borderRadius: "4px",
|
||||
color: "#fff !important",
|
||||
fontSize: "10px",
|
||||
padding: "4px 8px",
|
||||
display: "inline-block",
|
||||
position: "relative",
|
||||
top: "-5px",
|
||||
}}
|
||||
>
|
||||
View Profile{" "}
|
||||
<i
|
||||
className="ri-arrow-right-line"
|
||||
style={{ position: "relative", top: "2px" }}
|
||||
></i>
|
||||
</Link>
|
||||
</Grid>
|
||||
|
||||
<Grid item xs={4} md={4} lg={4}>
|
||||
<ImpressionShare />
|
||||
</Grid>
|
||||
</Grid>
|
||||
</div>
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default Profile;
|
||||
@@ -0,0 +1,95 @@
|
||||
import React from "react";
|
||||
import { Box } from "@mui/material";
|
||||
import Card from "@mui/material/Card";
|
||||
import { Typography } from "@mui/material";
|
||||
import dynamic from "next/dynamic";
|
||||
const Chart = dynamic(() => import("react-apexcharts"), {
|
||||
ssr: false,
|
||||
});
|
||||
|
||||
const RevenueReport = () => {
|
||||
const series = [
|
||||
{
|
||||
name: "Earning",
|
||||
data: [80, 50, 30, 40, 100, 20, 35, 75, 45, 55, 65, 85,],
|
||||
},
|
||||
{
|
||||
name: "Expenses",
|
||||
data: [20, 30, 40, 80, 20, 80, 15, 32, 70, 38, 60, 76,],
|
||||
},
|
||||
];
|
||||
const options = {
|
||||
chart: {
|
||||
toolbar: {
|
||||
show: false,
|
||||
},
|
||||
dropShadow: {
|
||||
enabled: true,
|
||||
blur: 1,
|
||||
left: 1,
|
||||
top: 1,
|
||||
},
|
||||
},
|
||||
stroke: {
|
||||
width: 2,
|
||||
},
|
||||
colors: ["#757FEF", "#FF8A65"],
|
||||
fill: {
|
||||
opacity: 0.1,
|
||||
},
|
||||
markers: {
|
||||
size: 5,
|
||||
},
|
||||
xaxis: {
|
||||
categories: [
|
||||
"January",
|
||||
"Fubruary",
|
||||
"March",
|
||||
"April",
|
||||
"May",
|
||||
"June",
|
||||
"July",
|
||||
"August",
|
||||
"September",
|
||||
"October",
|
||||
"November",
|
||||
"December",
|
||||
],
|
||||
},
|
||||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
<Card
|
||||
sx={{
|
||||
boxShadow: "none",
|
||||
borderRadius: "10px",
|
||||
p: "25px",
|
||||
mb: "15px",
|
||||
}}
|
||||
>
|
||||
<Box
|
||||
sx={{
|
||||
borderBottom: "1px solid #EEF0F7",
|
||||
paddingBottom: "10px",
|
||||
}}
|
||||
className="for-dark-bottom-border"
|
||||
>
|
||||
<Typography
|
||||
as="h3"
|
||||
sx={{
|
||||
fontSize: 18,
|
||||
fontWeight: 500,
|
||||
}}
|
||||
>
|
||||
Revenue Report
|
||||
</Typography>
|
||||
</Box>
|
||||
|
||||
<Chart options={options} series={series} type="radar" height={522} />
|
||||
</Card>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default RevenueReport;
|
||||
@@ -0,0 +1,174 @@
|
||||
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 {
|
||||
BarChart,
|
||||
Bar,
|
||||
XAxis,
|
||||
YAxis,
|
||||
CartesianGrid,
|
||||
Tooltip,
|
||||
Legend,
|
||||
ResponsiveContainer,
|
||||
} from "recharts";
|
||||
|
||||
const data = [
|
||||
{
|
||||
date: "01 Jan",
|
||||
cost: 4000,
|
||||
sales: 2400,
|
||||
revenue: 2400,
|
||||
},
|
||||
{
|
||||
date: "02 Jan",
|
||||
cost: 3000,
|
||||
sales: 1398,
|
||||
revenue: 2210,
|
||||
},
|
||||
{
|
||||
date: "03 Jan",
|
||||
cost: 2000,
|
||||
sales: 9800,
|
||||
revenue: 2290,
|
||||
},
|
||||
{
|
||||
date: "04 Jan",
|
||||
cost: 2780,
|
||||
sales: 3908,
|
||||
revenue: 2000,
|
||||
},
|
||||
{
|
||||
date: "05 Jan",
|
||||
cost: 1890,
|
||||
sales: 4800,
|
||||
revenue: 2181,
|
||||
},
|
||||
{
|
||||
date: "06 Jan",
|
||||
cost: 2390,
|
||||
sales: 3800,
|
||||
revenue: 2500,
|
||||
},
|
||||
{
|
||||
date: "07 Jan",
|
||||
cost: 3490,
|
||||
sales: 4300,
|
||||
revenue: 2100,
|
||||
},
|
||||
];
|
||||
|
||||
const SalesAnalytics = () => {
|
||||
// Select Form
|
||||
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,
|
||||
}}
|
||||
>
|
||||
Sales Analytics
|
||||
</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>
|
||||
|
||||
<div style={{ width: '100%', height: 272 }}>
|
||||
<ResponsiveContainer>
|
||||
<BarChart
|
||||
width={500}
|
||||
height={300}
|
||||
data={data}
|
||||
margin={{
|
||||
top: 0,
|
||||
right: 0,
|
||||
left: 0,
|
||||
bottom: 0,
|
||||
}}
|
||||
barSize={50}
|
||||
>
|
||||
<CartesianGrid strokeDasharray="3 3" />
|
||||
|
||||
<XAxis dataKey="date" fontSize={12} stroke="#A9A9C8" />
|
||||
|
||||
<YAxis fontSize={12} stroke="#A9A9C8" />
|
||||
|
||||
<Tooltip wrapperStyle={{ fontSize: "13px" }} />
|
||||
|
||||
<Legend
|
||||
wrapperStyle={{ textTransform: "capitalize", fontSize: "13px" }}
|
||||
/>
|
||||
|
||||
<Bar dataKey="cost" stackId="a" fill="#165BAA" />
|
||||
|
||||
<Bar dataKey="sales" stackId="a" fill="#A155B9" />
|
||||
|
||||
<Bar dataKey="revenue" stackId="a" fill="#F765A3" />
|
||||
</BarChart>
|
||||
</ResponsiveContainer>
|
||||
</div>
|
||||
</Card>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default SalesAnalytics;
|
||||
@@ -0,0 +1,174 @@
|
||||
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 dynamic from "next/dynamic";
|
||||
const Chart = dynamic(() => import("react-apexcharts"), {
|
||||
ssr: false,
|
||||
});
|
||||
|
||||
const SessionsByCountries = () => {
|
||||
const [anchorEl, setAnchorEl] = React.useState(null);
|
||||
const open = Boolean(anchorEl);
|
||||
const handleClick = (event) => {
|
||||
setAnchorEl(event.currentTarget);
|
||||
};
|
||||
const handleClose = () => {
|
||||
setAnchorEl(null);
|
||||
};
|
||||
|
||||
// Chart
|
||||
const series = [
|
||||
{
|
||||
data: [1200, 930, 748, 670, 540, 580, 690, 1100, 1200, 1380],
|
||||
},
|
||||
];
|
||||
const options = {
|
||||
chart: {
|
||||
toolbar: {
|
||||
show: false,
|
||||
},
|
||||
},
|
||||
plotOptions: {
|
||||
bar: {
|
||||
borderRadius: 4,
|
||||
horizontal: true,
|
||||
},
|
||||
},
|
||||
dataLabels: {
|
||||
enabled: false,
|
||||
},
|
||||
colors: ["#757FEF"],
|
||||
xaxis: {
|
||||
categories: [
|
||||
"United State",
|
||||
"China",
|
||||
"Canada",
|
||||
"Indonesia",
|
||||
"Russia",
|
||||
"Bangladesh",
|
||||
"Brazil",
|
||||
"United Kingdom",
|
||||
"Vietnam",
|
||||
"Germany",
|
||||
],
|
||||
labels: {
|
||||
style: {
|
||||
colors: "#5B5B98",
|
||||
fontSize: "12px",
|
||||
},
|
||||
},
|
||||
},
|
||||
yaxis: {
|
||||
labels: {
|
||||
style: {
|
||||
colors: "#5B5B98",
|
||||
fontSize: "11px",
|
||||
},
|
||||
},
|
||||
axisBorder: {
|
||||
show: false,
|
||||
colors: "#f6f6f7",
|
||||
},
|
||||
},
|
||||
fill: {
|
||||
opacity: 1,
|
||||
},
|
||||
grid: {
|
||||
show: true,
|
||||
borderColor: "#f6f6f7",
|
||||
},
|
||||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
<Card
|
||||
sx={{
|
||||
boxShadow: "none",
|
||||
borderRadius: "10px",
|
||||
p: "25px 20px 10px",
|
||||
mb: "15px",
|
||||
}}
|
||||
>
|
||||
<Box
|
||||
sx={{
|
||||
display: "flex",
|
||||
justifyContent: "space-between",
|
||||
alignItems: "center",
|
||||
borderBottom: "1px solid #EEF0F7",
|
||||
paddingBottom: "10px",
|
||||
}}
|
||||
className="for-dark-bottom-border"
|
||||
>
|
||||
<Typography
|
||||
as="h3"
|
||||
sx={{
|
||||
fontSize: 18,
|
||||
fontWeight: 500,
|
||||
}}
|
||||
>
|
||||
Sessions By Countries
|
||||
</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={500} />
|
||||
</Card>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default SessionsByCountries;
|
||||
@@ -0,0 +1,65 @@
|
||||
.infoList {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
border-bottom: 1px solid #F7FAFF;
|
||||
margin-bottom: 13px;
|
||||
padding-bottom: 13px;
|
||||
position: relative;
|
||||
padding-left: 15px;
|
||||
}
|
||||
.infoList::before {
|
||||
content: '';
|
||||
background: #FF8A54;
|
||||
box-shadow: 0px 2.98686px 13.4409px rgba(126, 172, 235, 0.25);
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
border-radius: 100%;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 5px;
|
||||
}
|
||||
.infoList:last-child {
|
||||
border-bottom: none;
|
||||
margin-bottom: 0;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
.infoList p {
|
||||
font-size: 13px;
|
||||
margin: 0;
|
||||
}
|
||||
.infoList .rightContent {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.infoList h5 {
|
||||
margin: 0 15px 0 0;
|
||||
font-size: 12px;
|
||||
color: #5B5B98;
|
||||
}
|
||||
.infoList .rightContent i {
|
||||
position: relative;
|
||||
top: 2px;
|
||||
}
|
||||
|
||||
/* For RTL Style */
|
||||
[dir="rtl"] .infoList {
|
||||
padding-left: 0;
|
||||
padding-right: 15px;
|
||||
}
|
||||
[dir="rtl"] .infoList::before {
|
||||
left: auto;
|
||||
right: 0;
|
||||
}
|
||||
[dir="rtl"] .infoList h5 {
|
||||
margin: 0 0 0 15px;
|
||||
}
|
||||
|
||||
/* For dark mode */
|
||||
[class="dark"] .infoList {
|
||||
border-bottom: 1px solid var(--borderColor);
|
||||
}
|
||||
[class="dark"] .infoList:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
@@ -0,0 +1,105 @@
|
||||
import React, { Component } from "react";
|
||||
import { Box, Typography } from "@mui/material";
|
||||
import Card from "@mui/material/Card";
|
||||
import dynamic from "next/dynamic";
|
||||
const Chart = dynamic(() => import("react-apexcharts"), {
|
||||
ssr: false,
|
||||
});
|
||||
import styles from "@/components/Dashboard/Analytics/SessionsDevice/SessionsDevice.module.css";
|
||||
|
||||
class SessionsDevice extends Component {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.state = {
|
||||
series: [70],
|
||||
options: {
|
||||
plotOptions: {
|
||||
radialBar: {
|
||||
hollow: {
|
||||
size: "50%",
|
||||
},
|
||||
track: {
|
||||
background: "rgba(255, 138, 84, 0.5)",
|
||||
},
|
||||
dataLabels: {
|
||||
name: {
|
||||
show: false,
|
||||
},
|
||||
value: {
|
||||
offsetY: 4,
|
||||
color: "#FF8A54",
|
||||
fontSize: "16px",
|
||||
fontWeight: "500",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
fill: {
|
||||
colors: ["#FF8A54"],
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
render() {
|
||||
return (
|
||||
<>
|
||||
<Card
|
||||
sx={{
|
||||
boxShadow: "none",
|
||||
borderRadius: "10px",
|
||||
p: "25px 20px",
|
||||
mb: "15px",
|
||||
}}
|
||||
>
|
||||
<Box
|
||||
sx={{
|
||||
borderBottom: "1px solid #EEF0F7",
|
||||
paddingBottom: "10px",
|
||||
}}
|
||||
className="for-dark-bottom-border"
|
||||
>
|
||||
<Typography
|
||||
as="h3"
|
||||
sx={{
|
||||
fontSize: 18,
|
||||
fontWeight: 500,
|
||||
}}
|
||||
>
|
||||
Sessions Device
|
||||
</Typography>
|
||||
</Box>
|
||||
|
||||
<Chart
|
||||
options={this.state.options}
|
||||
series={this.state.series}
|
||||
type="radialBar"
|
||||
/>
|
||||
|
||||
<>
|
||||
<div className={styles.infoList}>
|
||||
<p>Mobile</p>
|
||||
<h5>15,684</h5>
|
||||
<div className={styles.rightContent}>
|
||||
<p>
|
||||
<i className="ri-bar-chart-fill"></i> 50%
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className={styles.infoList}>
|
||||
<p>Laptop</p>
|
||||
<h5>36,868</h5>
|
||||
<div className={styles.rightContent}>
|
||||
<p>
|
||||
<i className="ri-bar-chart-fill"></i> 60%
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</>
|
||||
</Card>
|
||||
</>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export default SessionsDevice;
|
||||
@@ -0,0 +1,151 @@
|
||||
.terminalsBox {
|
||||
position: relative;
|
||||
}
|
||||
.monthlyEarning {
|
||||
background: #757FEF;
|
||||
mix-blend-mode: multiply;
|
||||
box-shadow: 0px 109px 80px rgb(132 13 226 / 14%), 0px 45.5376px 33.4221px rgb(132 13 226 / 10%), 0px 24.3466px 17.869px rgb(132 13 226 / 8%), 0px 13.6485px 10.0172px rgb(132 13 226 / 7%), 0px 7.24861px 5.32008px rgb(132 13 226 / 6%), 0px 3.01631px 2.21381px rgb(132 13 226 / 4%);
|
||||
width: 200px;
|
||||
height: 200px;
|
||||
text-align: center;
|
||||
border-radius: 100%;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
padding-top: 75px;
|
||||
position: relative;
|
||||
right: -55px;
|
||||
top: 40px;
|
||||
}
|
||||
.monthlyEarning h3 {
|
||||
margin: 0 0 10px;
|
||||
line-height: 1;
|
||||
color: #fff !important;
|
||||
font-weight: 700;
|
||||
font-size: 24px;
|
||||
}
|
||||
.monthlyEarning p {
|
||||
margin: 0;
|
||||
line-height: 1;
|
||||
color: #fff;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.usersEarning {
|
||||
background: #F765A3;
|
||||
mix-blend-mode: multiply;
|
||||
opacity: 0.8;
|
||||
box-shadow: 0px 100px 80px rgb(255 43 43 / 15%), 0px 46.233px 36.9864px rgb(255 43 43 / 11%), 0px 26.4535px 21.1628px rgb(255 43 43 / 9%), 0px 16.0571px 12.8457px rgb(255 43 43 / 8%), 0px 9.67509px 7.74008px rgb(255 43 43 / 7%), 0px 5.38772px 4.31018px rgb(255 43 43 / 6%), 0px 2.31722px 1.85378px rgb(255 43 43 / 4%);
|
||||
width: 130px;
|
||||
height: 130px;
|
||||
text-align: center;
|
||||
border-radius: 100%;
|
||||
padding-top: 40px;
|
||||
left: -160px;
|
||||
right: 0;
|
||||
top: 130px;
|
||||
margin: auto;
|
||||
position: absolute;
|
||||
}
|
||||
.usersEarning h3 {
|
||||
margin: 0 0 10px;
|
||||
line-height: 1;
|
||||
color: #fff !important;
|
||||
font-weight: 700;
|
||||
font-size: 24px;
|
||||
}
|
||||
.usersEarning p {
|
||||
margin: 0;
|
||||
line-height: 1;
|
||||
color: #fff;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.inactiveEarning {
|
||||
top: 210px;
|
||||
background: #FF8A54;
|
||||
mix-blend-mode: multiply;
|
||||
width: 85px;
|
||||
height: 85px;
|
||||
text-align: center;
|
||||
border-radius: 100%;
|
||||
padding-top: 25px;
|
||||
position: absolute;
|
||||
left: -22px;
|
||||
right: 0;
|
||||
margin: auto;
|
||||
}
|
||||
.inactiveEarning h3 {
|
||||
margin: 0 0 5px;
|
||||
line-height: 1;
|
||||
color: #fff !important;
|
||||
font-weight: 700;
|
||||
font-size: 18px;
|
||||
}
|
||||
.inactiveEarning p {
|
||||
margin: 0;
|
||||
line-height: 1;
|
||||
color: #fff;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.terminalsBox ul {
|
||||
margin: 133px 0 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
text-align: center;
|
||||
}
|
||||
.terminalsBox ul li {
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
font-size: 13px;
|
||||
padding-left: 20px;
|
||||
margin-right: 15px;
|
||||
}
|
||||
.terminalsBox ul li:last-child {
|
||||
margin-right: 0;
|
||||
}
|
||||
.terminalsBox ul li::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
border-radius: 5px;
|
||||
width: 13px;
|
||||
height: 13px;
|
||||
left: 0;
|
||||
top: 2px;
|
||||
}
|
||||
.terminalsBox ul li:nth-child(1)::before {
|
||||
background: #757FEF;
|
||||
}
|
||||
.terminalsBox ul li:nth-child(2)::before {
|
||||
background: #F765A3;
|
||||
}
|
||||
.terminalsBox ul li:nth-child(3)::before {
|
||||
background: #FF8A54;
|
||||
}
|
||||
|
||||
|
||||
/* For RTL Style */
|
||||
[dir="rtl"] .terminalsBox ul li {
|
||||
padding-left: 0;
|
||||
padding-right: 20px;
|
||||
margin-right: 0;
|
||||
margin-left: 15px;
|
||||
}
|
||||
[dir="rtl"] .terminalsBox ul li:last-child {
|
||||
margin-left: 0;
|
||||
}
|
||||
[dir="rtl"] .terminalsBox ul li::before {
|
||||
left: auto;
|
||||
right: 0;
|
||||
}
|
||||
|
||||
/* For dark mode */
|
||||
[class="dark"] .monthlyEarning {
|
||||
mix-blend-mode: initial;
|
||||
}
|
||||
[class="dark"] .usersEarning {
|
||||
mix-blend-mode: initial;
|
||||
}
|
||||
[class="dark"] .inactiveEarning {
|
||||
mix-blend-mode: initial;
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
import React from "react";
|
||||
import { Box, Typography } from "@mui/material";
|
||||
import Card from "@mui/material/Card";
|
||||
import styles from "@/components/Dashboard/Analytics/Terminals/Terminals.module.css";
|
||||
|
||||
const Terminals = () => {
|
||||
return (
|
||||
<>
|
||||
<Card
|
||||
sx={{
|
||||
boxShadow: "none",
|
||||
borderRadius: "10px",
|
||||
p: "25px 20px",
|
||||
mb: "15px",
|
||||
}}
|
||||
>
|
||||
<Box
|
||||
sx={{
|
||||
borderBottom: "1px solid #EEF0F7",
|
||||
paddingBottom: "10px",
|
||||
}}
|
||||
className="for-dark-bottom-border"
|
||||
>
|
||||
<Typography
|
||||
as="h3"
|
||||
sx={{
|
||||
fontSize: 18,
|
||||
fontWeight: 500,
|
||||
}}
|
||||
>
|
||||
Terminals
|
||||
</Typography>
|
||||
</Box>
|
||||
|
||||
<div className={styles.terminalsBox}>
|
||||
<div className={styles.monthlyEarning}>
|
||||
<h3>$27632</h3>
|
||||
<p>Monthly Earning</p>
|
||||
</div>
|
||||
|
||||
<div className={styles.usersEarning}>
|
||||
<h3>82.9k</h3>
|
||||
<p>Users</p>
|
||||
</div>
|
||||
|
||||
<div className={styles.inactiveEarning}>
|
||||
<h3>0.9k</h3>
|
||||
<p>Inactive</p>
|
||||
</div>
|
||||
|
||||
<ul>
|
||||
<li>Monthly Earning</li>
|
||||
<li>Users</li>
|
||||
<li>Inactive</li>
|
||||
</ul>
|
||||
</div>
|
||||
</Card>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default Terminals;
|
||||
@@ -0,0 +1,59 @@
|
||||
import React, { Component } from 'react';
|
||||
import dynamic from "next/dynamic";
|
||||
const Chart = dynamic(() => import("react-apexcharts"), {
|
||||
ssr: false,
|
||||
});
|
||||
|
||||
class RevenueChart extends Component {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.state = {
|
||||
series: [65],
|
||||
options: {
|
||||
plotOptions: {
|
||||
radialBar: {
|
||||
hollow: {
|
||||
size: "50%",
|
||||
},
|
||||
track: {
|
||||
background: "#ECEFF7",
|
||||
},
|
||||
dataLabels: {
|
||||
name: {
|
||||
show: true,
|
||||
fontSize: '12px',
|
||||
color: '#5B5B98',
|
||||
},
|
||||
value: {
|
||||
offsetY: 3,
|
||||
color: "#00B69B",
|
||||
fontSize: "16px",
|
||||
fontWeight: "500",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
labels: ['Revenue'],
|
||||
fill: {
|
||||
opacity: 1,
|
||||
colors: ["#757FEF"],
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
render() {
|
||||
return (
|
||||
<>
|
||||
<Chart
|
||||
options={this.state.options}
|
||||
series={this.state.series}
|
||||
height="175"
|
||||
type="radialBar"
|
||||
/>
|
||||
</>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export default RevenueChart;
|
||||
@@ -0,0 +1,39 @@
|
||||
.totalRevenueList {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
border-bottom: 1px solid #F7FAFF;
|
||||
margin-bottom: 13px;
|
||||
padding-bottom: 13px;
|
||||
}
|
||||
.totalRevenueList:last-child {
|
||||
border-bottom: none;
|
||||
margin-bottom: 0;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
.totalRevenueList p {
|
||||
font-size: 13px;
|
||||
margin: 0;
|
||||
}
|
||||
.totalRevenueList .rightContent {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.totalRevenueList .rightContent h5 {
|
||||
margin: 0 15px 0 0;
|
||||
font-size: 12px;
|
||||
color: #5B5B98;
|
||||
}
|
||||
.totalRevenueList .rightContent i {
|
||||
position: relative;
|
||||
top: 2px;
|
||||
}
|
||||
|
||||
/* For dark mode */
|
||||
[class="dark"] .totalRevenueList {
|
||||
border-bottom: 1px solid var(--borderColor);
|
||||
}
|
||||
[class="dark"] .totalRevenueList:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
@@ -0,0 +1,162 @@
|
||||
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 RevenueChart from "./RevenueChart";
|
||||
import styles from "@/components/Dashboard/Analytics/TotalRevenue/TotalRevenueList.module.css";
|
||||
|
||||
const TotalRevenue = () => {
|
||||
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 20px",
|
||||
mb: "15px",
|
||||
}}
|
||||
>
|
||||
<Box
|
||||
sx={{
|
||||
display: "flex",
|
||||
justifyContent: "space-between",
|
||||
alignItems: "center",
|
||||
borderBottom: "1px solid #EEF0F7",
|
||||
paddingBottom: "10px",
|
||||
}}
|
||||
className="for-dark-bottom-border"
|
||||
>
|
||||
<Typography
|
||||
as="h3"
|
||||
sx={{
|
||||
fontSize: 18,
|
||||
fontWeight: 500,
|
||||
}}
|
||||
>
|
||||
Total Revenue
|
||||
</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>
|
||||
|
||||
{/* RevenueChart */}
|
||||
<RevenueChart />
|
||||
|
||||
<>
|
||||
<div className={styles.totalRevenueList}>
|
||||
<p>Avg. Session</p>
|
||||
<div className={styles.rightContent}>
|
||||
<h5>972</h5>
|
||||
<p>
|
||||
<i className="ri-arrow-right-up-line successColor"></i> 49%
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className={styles.totalRevenueList}>
|
||||
<p>Conversion Rate</p>
|
||||
<div className={styles.rightContent}>
|
||||
<h5>102</h5>
|
||||
<p>
|
||||
<i className="ri-arrow-right-up-line successColor"></i> 18%
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className={styles.totalRevenueList}>
|
||||
<p>Avg. Duration</p>
|
||||
<div className={styles.rightContent}>
|
||||
<h5>3m</h5>
|
||||
<p>
|
||||
<i className="ri-arrow-right-up-line successColor"></i> 42%
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className={styles.totalRevenueList}>
|
||||
<p>Weekly Earning</p>
|
||||
<div className={styles.rightContent}>
|
||||
<h5>$972</h5>
|
||||
<p>
|
||||
<i className="ri-arrow-right-down-line dangerColor"></i> 28%
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className={styles.totalRevenueList}>
|
||||
<p>Monthly Revenue</p>
|
||||
<div className={styles.rightContent}>
|
||||
<h5>50k</h5>
|
||||
<p>
|
||||
<i className="ri-arrow-right-up-line successColor"></i> 70%
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</>
|
||||
</Card>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default TotalRevenue;
|
||||
@@ -0,0 +1,112 @@
|
||||
import React from "react";
|
||||
import { Box, Typography } from "@mui/material";
|
||||
import Card from "@mui/material/Card";
|
||||
import dynamic from "next/dynamic";
|
||||
const Chart = dynamic(() => import("react-apexcharts"), {
|
||||
ssr: false,
|
||||
});
|
||||
|
||||
const TotalTransactions = () => {
|
||||
// Chart
|
||||
const series = [
|
||||
{
|
||||
name: 'This Week',
|
||||
data: [30, 35, 40, 50, 55, 60, 65]
|
||||
},
|
||||
{
|
||||
name: 'Last Week',
|
||||
data: [65, 60, 55, 50, 40, 35, 30]
|
||||
},
|
||||
{
|
||||
name: 'Performance',
|
||||
data: [30, 35, 40, 50, 55, 60, 65]
|
||||
},
|
||||
{
|
||||
name: 'Cost',
|
||||
data: [65, 60, 55, 50, 40, 35, 30]
|
||||
}
|
||||
];
|
||||
|
||||
const options = {
|
||||
chart: {
|
||||
stacked: true,
|
||||
toolbar: {
|
||||
show: false
|
||||
},
|
||||
},
|
||||
colors: ["#1CCAB8", "#FFBC2B", "#818093", "#EE368C"],
|
||||
plotOptions: {
|
||||
bar: {
|
||||
horizontal: false,
|
||||
columnWidth: "30%",
|
||||
endingShape: "rounded",
|
||||
},
|
||||
},
|
||||
xaxis: {
|
||||
type: 'datetime',
|
||||
categories: ['01/01/2011 GMT', '01/02/2011 GMT', '01/03/2011 GMT', '01/04/2011 GMT',
|
||||
'01/05/2011 GMT', '01/06/2011 GMT', '01/07/2011 GMT'
|
||||
],
|
||||
labels: {
|
||||
show: false,
|
||||
},
|
||||
},
|
||||
yaxis: {
|
||||
show: false,
|
||||
},
|
||||
legend: {
|
||||
position: 'bottom',
|
||||
offsetY: 8,
|
||||
fontSize: '11px',
|
||||
},
|
||||
fill: {
|
||||
opacity: 1
|
||||
},
|
||||
grid: {
|
||||
borderColor: '#F7FAFF',
|
||||
},
|
||||
tooltip: {
|
||||
y: {
|
||||
formatter: function (val) {
|
||||
return "$" + val + "k";
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
return (
|
||||
<>
|
||||
<Card
|
||||
sx={{
|
||||
boxShadow: "none",
|
||||
borderRadius: "10px",
|
||||
p: "25px 0 15px",
|
||||
mb: "15px",
|
||||
}}
|
||||
>
|
||||
<Box
|
||||
sx={{
|
||||
borderBottom: "1px solid #EEF0F7",
|
||||
paddingBottom: "10px",
|
||||
}}
|
||||
className="for-dark-bottom-border"
|
||||
>
|
||||
<Typography
|
||||
as="h3"
|
||||
sx={{
|
||||
fontSize: 18,
|
||||
fontWeight: 500,
|
||||
p: "0 20px 0",
|
||||
}}
|
||||
>
|
||||
Total Transactions
|
||||
</Typography>
|
||||
</Box>
|
||||
|
||||
<Chart options={options} series={series} type="bar" height={325} />
|
||||
</Card>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default TotalTransactions;
|
||||
@@ -0,0 +1,65 @@
|
||||
.infoList {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
border-bottom: 1px solid #F7FAFF;
|
||||
margin-bottom: 13px;
|
||||
padding-bottom: 13px;
|
||||
position: relative;
|
||||
padding-left: 15px;
|
||||
}
|
||||
.infoList::before {
|
||||
content: '';
|
||||
background: #F765A3;
|
||||
box-shadow: 0px 2.98686px 13.4409px rgba(126, 172, 235, 0.25);
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
border-radius: 100%;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 5px;
|
||||
}
|
||||
.infoList:last-child {
|
||||
border-bottom: none;
|
||||
margin-bottom: 0;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
.infoList p {
|
||||
font-size: 13px;
|
||||
margin: 0;
|
||||
}
|
||||
.infoList .rightContent {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.infoList h5 {
|
||||
margin: 0 15px 0 0;
|
||||
font-size: 12px;
|
||||
color: #5B5B98;
|
||||
}
|
||||
.infoList .rightContent i {
|
||||
position: relative;
|
||||
top: 2px;
|
||||
}
|
||||
|
||||
/* For RTL Style */
|
||||
[dir="rtl"] .infoList {
|
||||
padding-left: 0;
|
||||
padding-right: 15px;
|
||||
}
|
||||
[dir="rtl"] .infoList::before {
|
||||
left: auto;
|
||||
right: 0;
|
||||
}
|
||||
[dir="rtl"] .infoList h5 {
|
||||
margin: 0 0 0 15px;
|
||||
}
|
||||
|
||||
/* For dark mode */
|
||||
[class="dark"] .infoList {
|
||||
border-bottom: 1px solid var(--borderColor);
|
||||
}
|
||||
[class="dark"] .infoList:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
@@ -0,0 +1,105 @@
|
||||
import React, { Component } from "react";
|
||||
import { Box, Typography } from "@mui/material";
|
||||
import Card from "@mui/material/Card";
|
||||
import dynamic from "next/dynamic";
|
||||
const Chart = dynamic(() => import("react-apexcharts"), {
|
||||
ssr: false,
|
||||
});
|
||||
import styles from "@/components/Dashboard/Analytics/VisitorsAge/VisitorsAge.module.css";
|
||||
|
||||
class VisitorsAge extends Component {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.state = {
|
||||
series: [40],
|
||||
options: {
|
||||
plotOptions: {
|
||||
radialBar: {
|
||||
hollow: {
|
||||
size: "50%",
|
||||
},
|
||||
track: {
|
||||
background: "rgba(247, 101, 163, 0.5)",
|
||||
},
|
||||
dataLabels: {
|
||||
name: {
|
||||
show: false,
|
||||
},
|
||||
value: {
|
||||
offsetY: 4,
|
||||
color: "#F765A3",
|
||||
fontSize: "16px",
|
||||
fontWeight: "500",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
fill: {
|
||||
colors: ["#F765A3"],
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
render() {
|
||||
return (
|
||||
<>
|
||||
<Card
|
||||
sx={{
|
||||
boxShadow: "none",
|
||||
borderRadius: "10px",
|
||||
p: "25px 20px",
|
||||
mb: "15px",
|
||||
}}
|
||||
>
|
||||
<Box
|
||||
sx={{
|
||||
borderBottom: "1px solid #EEF0F7",
|
||||
paddingBottom: "10px",
|
||||
}}
|
||||
className="for-dark-bottom-border"
|
||||
>
|
||||
<Typography
|
||||
as="h3"
|
||||
sx={{
|
||||
fontSize: 18,
|
||||
fontWeight: 500,
|
||||
}}
|
||||
>
|
||||
Visitors Age
|
||||
</Typography>
|
||||
</Box>
|
||||
|
||||
<Chart
|
||||
options={this.state.options}
|
||||
series={this.state.series}
|
||||
type="radialBar"
|
||||
/>
|
||||
|
||||
<>
|
||||
<div className={styles.infoList}>
|
||||
<p>Under 30</p>
|
||||
<h5>16,868</h5>
|
||||
<div className={styles.rightContent}>
|
||||
<p>
|
||||
<i className="ri-bar-chart-fill"></i> 32%
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className={styles.infoList}>
|
||||
<p>Over 30</p>
|
||||
<h5>31,868</h5>
|
||||
<div className={styles.rightContent}>
|
||||
<p>
|
||||
<i className="ri-bar-chart-fill"></i> 68%
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</>
|
||||
</Card>
|
||||
</>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export default VisitorsAge;
|
||||
@@ -0,0 +1,123 @@
|
||||
import React from "react";
|
||||
import Grid from "@mui/material/Grid";
|
||||
import Box from "@mui/material/Box";
|
||||
import Typography from "@mui/material/Typography";
|
||||
import {
|
||||
BarChart,
|
||||
Bar,
|
||||
XAxis,
|
||||
Tooltip,
|
||||
ResponsiveContainer,
|
||||
} from "recharts";
|
||||
|
||||
const data = [
|
||||
{
|
||||
name: "Sat",
|
||||
income: 24,
|
||||
},
|
||||
{
|
||||
name: "Sun",
|
||||
income: 13,
|
||||
},
|
||||
{
|
||||
name: "Mon",
|
||||
income: 98,
|
||||
},
|
||||
{
|
||||
name: "Tue",
|
||||
income: 39,
|
||||
},
|
||||
{
|
||||
name: "Wed",
|
||||
income: 48,
|
||||
},
|
||||
{
|
||||
name: "Thu",
|
||||
income: 38,
|
||||
},
|
||||
{
|
||||
name: "Fri",
|
||||
income: 43,
|
||||
},
|
||||
];
|
||||
|
||||
const NetIncome = () => {
|
||||
return (
|
||||
<>
|
||||
<Grid container alignItems="center" sx={{ marginTop: '20px' }} rowSpacing={1} columnSpacing={{ xs: 1, sm: 2, md: 2 }}>
|
||||
<Grid item xs={6} md={7} lg={6}>
|
||||
<Box
|
||||
sx={{
|
||||
display: "flex",
|
||||
alignItems: "center",
|
||||
}}
|
||||
>
|
||||
<Box
|
||||
sx={{
|
||||
width: "46px",
|
||||
height: "54px",
|
||||
lineHeight: "54px",
|
||||
borderRadius: "8px",
|
||||
fontSize: "25px",
|
||||
background: "#FFFFFF",
|
||||
boxShadow: "0px 4px 20px rgba(117, 127, 239, 0.15)",
|
||||
color: "#757FEF",
|
||||
textAlign: "center",
|
||||
}}
|
||||
className='mr-15px'
|
||||
>
|
||||
<i className="ri-bar-chart-fill"></i>
|
||||
</Box>
|
||||
|
||||
<Box>
|
||||
<Typography variant="p" sx={{ fontSize: 13 }}>
|
||||
Net Income
|
||||
</Typography>
|
||||
<Typography
|
||||
variant="h1"
|
||||
sx={{ fontSize: 22, fontWeight: 700, mt: "5px" }}
|
||||
>
|
||||
$438.5k
|
||||
</Typography>
|
||||
</Box>
|
||||
</Box>
|
||||
</Grid>
|
||||
|
||||
<Grid item xs={6} md={5} lg={6}>
|
||||
<ResponsiveContainer width="100%" aspect={2.0 / 0.9}>
|
||||
<BarChart
|
||||
width={500}
|
||||
height={300}
|
||||
data={data}
|
||||
margin={{
|
||||
top: 5,
|
||||
right: 10,
|
||||
left: 10,
|
||||
bottom: 5,
|
||||
}}
|
||||
barSize={8}
|
||||
>
|
||||
<XAxis
|
||||
dataKey="name"
|
||||
scale="point"
|
||||
fontSize={9}
|
||||
stroke="#A9A9C8"
|
||||
/>
|
||||
|
||||
<Tooltip wrapperStyle={{fontSize: "14px"}} />
|
||||
|
||||
<Bar
|
||||
dataKey="income"
|
||||
fill="#757FEF"
|
||||
background={{ fill: "#DBDFF1" }}
|
||||
unit="k"
|
||||
/>
|
||||
</BarChart>
|
||||
</ResponsiveContainer>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default NetIncome;
|
||||
@@ -0,0 +1,136 @@
|
||||
import React from "react";
|
||||
import {
|
||||
BarChart,
|
||||
Bar,
|
||||
XAxis,
|
||||
Tooltip,
|
||||
ResponsiveContainer,
|
||||
} from "recharts";
|
||||
import Grid from "@mui/material/Grid";
|
||||
import Card from "@mui/material/Card";
|
||||
import Box from "@mui/material/Box";
|
||||
import Typography from "@mui/material/Typography";
|
||||
import NetIncome from "./NetIncome";
|
||||
|
||||
const data = [
|
||||
{
|
||||
name: "Sat",
|
||||
visited: 2400,
|
||||
},
|
||||
{
|
||||
name: "Sun",
|
||||
visited: 1398,
|
||||
},
|
||||
{
|
||||
name: "Mon",
|
||||
visited: 9800,
|
||||
},
|
||||
{
|
||||
name: "Tue",
|
||||
visited: 3908,
|
||||
},
|
||||
{
|
||||
name: "Wed",
|
||||
visited: 4800,
|
||||
},
|
||||
{
|
||||
name: "Thu",
|
||||
visited: 3800,
|
||||
},
|
||||
{
|
||||
name: "Fri",
|
||||
visited: 4300,
|
||||
},
|
||||
];
|
||||
|
||||
const VisitsByDayAndNetIncome = () => {
|
||||
return (
|
||||
<>
|
||||
<Card
|
||||
sx={{
|
||||
boxShadow: "none",
|
||||
borderRadius: "10px",
|
||||
p: "30px 20px 20px",
|
||||
mb: "15px",
|
||||
}}
|
||||
>
|
||||
<Grid container alignItems="center" rowSpacing={1} columnSpacing={{ xs: 1, sm: 2, md: 2 }}>
|
||||
<Grid item xs={6} md={7} lg={6}>
|
||||
<Box
|
||||
sx={{
|
||||
display: "flex",
|
||||
alignItems: "center",
|
||||
}}
|
||||
>
|
||||
<Box
|
||||
sx={{
|
||||
width: "46px",
|
||||
height: "54px",
|
||||
lineHeight: "54px",
|
||||
borderRadius: "8px",
|
||||
fontSize: "25px",
|
||||
background: "#FFFFFF",
|
||||
boxShadow: "0px 4px 20px rgba(117, 127, 239, 0.15)",
|
||||
color: "#757FEF",
|
||||
textAlign: "center",
|
||||
}}
|
||||
className="mr-15px"
|
||||
>
|
||||
<i className="ri-pie-chart-line"></i>
|
||||
</Box>
|
||||
|
||||
<Box>
|
||||
<Typography variant="p" sx={{ fontSize: 13 }}>
|
||||
Visits By Day
|
||||
</Typography>
|
||||
<Typography
|
||||
variant="h1"
|
||||
sx={{ fontSize: 22, fontWeight: 700, mt: "5px" }}
|
||||
>
|
||||
1,802
|
||||
</Typography>
|
||||
</Box>
|
||||
</Box>
|
||||
</Grid>
|
||||
|
||||
<Grid item xs={6} md={5} lg={6}>
|
||||
<ResponsiveContainer width="100%" aspect={2.0 / 0.9}>
|
||||
<BarChart
|
||||
width={500}
|
||||
height={300}
|
||||
data={data}
|
||||
margin={{
|
||||
top: 5,
|
||||
right: 10,
|
||||
left: 10,
|
||||
bottom: 5,
|
||||
}}
|
||||
barSize={8}
|
||||
>
|
||||
<XAxis
|
||||
dataKey="name"
|
||||
scale="point"
|
||||
fontSize={9}
|
||||
stroke="#A9A9C8"
|
||||
/>
|
||||
|
||||
<Tooltip wrapperStyle={{fontSize: "14px"}} />
|
||||
|
||||
<Bar
|
||||
dataKey="visited"
|
||||
fill="#FFBA69"
|
||||
background={{ fill: "#DBDFF1" }}
|
||||
/>
|
||||
</BarChart>
|
||||
</ResponsiveContainer>
|
||||
</Grid>
|
||||
</Grid>
|
||||
|
||||
{/* NetIncome */}
|
||||
<NetIncome />
|
||||
</Card>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default VisitsByDayAndNetIncome;
|
||||
Reference in New Issue
Block a user