Skip to content

Commit

Permalink
feat: add about page contents and styles
Browse files Browse the repository at this point in the history
  • Loading branch information
HRemonen committed Apr 12, 2024
1 parent 7604934 commit 0317f09
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 11 deletions.
85 changes: 76 additions & 9 deletions src/client/pages/About/About.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,78 @@
const About = () => (
<div>
<h1>About</h1>
<p>
This is a simple example of a React application with server-side
rendering.
</p>
</div>
)
import { useTranslation } from 'react-i18next'
import { Box, Typography } from '@mui/material'

import SectionHeading from '../../components/Common/SectionHeading'

const About = () => {
const { t } = useTranslation()

const styles = {
section: {
my: { xs: 8, md: 24 },
},
sectionHeading: {
fontFamily: 'Georgia',
fontSize: { xs: '1.5rem', md: '2rem', lg: '2.5rem' },
letterSpacing: '-0.02rem',
fontWeight: 400,
mt: 2,
},
}

return (
<Box
component='section'
sx={{ maxWidth: '1024px', m: { xs: 1, sm: 2, md: 8, lg: 12 } }}
>
<Box
component='section'
sx={{
my: 8,
display: { md: 'flex' },
alignItems: 'center',
gap: { md: 8, lg: 24 },
}}
>
<SectionHeading
level='h1'
sx={{ fontSize: { xs: '28pt', sm: '32pt', md: '38pt', lg: '48pt' } }}
>
{t('about:mainHeading')}
</SectionHeading>
<Typography variant='body1'>{t('about:mainContent')}</Typography>
</Box>

<Box
component='section'
sx={{ borderTop: '1px solid', ...styles.section }}
>
<SectionHeading level='h2' sx={styles.sectionHeading}>
{t('about:journeyHeading')}
</SectionHeading>
<Typography variant='body1' color='text.secondary'>
{t('about:journeyContent')}
</Typography>
</Box>

<Box component='section' sx={styles.section}>
<SectionHeading level='h2' sx={styles.sectionHeading}>
{t('about:visionHeading')}
</SectionHeading>
<Typography variant='body1' color='text.secondary'>
{t('about:visionContent')}
</Typography>
</Box>

<Box component='section' sx={styles.section}>
<SectionHeading level='h2' sx={styles.sectionHeading}>
{t('about:futureHeading')}
</SectionHeading>
<Typography variant='body1' color='text.secondary'>
{t('about:futureContent')}
</Typography>
</Box>
</Box>
)
}

export default About
6 changes: 4 additions & 2 deletions src/client/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,12 @@ declare module '@mui/material/styles' {
const themeOptions: ThemeOptions = {
typography: {
fontFamily: [
'"Open Sans"',
'"Helvetica"',
'"Inter"',
'"Helvetica Neue"',
'"Roboto"',
'"Arial"',
'"sans-serif"',
'"Georgia"',
'"Apple Color Emoji"',
'"Segoe UI Emoji"',
'"Segoe UI Symbol"',
Expand Down

0 comments on commit 0317f09

Please sign in to comment.