first commit
This commit is contained in:
@@ -0,0 +1,227 @@
|
||||
import React from "react";
|
||||
import Grid from "@mui/material/Grid";
|
||||
import Card from "@mui/material/Card";
|
||||
import Typography from "@mui/material/Typography";
|
||||
import Box from "@mui/material/Box";
|
||||
import CallIcon from '@mui/icons-material/Call';
|
||||
import MailOutlineIcon from '@mui/icons-material/MailOutline';
|
||||
import Stack from '@mui/material/Stack';
|
||||
import IconButton from '@mui/material/IconButton';
|
||||
import DeleteIcon from '@mui/icons-material/Delete';
|
||||
import EditIcon from '@mui/icons-material/Edit';
|
||||
import Tooltip from '@mui/material/Tooltip';
|
||||
import styles from '@/styles/PageTitle.module.css'
|
||||
import Link from 'next/link';
|
||||
|
||||
const contactLists = [
|
||||
{
|
||||
image: '/images/member1.png',
|
||||
name: 'Alvarado Turner',
|
||||
designation: 'React Developer',
|
||||
phonNumber: '+9003526765',
|
||||
email: 'alvarado@gmail.com',
|
||||
},
|
||||
{
|
||||
image: '/images/member2.png',
|
||||
name: 'Evangelina Mcclain',
|
||||
designation: 'Angular Developer',
|
||||
phonNumber: '+9003526765',
|
||||
email: 'evangelina@gmail.com',
|
||||
},
|
||||
{
|
||||
image: '/images/member3.png',
|
||||
name: 'Candice Munoz',
|
||||
designation: 'Vue Developer',
|
||||
phonNumber: '+9003526766',
|
||||
email: 'candice@gmail.com',
|
||||
},
|
||||
{
|
||||
image: '/images/member4.png',
|
||||
name: 'Bernard Langley',
|
||||
designation: 'UI/UX Designer',
|
||||
phonNumber: '+9003526767',
|
||||
email: 'bernard@gmail.com',
|
||||
},
|
||||
{
|
||||
image: '/images/member5.png',
|
||||
name: 'Kristie Hall',
|
||||
designation: 'Software Analyst',
|
||||
phonNumber: '+9003526846',
|
||||
email: 'kristie@gmail.com',
|
||||
},
|
||||
{
|
||||
image: '/images/member6.png',
|
||||
name: 'Bolton Obrien',
|
||||
designation: 'Support Engineer',
|
||||
phonNumber: '+9003526865',
|
||||
email: 'bolton@gmail.com',
|
||||
},
|
||||
{
|
||||
image: '/images/member7.png',
|
||||
name: 'Dee Alvarado',
|
||||
designation: 'SEO Specialist',
|
||||
phonNumber: '+9003526456',
|
||||
email: 'alvarado@gmail.com',
|
||||
},
|
||||
{
|
||||
image: '/images/member8.png',
|
||||
name: 'Cervantes Kramer',
|
||||
designation: 'Product Designer',
|
||||
phonNumber: '+9003526456',
|
||||
email: 'cervantes@gmail.com',
|
||||
},
|
||||
{
|
||||
image: '/images/member9.png',
|
||||
name: 'Dejesus Michael',
|
||||
designation: 'Content Writer',
|
||||
email: 'dejesus@gmail.com',
|
||||
phonNumber: '+9003526456',
|
||||
},
|
||||
{
|
||||
image: '/images/member10.png',
|
||||
name: 'Alissa Nelson',
|
||||
designation: 'Theme Developer',
|
||||
email: 'alissa@gmail.com',
|
||||
phonNumber: '+9003526355',
|
||||
},
|
||||
{
|
||||
image: '/images/member11.png',
|
||||
name: 'English Haney',
|
||||
designation: 'Digital Marketing Executive',
|
||||
email: 'english@gmail.com',
|
||||
phonNumber: '+9003526456',
|
||||
},
|
||||
{
|
||||
image: '/images/member12.png',
|
||||
name: 'Edwards Mckenzie',
|
||||
designation: 'Support Engineer',
|
||||
email: 'edwards@gmail.com',
|
||||
phonNumber: '+9003526456',
|
||||
},
|
||||
];
|
||||
|
||||
export default function ContactList2() {
|
||||
return (
|
||||
<>
|
||||
{/* Page title */}
|
||||
<div className={styles.pageTitle}>
|
||||
<h1>Contact List</h1>
|
||||
<ul>
|
||||
<li>
|
||||
<Link href="/">Dashboard</Link>
|
||||
</li>
|
||||
<li>Contact List</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<Grid
|
||||
container
|
||||
rowSpacing={1}
|
||||
columnSpacing={{ xs: 1, sm: 1, md: 1, lg: 1, xl: 2 }}
|
||||
>
|
||||
{contactLists.map((contactList) => (
|
||||
<Grid item xs={12} sm={6} md={6} lg={4} xl={3} key={contactList.name}>
|
||||
<Card
|
||||
sx={{
|
||||
textAlign: "center",
|
||||
boxShadow: "none",
|
||||
borderRadius: "10px",
|
||||
p: "20px 15px",
|
||||
mb: "15px",
|
||||
}}
|
||||
>
|
||||
<Box>
|
||||
<Stack direction="row" alignItems="center" justifyContent="flex-end" spacing={1}>
|
||||
<Tooltip title="Delete" arrow placement="top">
|
||||
<IconButton aria-label="delete" size="small">
|
||||
<DeleteIcon
|
||||
fontSize="inherit"
|
||||
sx={{
|
||||
color: '#A9A9C8',
|
||||
}}
|
||||
/>
|
||||
</IconButton>
|
||||
</Tooltip>
|
||||
|
||||
<Tooltip title="Edit" arrow placement="top">
|
||||
<IconButton aria-label="edit" size="small">
|
||||
<EditIcon
|
||||
fontSize="inherit"
|
||||
sx={{
|
||||
color: '#A9A9C8',
|
||||
}}
|
||||
/>
|
||||
</IconButton>
|
||||
</Tooltip>
|
||||
</Stack>
|
||||
</Box>
|
||||
|
||||
<img
|
||||
src={contactList.image}
|
||||
alt="Member"
|
||||
width="148px"
|
||||
height="148px"
|
||||
className="borRadius100"
|
||||
/>
|
||||
<Typography
|
||||
as="h4"
|
||||
sx={{
|
||||
fontSize: 16,
|
||||
fontWeight: 500,
|
||||
mt: '10px',
|
||||
}}
|
||||
>
|
||||
{contactList.name}
|
||||
</Typography>
|
||||
|
||||
<Typography
|
||||
as="h4"
|
||||
sx={{
|
||||
fontSize: 13,
|
||||
color: '#A9A9C8',
|
||||
mb: 2,
|
||||
}}
|
||||
>
|
||||
{contactList.designation}
|
||||
</Typography>
|
||||
|
||||
<Box
|
||||
sx={{
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'space-between',
|
||||
textAlign: 'center',
|
||||
mt: '30px'
|
||||
}}
|
||||
>
|
||||
<Box>
|
||||
<CallIcon
|
||||
sx={{
|
||||
color: '#A9A9C8',
|
||||
mb: '3px'
|
||||
}}
|
||||
/>
|
||||
<Typography fontWeight="500" fontSize="13px">
|
||||
{contactList.phonNumber}
|
||||
</Typography>
|
||||
</Box>
|
||||
|
||||
<Box>
|
||||
<MailOutlineIcon
|
||||
sx={{
|
||||
color: '#A9A9C8',
|
||||
mb: '3px'
|
||||
}}
|
||||
/>
|
||||
<Typography fontWeight="500" fontSize="13px">
|
||||
{contactList.email}
|
||||
</Typography>
|
||||
</Box>
|
||||
</Box>
|
||||
</Card>
|
||||
</Grid>
|
||||
))}
|
||||
</Grid>
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,265 @@
|
||||
import React from "react";
|
||||
import Grid from "@mui/material/Grid";
|
||||
import Card from "@mui/material/Card";
|
||||
import Typography from "@mui/material/Typography";
|
||||
import Box from "@mui/material/Box";
|
||||
import Button from '@mui/material/Button';
|
||||
import Link from 'next/link';
|
||||
import styles from '@/styles/PageTitle.module.css'
|
||||
|
||||
const contactLists = [
|
||||
{
|
||||
image: '/images/member1.png',
|
||||
name: 'Alvarado Turner',
|
||||
userName: '@alvaradoTurner',
|
||||
email: 'alvaradoTurner@gmail.com',
|
||||
projectUrl: '#',
|
||||
post: '18k',
|
||||
followers: '5.21k',
|
||||
followings: '32k',
|
||||
},
|
||||
{
|
||||
image: '/images/member2.png',
|
||||
name: 'Evangelina Mcclain',
|
||||
userName: '@evangelinaMcclain',
|
||||
email: 'evangelinaMcclain@gmail.com',
|
||||
projectUrl: '#',
|
||||
post: '10k',
|
||||
followers: '4.20k',
|
||||
followings: '15k',
|
||||
},
|
||||
{
|
||||
image: '/images/member3.png',
|
||||
name: 'Candice Munoz',
|
||||
userName: '@candiceMunoz',
|
||||
email: 'candiceMunoz@gmail.com',
|
||||
projectUrl: '#',
|
||||
post: '5k',
|
||||
followers: '2.20k',
|
||||
followings: '12k',
|
||||
},
|
||||
{
|
||||
image: '/images/member4.png',
|
||||
name: 'Bernard Langley',
|
||||
userName: '@bernardLangley',
|
||||
email: 'bernardLangley@gmail.com',
|
||||
projectUrl: '#',
|
||||
post: '19k',
|
||||
followers: '10.20k',
|
||||
followings: '30k',
|
||||
},
|
||||
{
|
||||
image: '/images/member5.png',
|
||||
name: 'Kristie Hall',
|
||||
userName: '@kristieHall',
|
||||
email: 'kristieHall@gmail.com',
|
||||
projectUrl: '#',
|
||||
post: '14k',
|
||||
followers: '9.20k',
|
||||
followings: '40k',
|
||||
},
|
||||
{
|
||||
image: '/images/member6.png',
|
||||
name: 'Bolton Obrien',
|
||||
userName: '@boltonObrien',
|
||||
email: 'boltonObrien@gmail.com',
|
||||
projectUrl: '#',
|
||||
post: '20k',
|
||||
followers: '19.20k',
|
||||
followings: '50k',
|
||||
},
|
||||
{
|
||||
image: '/images/member7.png',
|
||||
name: 'Dee Alvarado',
|
||||
userName: '@deeAlvarado',
|
||||
email: 'deeAlvarado@gmail.com',
|
||||
projectUrl: '#',
|
||||
post: '22k',
|
||||
followers: '30.20k',
|
||||
followings: '50k',
|
||||
},
|
||||
{
|
||||
image: '/images/member8.png',
|
||||
name: 'Cervantes Kramer',
|
||||
userName: '@cervantesKramer',
|
||||
email: 'cervantesKramer@gmail.com',
|
||||
projectUrl: '#',
|
||||
post: '25k',
|
||||
followers: '35.20k',
|
||||
followings: '10k',
|
||||
},
|
||||
{
|
||||
image: '/images/member9.png',
|
||||
name: 'Dejesus Michael',
|
||||
userName: '@dejesusMichael',
|
||||
email: 'dejesusMichael@gmail.com',
|
||||
projectUrl: '#',
|
||||
post: '16k',
|
||||
followers: '20.20k',
|
||||
followings: '5k',
|
||||
},
|
||||
{
|
||||
image: '/images/member10.png',
|
||||
name: 'Alissa Nelson',
|
||||
userName: '@alissaNelson',
|
||||
email: 'alissaNelson@gmail.com',
|
||||
projectUrl: '#',
|
||||
post: '13k',
|
||||
followers: '20.20k',
|
||||
followings: '250',
|
||||
},
|
||||
{
|
||||
image: '/images/member11.png',
|
||||
name: 'English Haney',
|
||||
userName: '@englishHaney',
|
||||
email: 'englishHaney@gmail.com',
|
||||
projectUrl: '#',
|
||||
post: '12k',
|
||||
followers: '12.20k',
|
||||
followings: '1205',
|
||||
},
|
||||
{
|
||||
image: '/images/member12.png',
|
||||
name: 'Edwards Mckenzie',
|
||||
userName: '@edwardsMckenzie',
|
||||
email: 'edwardsMckenzie@gmail.com',
|
||||
projectUrl: '#',
|
||||
post: '11k',
|
||||
followers: '30.20k',
|
||||
followings: '5k',
|
||||
},
|
||||
];
|
||||
|
||||
export default function ContactList() {
|
||||
return (
|
||||
<>
|
||||
{/* Page title */}
|
||||
<div className={styles.pageTitle}>
|
||||
<h1>Contact List</h1>
|
||||
<ul>
|
||||
<li>
|
||||
<Link href="/">Dashboard</Link>
|
||||
</li>
|
||||
<li>Contact List</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<Grid
|
||||
container
|
||||
rowSpacing={1}
|
||||
columnSpacing={{ xs: 1, sm: 1, md: 1, lg: 1, xl: 2 }}
|
||||
>
|
||||
{contactLists.map((contactList) => (
|
||||
<Grid item xs={12} sm={6} md={6} lg={4} xl={3} key={contactList.name}>
|
||||
<Card
|
||||
sx={{
|
||||
textAlign: "center",
|
||||
boxShadow: "none",
|
||||
borderRadius: "10px",
|
||||
p: "20px 15px",
|
||||
mb: "15px",
|
||||
}}
|
||||
>
|
||||
<img
|
||||
src={contactList.image}
|
||||
alt="Member"
|
||||
width="148px"
|
||||
height="148px"
|
||||
className="borRadius100"
|
||||
/>
|
||||
<Typography
|
||||
as="h4"
|
||||
sx={{
|
||||
fontSize: 16,
|
||||
fontWeight: 500,
|
||||
mt: '10px',
|
||||
}}
|
||||
>
|
||||
{contactList.name}
|
||||
</Typography>
|
||||
|
||||
<Typography
|
||||
sx={{
|
||||
fontSize: 13,
|
||||
color: '#A9A9C8',
|
||||
mb: 2,
|
||||
}}
|
||||
>
|
||||
{contactList.userName}
|
||||
</Typography>
|
||||
|
||||
<Box>
|
||||
<Link href={`mailto:${contactList.email}`} className="text-decoration-none">
|
||||
<Button
|
||||
variant="contained"
|
||||
color="primary"
|
||||
sx={{
|
||||
textTransform: 'capitalize',
|
||||
borderRadius: '8px',
|
||||
m: '0 5px',
|
||||
color: "#fff !important"
|
||||
}}
|
||||
>
|
||||
Message
|
||||
</Button>
|
||||
</Link>
|
||||
|
||||
<Link href={contactList.projectUrl} className="text-decoration-none">
|
||||
<Button
|
||||
variant="contained"
|
||||
color="secondary"
|
||||
sx={{
|
||||
textTransform: 'capitalize',
|
||||
borderRadius: '8px',
|
||||
m: '0 5px',
|
||||
color: "#fff !important"
|
||||
}}
|
||||
>
|
||||
Projects
|
||||
</Button>
|
||||
</Link>
|
||||
</Box>
|
||||
|
||||
<Box
|
||||
sx={{
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'space-between',
|
||||
textAlign: 'center',
|
||||
mt: '30px'
|
||||
}}
|
||||
>
|
||||
<Box>
|
||||
<Typography color="#A9A9C8" mb={1} fontSize="13px">
|
||||
Post
|
||||
</Typography>
|
||||
<Typography fontWeight="500" fontSize="20px">
|
||||
{contactList.post}
|
||||
</Typography>
|
||||
</Box>
|
||||
|
||||
<Box>
|
||||
<Typography color="#A9A9C8" mb={1} fontSize="13px">
|
||||
Followers
|
||||
</Typography>
|
||||
<Typography fontWeight="500" fontSize="20px">
|
||||
{contactList.followers}
|
||||
</Typography>
|
||||
</Box>
|
||||
|
||||
<Box>
|
||||
<Typography color="#A9A9C8" mb={1} fontSize="13px">
|
||||
Followings
|
||||
</Typography>
|
||||
<Typography fontWeight="500" fontSize="20px">
|
||||
{contactList.followings}
|
||||
</Typography>
|
||||
</Box>
|
||||
</Box>
|
||||
</Card>
|
||||
</Grid>
|
||||
))}
|
||||
</Grid>
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,883 @@
|
||||
import * as React from "react";
|
||||
import { Box, Typography } from "@mui/material";
|
||||
import Card from "@mui/material/Card";
|
||||
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 IconButton from "@mui/material/IconButton";
|
||||
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 Grid from "@mui/material/Grid";
|
||||
import Tooltip from "@mui/material/Tooltip";
|
||||
import DeleteIcon from "@mui/icons-material/Delete";
|
||||
import DriveFileRenameOutlineIcon from "@mui/icons-material/DriveFileRenameOutline";
|
||||
import Backdrop from "@mui/material/Backdrop";
|
||||
import Button from "@mui/material/Button";
|
||||
import Fade from "@mui/material/Fade";
|
||||
import Modal from "@mui/material/Modal";
|
||||
import TextField from "@mui/material/TextField";
|
||||
import AddIcon from "@mui/icons-material/Add";
|
||||
import ClearIcon from "@mui/icons-material/Clear";
|
||||
import Checkbox from '@mui/material/Checkbox';
|
||||
import styles from '@/styles/PageTitle.module.css'
|
||||
import Link from 'next/link';
|
||||
import { styled } from '@mui/material/styles';
|
||||
import Dialog from '@mui/material/Dialog';
|
||||
import DialogTitle from '@mui/material/DialogTitle';
|
||||
import CloseIcon from '@mui/icons-material/Close';
|
||||
|
||||
const label = { inputProps: { 'aria-label': 'Checkbox demo' } };
|
||||
|
||||
// Create new user Modal
|
||||
const BootstrapDialog = styled(Dialog)(({ theme }) => ({
|
||||
'& .MuiDialogContent-root': {
|
||||
padding: theme.spacing(2),
|
||||
},
|
||||
'& .MuiDialogActions-root': {
|
||||
padding: theme.spacing(1),
|
||||
},
|
||||
}));
|
||||
|
||||
function BootstrapDialogTitle(props) {
|
||||
const { children, onClose, ...other } = props;
|
||||
|
||||
return (
|
||||
<DialogTitle sx={{ m: 0, p: 2 }} {...other}>
|
||||
{children}
|
||||
{onClose ? (
|
||||
<IconButton
|
||||
aria-label="close"
|
||||
onClick={onClose}
|
||||
sx={{
|
||||
position: 'absolute',
|
||||
right: 8,
|
||||
top: 8,
|
||||
color: (theme) => theme.palette.grey[500],
|
||||
}}
|
||||
>
|
||||
<CloseIcon />
|
||||
</IconButton>
|
||||
) : null}
|
||||
</DialogTitle>
|
||||
);
|
||||
}
|
||||
|
||||
BootstrapDialogTitle.propTypes = {
|
||||
children: PropTypes.node,
|
||||
onClose: PropTypes.func.isRequired,
|
||||
};
|
||||
// End Create new user Modal
|
||||
|
||||
function MembersLists(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>
|
||||
);
|
||||
}
|
||||
|
||||
MembersLists.propTypes = {
|
||||
count: PropTypes.number.isRequired,
|
||||
onPageChange: PropTypes.func.isRequired,
|
||||
page: PropTypes.number.isRequired,
|
||||
rowsPerPage: PropTypes.number.isRequired,
|
||||
};
|
||||
|
||||
function createData(name, image, userName, email, tags, projects) {
|
||||
return {
|
||||
name,
|
||||
image,
|
||||
userName,
|
||||
email,
|
||||
tags,
|
||||
projects,
|
||||
};
|
||||
}
|
||||
|
||||
const rows = [
|
||||
createData(
|
||||
"Evangelina Mcclain",
|
||||
"/images/user1.png",
|
||||
"@jstevenson5c",
|
||||
"jordansteve@gmail.com",
|
||||
"HTML, CSS & JS",
|
||||
"165"
|
||||
),
|
||||
createData(
|
||||
"Candice Munoz",
|
||||
"/images/user2.png",
|
||||
"@candice3unoz",
|
||||
"candicemunoz@gmail.com",
|
||||
"React, Next.js",
|
||||
"120"
|
||||
),
|
||||
createData(
|
||||
"Mike Mcclain",
|
||||
"/images/user3.png",
|
||||
"@mike4mcclain",
|
||||
"mikemcclain@gmail.com",
|
||||
"Angular, Gatsby",
|
||||
"220"
|
||||
),
|
||||
createData(
|
||||
"Bernard Langley",
|
||||
"/images/user4.png",
|
||||
"@bernardlangley",
|
||||
"bernardlangley@gmail.com",
|
||||
"HTML, React & Sass",
|
||||
"122"
|
||||
),
|
||||
createData(
|
||||
"Kristie Hall",
|
||||
"/images/user5.png",
|
||||
"@kristie7hall",
|
||||
"kristiehall@gmail.com",
|
||||
"React, Next.js & Sass",
|
||||
"360"
|
||||
),
|
||||
createData(
|
||||
"Bolton Obrien",
|
||||
"/images/user6.png",
|
||||
"@bolton4obrien",
|
||||
"boltonobrien@gmail.com",
|
||||
"Angular, HTML & Sass",
|
||||
"250"
|
||||
),
|
||||
createData(
|
||||
"Dee Alvarado",
|
||||
"/images/user7.png",
|
||||
"@dee3alvarado",
|
||||
"deealvarado@gmail.com",
|
||||
"React, Next.js & Sass",
|
||||
"140"
|
||||
),
|
||||
createData(
|
||||
"Cervantes Kramer",
|
||||
"/images/user8.png",
|
||||
"@cervantes4kramer",
|
||||
"cervantes4kramer@gmail.com",
|
||||
"Gatsby, React & Sass",
|
||||
"345"
|
||||
),
|
||||
createData(
|
||||
"Dejesus Michael",
|
||||
"/images/user9.png",
|
||||
"@dejesus1michael",
|
||||
"dejesusmichael@gmail.com",
|
||||
"React, Gatsby & Sass",
|
||||
"323"
|
||||
),
|
||||
createData(
|
||||
"Alissa Nelson",
|
||||
"/images/user10.png",
|
||||
"@alissa1nelson",
|
||||
"alissa1nelson@gmail.com",
|
||||
"React, Gatsby & Sass",
|
||||
"451"
|
||||
),
|
||||
createData(
|
||||
"Milton",
|
||||
"/images/user11.png",
|
||||
"@milton",
|
||||
"milton@gmail.com",
|
||||
"React, HTML & Sass",
|
||||
"432"
|
||||
),
|
||||
createData(
|
||||
"Claude",
|
||||
"/images/user12.png",
|
||||
"@claude",
|
||||
"claude@gmail.com",
|
||||
"React, Gatsby & Sass",
|
||||
"543"
|
||||
),
|
||||
createData(
|
||||
"Joshua",
|
||||
"/images/user13.png",
|
||||
"@joshua",
|
||||
"joshua@gmail.com",
|
||||
"React, Gatsby & Sass",
|
||||
"543"
|
||||
),
|
||||
createData(
|
||||
"Harvey",
|
||||
"/images/user14.png",
|
||||
"@harvey",
|
||||
"harvey@gmail.com",
|
||||
"React, Gatsby & Sass",
|
||||
"432"
|
||||
),
|
||||
createData(
|
||||
"Antonio",
|
||||
"/images/user15.png",
|
||||
"@antonio",
|
||||
"antonio@gmail.com",
|
||||
"React, Gatsby & Sass",
|
||||
"765"
|
||||
),
|
||||
createData(
|
||||
"Julian",
|
||||
"/images/user16.png",
|
||||
"@julian",
|
||||
"julian@gmail.com",
|
||||
"React, Gatsby & Sass",
|
||||
"678"
|
||||
),
|
||||
createData(
|
||||
"Harold",
|
||||
"/images/user17.png",
|
||||
"@harold",
|
||||
"harold@gmail.com",
|
||||
"React, Gatsby & Sass",
|
||||
"165"
|
||||
),
|
||||
createData(
|
||||
"Kingston",
|
||||
"/images/user18.png",
|
||||
"@kingston",
|
||||
"kingston@info.com",
|
||||
"React, Gatsby & Sass",
|
||||
"165"
|
||||
),
|
||||
].sort((a, b) => (a.name < b.name ? -1 : 1));
|
||||
|
||||
export default function MembersList() {
|
||||
// Table
|
||||
const [page, setPage] = React.useState(0);
|
||||
const [rowsPerPage, setRowsPerPage] = React.useState(10);
|
||||
|
||||
// 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);
|
||||
};
|
||||
|
||||
// Create new user modal
|
||||
const [open, setOpen] = React.useState(false);
|
||||
|
||||
const handleClickOpen = () => {
|
||||
setOpen(true);
|
||||
};
|
||||
const handleClose = () => {
|
||||
setOpen(false);
|
||||
};
|
||||
|
||||
const handleSubmit = (event) => {
|
||||
event.preventDefault();
|
||||
const data = new FormData(event.currentTarget);
|
||||
console.log({
|
||||
email: data.get("email"),
|
||||
password: data.get("password"),
|
||||
});
|
||||
};
|
||||
// End Add Task Modal
|
||||
|
||||
return (
|
||||
<>
|
||||
{/* Page title */}
|
||||
<div className={styles.pageTitle}>
|
||||
<h1>Member List</h1>
|
||||
<ul>
|
||||
<li>
|
||||
<Link href="/">Dashboard</Link>
|
||||
</li>
|
||||
<li>Member List</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<Card
|
||||
sx={{
|
||||
boxShadow: "none",
|
||||
borderRadius: "10px",
|
||||
p: "25px 20px 15px",
|
||||
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,
|
||||
}}
|
||||
>
|
||||
Users List
|
||||
</Typography>
|
||||
|
||||
<Button
|
||||
onClick={handleClickOpen}
|
||||
variant="contained"
|
||||
sx={{
|
||||
textTransform: "capitalize",
|
||||
borderRadius: "8px",
|
||||
fontWeight: "500",
|
||||
fontSize: "13px",
|
||||
padding: "12px 20px",
|
||||
color: "#fff !important",
|
||||
}}
|
||||
>
|
||||
<AddIcon
|
||||
sx={{ position: "relative", top: "-1px" }}
|
||||
className='mr-5px'
|
||||
/>{" "}
|
||||
Create New User
|
||||
</Button>
|
||||
</Box>
|
||||
|
||||
<TableContainer
|
||||
component={Paper}
|
||||
sx={{
|
||||
boxShadow: "none",
|
||||
}}
|
||||
>
|
||||
<Table
|
||||
sx={{ minWidth: 850 }}
|
||||
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
|
||||
align="center"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
|
||||
>
|
||||
Email
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
|
||||
>
|
||||
Tags
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
|
||||
>
|
||||
Projects
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="right"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
|
||||
>
|
||||
Action
|
||||
</TableCell>
|
||||
</TableRow>
|
||||
</TableHead>
|
||||
|
||||
<TableBody>
|
||||
{(rowsPerPage > 0
|
||||
? rows.slice(
|
||||
page * rowsPerPage,
|
||||
page * rowsPerPage + rowsPerPage
|
||||
)
|
||||
: rows
|
||||
).map((row) => (
|
||||
<TableRow key={row.name}>
|
||||
<TableCell
|
||||
style={{
|
||||
borderBottom: "1px solid #F7FAFF",
|
||||
paddingTop: "13px",
|
||||
paddingBottom: "13px",
|
||||
display: "flex",
|
||||
alignItems: "center",
|
||||
}}
|
||||
>
|
||||
<Checkbox {...label} size="small" />
|
||||
<Box
|
||||
sx={{
|
||||
display: "flex",
|
||||
alignItems: "center",
|
||||
}}
|
||||
className="ml-10px"
|
||||
>
|
||||
<img
|
||||
src={row.image}
|
||||
alt="User"
|
||||
width={40}
|
||||
height={40}
|
||||
className="borRadius100"
|
||||
/>
|
||||
<Box>
|
||||
<Typography
|
||||
as="h5"
|
||||
sx={{
|
||||
fontWeight: "500",
|
||||
fontSize: "13.5px",
|
||||
}}
|
||||
className='ml-10px'
|
||||
>
|
||||
{row.name}
|
||||
</Typography>
|
||||
|
||||
<Typography
|
||||
sx={{
|
||||
fontSize: "12px",
|
||||
color: "#A9A9C8",
|
||||
}}
|
||||
className='ml-10px'
|
||||
>
|
||||
{row.userName}
|
||||
</Typography>
|
||||
</Box>
|
||||
</Box>
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
style={{
|
||||
borderBottom: "1px solid #F7FAFF",
|
||||
fontSize: "13px",
|
||||
paddingTop: "13px",
|
||||
paddingBottom: "13px",
|
||||
}}
|
||||
>
|
||||
{row.email}
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
style={{
|
||||
borderBottom: "1px solid #F7FAFF",
|
||||
fontSize: "13px",
|
||||
paddingTop: "13px",
|
||||
paddingBottom: "13px",
|
||||
}}
|
||||
>
|
||||
{row.tags}
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
style={{
|
||||
borderBottom: "1px solid #F7FAFF",
|
||||
fontSize: "13px",
|
||||
paddingTop: "13px",
|
||||
paddingBottom: "13px",
|
||||
}}
|
||||
>
|
||||
{row.projects}
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="right"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF" }}
|
||||
>
|
||||
<Box
|
||||
sx={{
|
||||
display: "inline-block",
|
||||
}}
|
||||
>
|
||||
<Tooltip title="Remove" placement="top">
|
||||
<IconButton
|
||||
aria-label="remove"
|
||||
size="small"
|
||||
color="danger"
|
||||
className="danger"
|
||||
>
|
||||
<DeleteIcon fontSize="inherit" />
|
||||
</IconButton>
|
||||
</Tooltip>
|
||||
|
||||
<Tooltip title="Rename" placement="top">
|
||||
<IconButton
|
||||
aria-label="rename"
|
||||
size="small"
|
||||
color="primary"
|
||||
className="primary"
|
||||
>
|
||||
<DriveFileRenameOutlineIcon fontSize="inherit" />
|
||||
</IconButton>
|
||||
</Tooltip>
|
||||
</Box>
|
||||
</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={MembersLists}
|
||||
style={{ borderBottom: "none" }}
|
||||
/>
|
||||
</TableRow>
|
||||
</TableFooter>
|
||||
</Table>
|
||||
</TableContainer>
|
||||
</Card>
|
||||
|
||||
{/* Create new user modal */}
|
||||
<BootstrapDialog
|
||||
onClose={handleClose}
|
||||
aria-labelledby="customized-dialog-title"
|
||||
open={open}
|
||||
>
|
||||
<Box>
|
||||
<Box
|
||||
sx={{
|
||||
display: "flex",
|
||||
justifyContent: "space-between",
|
||||
alignItems: "center",
|
||||
background: "#EDEFF5",
|
||||
borderRadius: "8px",
|
||||
padding: "20px 20px",
|
||||
}}
|
||||
className="bg-black"
|
||||
>
|
||||
<Typography
|
||||
id="modal-modal-title"
|
||||
variant="h6"
|
||||
component="h2"
|
||||
sx={{
|
||||
fontWeight: "500",
|
||||
fontSize: "18px",
|
||||
}}
|
||||
>
|
||||
Create New User
|
||||
</Typography>
|
||||
|
||||
<IconButton
|
||||
aria-label="remove"
|
||||
size="small"
|
||||
onClick={handleClose}
|
||||
className="modal-close"
|
||||
>
|
||||
<ClearIcon />
|
||||
</IconButton>
|
||||
</Box>
|
||||
|
||||
<Box component="form" noValidate onSubmit={handleSubmit}>
|
||||
<Box
|
||||
sx={{
|
||||
background: "#fff",
|
||||
padding: "20px 20px",
|
||||
borderRadius: "8px",
|
||||
}}
|
||||
className="dark-BG-101010"
|
||||
>
|
||||
<Grid container alignItems="center" spacing={2}>
|
||||
<Grid item xs={12} md={12} lg={6}>
|
||||
<Typography
|
||||
as="h5"
|
||||
sx={{
|
||||
fontWeight: "500",
|
||||
fontSize: "14px",
|
||||
mb: "12px",
|
||||
}}
|
||||
>
|
||||
Image
|
||||
</Typography>
|
||||
|
||||
<TextField
|
||||
autoComplete="image"
|
||||
name="image"
|
||||
required
|
||||
fullWidth
|
||||
id="image"
|
||||
type="file"
|
||||
autoFocus
|
||||
InputProps={{
|
||||
style: { borderRadius: 8 },
|
||||
}}
|
||||
/>
|
||||
</Grid>
|
||||
|
||||
<Grid item xs={12} md={12} lg={6}>
|
||||
<Typography
|
||||
as="h5"
|
||||
sx={{
|
||||
fontWeight: "500",
|
||||
fontSize: "14px",
|
||||
mb: "12px",
|
||||
}}
|
||||
>
|
||||
Name
|
||||
</Typography>
|
||||
|
||||
<TextField
|
||||
autoComplete="name"
|
||||
name="name"
|
||||
required
|
||||
fullWidth
|
||||
id="name"
|
||||
label="Name"
|
||||
autoFocus
|
||||
InputProps={{
|
||||
style: { borderRadius: 8 },
|
||||
}}
|
||||
/>
|
||||
</Grid>
|
||||
|
||||
<Grid item xs={12} md={12} lg={6}>
|
||||
<Typography
|
||||
as="h5"
|
||||
sx={{
|
||||
fontWeight: "500",
|
||||
fontSize: "14px",
|
||||
mb: "12px",
|
||||
}}
|
||||
>
|
||||
User Name
|
||||
</Typography>
|
||||
|
||||
<TextField
|
||||
autoComplete="user-name"
|
||||
name="userName"
|
||||
required
|
||||
fullWidth
|
||||
id="userName"
|
||||
label="User Name"
|
||||
autoFocus
|
||||
InputProps={{
|
||||
style: { borderRadius: 8 },
|
||||
}}
|
||||
/>
|
||||
</Grid>
|
||||
|
||||
<Grid item xs={12} md={12} lg={6}>
|
||||
<Typography
|
||||
as="h5"
|
||||
sx={{
|
||||
fontWeight: "500",
|
||||
fontSize: "14px",
|
||||
mb: "12px",
|
||||
}}
|
||||
>
|
||||
Email
|
||||
</Typography>
|
||||
|
||||
<TextField
|
||||
autoComplete="email"
|
||||
name="email"
|
||||
required
|
||||
fullWidth
|
||||
id="email"
|
||||
label="example@info.com"
|
||||
autoFocus
|
||||
InputProps={{
|
||||
style: { borderRadius: 8 },
|
||||
}}
|
||||
/>
|
||||
</Grid>
|
||||
|
||||
<Grid item xs={12} md={12} lg={6}>
|
||||
<Typography
|
||||
as="h5"
|
||||
sx={{
|
||||
fontWeight: "500",
|
||||
fontSize: "14px",
|
||||
mb: "12px",
|
||||
}}
|
||||
>
|
||||
Tags
|
||||
</Typography>
|
||||
|
||||
<TextField
|
||||
autoComplete="tags"
|
||||
name="tags"
|
||||
required
|
||||
fullWidth
|
||||
id="tags"
|
||||
label="Tags"
|
||||
autoFocus
|
||||
InputProps={{
|
||||
style: { borderRadius: 8 },
|
||||
}}
|
||||
/>
|
||||
</Grid>
|
||||
|
||||
<Grid item xs={12} md={12} lg={6}>
|
||||
<Typography
|
||||
as="h5"
|
||||
sx={{
|
||||
fontWeight: "500",
|
||||
fontSize: "14px",
|
||||
mb: "12px",
|
||||
}}
|
||||
>
|
||||
Projects
|
||||
</Typography>
|
||||
|
||||
<TextField
|
||||
autoComplete="projects"
|
||||
name="projects"
|
||||
required
|
||||
fullWidth
|
||||
id="projects"
|
||||
label="Example 5"
|
||||
autoFocus
|
||||
InputProps={{
|
||||
style: { borderRadius: 8 },
|
||||
}}
|
||||
/>
|
||||
</Grid>
|
||||
|
||||
<Grid item xs={12} textAlign="end">
|
||||
<Button
|
||||
variant="contained"
|
||||
color="secondary"
|
||||
sx={{
|
||||
mt: 1,
|
||||
textTransform: "capitalize",
|
||||
borderRadius: "8px",
|
||||
fontWeight: "500",
|
||||
fontSize: "13px",
|
||||
padding: "12px 20px",
|
||||
color: "#fff !important"
|
||||
}}
|
||||
onClick={handleClose}
|
||||
className='mr-15px'
|
||||
>
|
||||
<ClearIcon
|
||||
sx={{
|
||||
position: "relative",
|
||||
top: "-1px",
|
||||
}}
|
||||
className='mr-3px'
|
||||
/>{" "}
|
||||
Cancel
|
||||
</Button>
|
||||
|
||||
<Button
|
||||
type="submit"
|
||||
variant="contained"
|
||||
sx={{
|
||||
mt: 1,
|
||||
textTransform: "capitalize",
|
||||
borderRadius: "8px",
|
||||
fontWeight: "500",
|
||||
fontSize: "13px",
|
||||
padding: "12px 20px",
|
||||
color: "#fff !important"
|
||||
}}
|
||||
>
|
||||
<AddIcon
|
||||
sx={{
|
||||
position: "relative",
|
||||
top: "-2px",
|
||||
}}
|
||||
className='mr-3px'
|
||||
/>{" "}
|
||||
Create New User
|
||||
</Button>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</Box>
|
||||
</Box>
|
||||
</Box>
|
||||
</BootstrapDialog>
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
import React from 'react';
|
||||
import Grid from "@mui/material/Grid";
|
||||
import ProfileInfo from '@/components/ContactList/ProfileInfo';
|
||||
import Features from '@/components/ContactList/Features';
|
||||
import PersonalInformation from '@/components/ContactList/PersonalInformation';
|
||||
import ActivityTimeline from '@/components/ContactList/ActivityTimeline';
|
||||
import Overview from '@/components/ContactList/Overview';
|
||||
import MyTasks from '@/components/ContactList/MyTasks';
|
||||
import styles from '@/styles/PageTitle.module.css'
|
||||
import Link from 'next/link';
|
||||
|
||||
export default function Profile() {
|
||||
return (
|
||||
<>
|
||||
{/* Page title */}
|
||||
<div className={styles.pageTitle}>
|
||||
<h1>Profile</h1>
|
||||
<ul>
|
||||
<li>
|
||||
<Link href="/">Dashboard</Link>
|
||||
</li>
|
||||
<li>Profile</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<Grid
|
||||
container
|
||||
rowSpacing={1}
|
||||
columnSpacing={{ xs: 1, sm: 1, md: 1, lg: 1, xl: 2 }}
|
||||
>
|
||||
<Grid item xs={12} md={12} lg={12} xl={4}>
|
||||
{/* ProfileInfo */}
|
||||
<ProfileInfo />
|
||||
|
||||
{/* Personal Information */}
|
||||
<PersonalInformation />
|
||||
|
||||
{/* ActivityTimeline */}
|
||||
<ActivityTimeline />
|
||||
</Grid>
|
||||
|
||||
<Grid item xs={12} md={12} lg={12} xl={8}>
|
||||
{/* Features */}
|
||||
<Features />
|
||||
|
||||
{/* Overview */}
|
||||
<Overview />
|
||||
|
||||
{/* MyTasks */}
|
||||
<MyTasks />
|
||||
</Grid>
|
||||
</Grid>
|
||||
</>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user