mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-19 02:56:23 +08:00
111 lines
3.9 KiB
TypeScript
111 lines
3.9 KiB
TypeScript
import { useTranslation } from 'react-i18next';
|
|
import { useNavigate } from 'react-router-dom';
|
|
|
|
import { Box, Grid, Typography } from '@mui/joy';
|
|
// eslint-disable-next-line no-restricted-imports
|
|
import { useMediaQuery } from '@mui/material';
|
|
import 'github-markdown-css';
|
|
import AboutText from './about.mdx';
|
|
import { AFFiNEFooter, AFFiNEHeader, AFFiNEImage } from './Common';
|
|
import KeepUpdate from './keeupdate.png';
|
|
export const AboutUs = () => {
|
|
const matches = useMediaQuery('(max-width: 1024px)');
|
|
const navigate = useNavigate();
|
|
const { i18n } = useTranslation();
|
|
|
|
const changeLanguage = (event: any) => {
|
|
i18n.changeLanguage(event);
|
|
};
|
|
return (
|
|
<>
|
|
<AFFiNEHeader />
|
|
<Grid xs={12} sx={{ display: 'flex', marginTop: '4vh!important' }}>
|
|
<Box
|
|
sx={{
|
|
display: 'inline-flex',
|
|
flexWrap: 'wrap',
|
|
justifyContent: 'center',
|
|
margin: 'auto',
|
|
fontWeight: 'bold',
|
|
textAlign: 'center',
|
|
}}
|
|
>
|
|
<Typography
|
|
fontSize="64px"
|
|
fontWeight={900}
|
|
sx={{
|
|
marginRight: '0.25em',
|
|
'@media (max-width: 1024px)': {
|
|
fontSize: '32px',
|
|
marginRight: 0,
|
|
},
|
|
}}
|
|
>
|
|
To Shape, not to adapt.
|
|
</Typography>
|
|
</Box>
|
|
</Grid>
|
|
<Grid xs={12} sx={{ display: 'flex' }}>
|
|
<Box
|
|
sx={{
|
|
display: 'flex',
|
|
flexWrap: 'wrap',
|
|
justifyContent: 'center',
|
|
margin: 'auto',
|
|
textAlign: 'center',
|
|
}}
|
|
>
|
|
<Typography
|
|
level="h3"
|
|
fontSize="24px"
|
|
fontWeight={'400'}
|
|
sx={{
|
|
color: '#888',
|
|
'@media (max-width: 1024px)': {
|
|
fontSize: '16px',
|
|
marginRight: 0,
|
|
},
|
|
}}
|
|
>
|
|
Deliver Building Blocks for Future SaaS Applications.
|
|
</Typography>
|
|
</Box>
|
|
</Grid>
|
|
<Grid xs={12} sx={{ display: 'flex', justifyContent: 'center' }}>
|
|
<Box
|
|
component="article"
|
|
className="markdown-body"
|
|
sx={{
|
|
minWidth: '200px',
|
|
maxWidth: '720px',
|
|
}}
|
|
>
|
|
<AboutText />
|
|
</Box>
|
|
</Grid>
|
|
<Grid xs={12} sx={{ display: 'flex', justifyContent: 'center' }}>
|
|
<Box
|
|
component="article"
|
|
className="markdown-body"
|
|
sx={{
|
|
minWidth: '200px',
|
|
maxWidth: '720px',
|
|
}}
|
|
>
|
|
<AFFiNEImage
|
|
src={KeepUpdate}
|
|
alt="AFFiNE keep update"
|
|
sx={{ cursor: 'pointer' }}
|
|
onClick={() =>
|
|
window.open(
|
|
'https://github.com/toeverything/AFFiNE'
|
|
)
|
|
}
|
|
/>
|
|
</Box>
|
|
</Grid>
|
|
<AFFiNEFooter keepupdate={false} />
|
|
</>
|
|
);
|
|
};
|