-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample.jsx
50 lines (47 loc) · 2.01 KB
/
example.jsx
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
import { Container, Card, Typography, CardContent, Box, Grid } from '@mui/material';
import { grey } from '@mui/material/colors';
import { SnippetCard } from '../components';
export const HomePage = () => {
return (
<Container maxWidth="lg">
<Grid container spacing={4} my={4}>
<Grid item>
<Box sx={{ maxWidth: 'sm' }}>
<Typography component='h2' variant="h3" sx={{ fontWeight: 'bold' }}>
Write once, paste everywhere
</Typography>
<Typography sx={{ fontSize: 20, color: grey[600] }}>
Find, copy and use your ideas everywhere. This is a "snippet" manager or clipboard to keep your most used code at your fingertips.
</Typography>
</Box>
</Grid>
<Grid item>
<SnippetCard
id={0}
title='FizzBuzz'
body={`const fizzBuzz = number => {}`}
syntax='javascript'
updatedAt='2022-05-04 05:23:19.231+00'
userId={NaN}
details={false}
/>
</Grid>
<Grid item>
<Card sx={{ width: 345 }}>
<CardContent>
<Typography component='h2' variant="h4">
Snippet
</Typography>
<Typography component='h2' variant="h5" sx={{ color: 'primary.main' }}>
/ˈsnɪpɪt/
</Typography>
<Typography>
A short reusable piece of code
</Typography>
</CardContent>
</Card>
</Grid>
</Grid>
</Container>
);
};