/
index.page.tsx
83 lines (76 loc) · 2.3 KB
/
index.page.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
79
80
81
82
83
import { Card, CardContent, Grid } from '@material-ui/core'
import { createStyles, withStyles, type Theme, type WithStyles } from '@material-ui/core/styles'
import Head from 'next/head'
import { IconContext } from 'react-icons'
import { FaTwitterSquare } from 'react-icons/fa'
import { GoMarkGithub } from 'react-icons/go'
import PageTitleWrapper from '@/components/atoms/PageTitleWrapper'
import { MIN_TABLET_SIZE } from '@/styles/StyleConstants'
import BasicLayout from '../../components/templates/BasicLayout'
import type { NextPageWithLayout } from '../_app.page'
const GITHUB_URL = 'https://github.com/roottool' as const
const TWITTER_URL = 'https://twitter.com/roottool' as const
const About = ({ classes: { card, contents } }: WithStyles<typeof styleSettings>) => (
<main>
<PageTitleWrapper>About</PageTitleWrapper>
<Card className={card}>
<CardContent>
<Grid container className={contents} spacing={8}>
<Grid item xs={6}>
Name
</Grid>
<Grid item xs={6}>
roottool
</Grid>
<Grid item xs={6}>
Birthday
</Grid>
<Grid item xs={6}>
1990/8/15
</Grid>
<Grid item xs={6}>
<a href={GITHUB_URL}>
<IconContext.Provider value={{ size: '3em' }}>
<GoMarkGithub />
</IconContext.Provider>
</a>
</Grid>
<Grid item xs={6}>
<a href={TWITTER_URL}>
<IconContext.Provider value={{ size: '3em' }}>
<FaTwitterSquare />
</IconContext.Provider>
</a>
</Grid>
</Grid>
</CardContent>
</Card>
</main>
)
const styleSettings = (theme: Theme) =>
createStyles({
card: {
margin: '5vh auto',
[theme.breakpoints.down(MIN_TABLET_SIZE)]: {
width: '90%',
},
[theme.breakpoints.up(MIN_TABLET_SIZE)]: {
width: '60%',
},
},
contents: {
fontSize: '1.5rem',
textAlign: 'center',
},
})
const StyledAbout = withStyles(styleSettings)(About)
const Container: NextPageWithLayout = () => (
<>
<Head>
<title>About - roottool's Portfolio Site</title>
</Head>
<StyledAbout />
</>
)
Container.getLayout = BasicLayout
export default Container