2024-06-07 16:13:32 +05:00
|
|
|
import {
|
|
|
|
Add,
|
|
|
|
CalendarMonth,
|
|
|
|
Description,
|
2024-06-07 16:17:35 +05:00
|
|
|
PersonOutline,
|
|
|
|
Upload
|
2024-06-07 16:13:32 +05:00
|
|
|
} from '@mui/icons-material'
|
|
|
|
import { Box, Button, Typography } from '@mui/material'
|
2024-05-14 14:27:05 +05:00
|
|
|
import { useNavigate } from 'react-router-dom'
|
2024-06-07 16:13:32 +05:00
|
|
|
import { appPrivateRoutes } from '../../routes'
|
|
|
|
import styles from './style.module.scss'
|
2024-04-08 17:45:51 +05:00
|
|
|
|
|
|
|
export const HomePage = () => {
|
2024-05-14 14:27:05 +05:00
|
|
|
const navigate = useNavigate()
|
2024-04-08 17:45:51 +05:00
|
|
|
|
|
|
|
return (
|
2024-05-14 14:27:05 +05:00
|
|
|
<Box className={styles.container}>
|
2024-06-07 16:13:32 +05:00
|
|
|
<Box className={styles.header}>
|
|
|
|
<Typography variant="h3" className={styles.title}>
|
|
|
|
Sigits
|
|
|
|
</Typography>
|
|
|
|
<Box className={styles.actionButtons}>
|
|
|
|
<Button
|
|
|
|
variant="outlined"
|
2024-06-07 16:17:35 +05:00
|
|
|
startIcon={<Upload />}
|
2024-06-07 16:13:32 +05:00
|
|
|
onClick={() => navigate(appPrivateRoutes.sign)}
|
|
|
|
>
|
2024-06-07 16:17:35 +05:00
|
|
|
Upload
|
2024-06-07 16:13:32 +05:00
|
|
|
</Button>
|
|
|
|
<Button
|
|
|
|
variant="contained"
|
|
|
|
startIcon={<Add />}
|
|
|
|
onClick={() => navigate(appPrivateRoutes.create)}
|
|
|
|
>
|
|
|
|
Create
|
|
|
|
</Button>
|
|
|
|
</Box>
|
|
|
|
</Box>
|
|
|
|
<PlaceHolder />
|
|
|
|
<PlaceHolder />
|
|
|
|
<PlaceHolder />
|
|
|
|
</Box>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
const PlaceHolder = () => {
|
|
|
|
return (
|
|
|
|
<Box className={styles.submissions}>
|
|
|
|
<Box className={styles.item}>
|
|
|
|
<Box className={styles.titleBox}>
|
|
|
|
<Typography variant="body1" className={styles.titleBoxItem}>
|
|
|
|
<Description />
|
|
|
|
Title
|
|
|
|
</Typography>
|
|
|
|
<Typography variant="body2" className={styles.titleBoxItem}>
|
|
|
|
<PersonOutline />
|
|
|
|
Sigit
|
|
|
|
</Typography>
|
|
|
|
<Typography variant="body2" className={styles.titleBoxItem}>
|
|
|
|
<CalendarMonth />
|
|
|
|
07 Jun 10:23 AM
|
|
|
|
</Typography>
|
|
|
|
</Box>
|
|
|
|
<Box className={styles.signers}>
|
|
|
|
<Box className={styles.signerItem}>
|
|
|
|
<Typography variant="button" className={styles.status}>
|
|
|
|
Sent
|
|
|
|
</Typography>
|
|
|
|
<Typography variant="body1">placeholder@sigit.io</Typography>
|
|
|
|
</Box>
|
|
|
|
<Box className={styles.signerItem}>
|
|
|
|
<Typography variant="button" className={styles.status}>
|
|
|
|
Awaiting
|
|
|
|
</Typography>
|
|
|
|
<Typography variant="body1">placeholder@sigit.io</Typography>
|
|
|
|
</Box>
|
|
|
|
</Box>
|
|
|
|
</Box>
|
2024-05-14 14:27:05 +05:00
|
|
|
</Box>
|
2024-04-08 17:45:51 +05:00
|
|
|
)
|
|
|
|
}
|