-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSkeleton.tsx
78 lines (70 loc) · 1.79 KB
/
Skeleton.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
import React from 'react';
import { styled } from '@mui/material/styles';
import Grid from '@mui/material/Grid';
import Paper from '@mui/material/Paper';
import Typography from '@mui/material/Typography';
import Link from '@mui/material/Link';
const PREFIX = 'Skeleton';
const classes = {
root: `${PREFIX}-root`,
title: `${PREFIX}-title`,
text: `${PREFIX}-text`,
footer: `${PREFIX}-footer`,
footerCredit: `${PREFIX}-footer-credit`,
};
const StyledGrid = styled(Grid)(({ theme }) => ({
[`&.${classes.root}`]: {
paddingBottom: 20,
margin: 'auto',
[theme.breakpoints.up('sm')]: {
width: '420px',
},
},
[`& .${classes.title}`]: {
width: '100%',
paddingTop: 7,
paddingBottom: 7,
marginTop: 9,
marginBottom: 14,
boxSizing: 'content-box',
},
[`& .${classes.text}`]: {
marginLeft: 14,
},
[`& .${classes.footer}`]: {
margin: 14,
textAlign: 'center',
},
[`& .${classes.footerCredit}`]: {
marginTop: 10,
}
}));
function Skeleton(props) {
return (
<StyledGrid
className={classes.root}
container
direction='column'
justifyContent='center'
alignItems='center'
>
<Paper className={classes.title}>
<Typography variant='h5' component='h1' className={classes.text}>
Kalkulator Pesangon
</Typography>
</Paper>
{props.children}
<Typography variant='caption' component='p' className={classes.footer}>
Aplikasi ini mungkin tidak akurat dan tidak diperuntukan sebagai anjuran
hukum
<div className={classes.footerCredit}>
2021 - warisin -{' '}
<Link href='https://github.com/asendia/severance-pay'>
source code
</Link>
</div>
</Typography>
</StyledGrid>
);
}
export default Skeleton;