mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-24 05:07:06 +08:00
chore: adjust content
This commit is contained in:
@@ -9,6 +9,7 @@ import { Box, Button, Container, Grid, SvgIcon, Typography } from '@mui/joy';
|
|||||||
import GitHubIcon from '@mui/icons-material/GitHub';
|
import GitHubIcon from '@mui/icons-material/GitHub';
|
||||||
import RedditIcon from '@mui/icons-material/Reddit';
|
import RedditIcon from '@mui/icons-material/Reddit';
|
||||||
import TelegramIcon from '@mui/icons-material/Telegram';
|
import TelegramIcon from '@mui/icons-material/Telegram';
|
||||||
|
import { LogoIcon } from '@toeverything/components/icons';
|
||||||
// eslint-disable-next-line no-restricted-imports
|
// eslint-disable-next-line no-restricted-imports
|
||||||
import { useMediaQuery } from '@mui/material';
|
import { useMediaQuery } from '@mui/material';
|
||||||
|
|
||||||
@@ -203,9 +204,7 @@ const GitHub = (props: { center?: boolean; flat?: boolean }) => {
|
|||||||
return (
|
return (
|
||||||
<Button
|
<Button
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
window.location.replace(
|
window.open('https://github.com/toeverything/AFFiNE');
|
||||||
'https://github.com/toeverything/AFFiNE'
|
|
||||||
);
|
|
||||||
}}
|
}}
|
||||||
{...(props.flat ? { variant: 'plain' } : {})}
|
{...(props.flat ? { variant: 'plain' } : {})}
|
||||||
{...{
|
{...{
|
||||||
@@ -236,7 +235,50 @@ const GitHub = (props: { center?: boolean; flat?: boolean }) => {
|
|||||||
startIcon={<GitHubIcon />}
|
startIcon={<GitHubIcon />}
|
||||||
size="lg"
|
size="lg"
|
||||||
>
|
>
|
||||||
GitHub
|
Check GitHub
|
||||||
|
</Button>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
const AFFiNEOnline = (props: { center?: boolean; flat?: boolean }) => {
|
||||||
|
const matches = useMediaQuery('(max-width: 1024px)');
|
||||||
|
|
||||||
|
return (
|
||||||
|
<Button
|
||||||
|
onClick={() => {
|
||||||
|
window.open('https://livedemo.affine.pro/');
|
||||||
|
}}
|
||||||
|
{...(props.flat ? { variant: 'plain' } : {})}
|
||||||
|
{...{
|
||||||
|
sx: {
|
||||||
|
margin: 'auto 1em',
|
||||||
|
fontSize: '24px',
|
||||||
|
'@media (max-width: 1024px)': {
|
||||||
|
fontSize: '16px',
|
||||||
|
},
|
||||||
|
...(props.flat
|
||||||
|
? {
|
||||||
|
padding: matches ? '0' : '0 0.5em',
|
||||||
|
':hover': { backgroundColor: 'unset' },
|
||||||
|
}
|
||||||
|
: {}),
|
||||||
|
...(props.center
|
||||||
|
? {
|
||||||
|
padding: '0.5em 1em',
|
||||||
|
fontSize: '2em',
|
||||||
|
backgroundColor: '#000',
|
||||||
|
':hover': {
|
||||||
|
backgroundColor: '#0c60d9',
|
||||||
|
boxShadow: '2px 2px 20px #08f4',
|
||||||
|
},
|
||||||
|
}
|
||||||
|
: {}),
|
||||||
|
},
|
||||||
|
}}
|
||||||
|
startIcon={<LogoIcon />}
|
||||||
|
size="lg"
|
||||||
|
>
|
||||||
|
Try it Online
|
||||||
</Button>
|
</Button>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -258,7 +300,10 @@ export function App() {
|
|||||||
<Grid
|
<Grid
|
||||||
container
|
container
|
||||||
spacing={2}
|
spacing={2}
|
||||||
sx={{ maxWidth: '1280px', margin: 'auto' }}
|
sx={{
|
||||||
|
maxWidth: '1280px',
|
||||||
|
margin: 'auto',
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
<Grid xs={6}>
|
<Grid xs={6}>
|
||||||
<Button
|
<Button
|
||||||
@@ -283,9 +328,7 @@ export function App() {
|
|||||||
<GitHub flat />
|
<GitHub flat />
|
||||||
<Button
|
<Button
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
window.location.replace(
|
window.open('https://blog.affine.pro');
|
||||||
'https://blog.affine.pro'
|
|
||||||
);
|
|
||||||
}}
|
}}
|
||||||
variant="plain"
|
variant="plain"
|
||||||
sx={{
|
sx={{
|
||||||
@@ -407,10 +450,8 @@ export function App() {
|
|||||||
marginBottom: '12vh!important',
|
marginBottom: '12vh!important',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Typography level="h2" sx={{ alignSelf: 'center' }}>
|
|
||||||
Try it on
|
|
||||||
</Typography>
|
|
||||||
<GitHub center />
|
<GitHub center />
|
||||||
|
<AFFiNEOnline center />
|
||||||
</Box>
|
</Box>
|
||||||
</Grid>
|
</Grid>
|
||||||
<Grid
|
<Grid
|
||||||
@@ -447,7 +488,7 @@ export function App() {
|
|||||||
level={matches ? 'h2' : 'h1'}
|
level={matches ? 'h2' : 'h1'}
|
||||||
fontWeight={'bold'}
|
fontWeight={'bold'}
|
||||||
>
|
>
|
||||||
It’s not just add-up of Docs, whiteboard, and
|
It’s not just a collection of Docs, whiteboard, and
|
||||||
tables.
|
tables.
|
||||||
</Typography>
|
</Typography>
|
||||||
</Box>
|
</Box>
|
||||||
@@ -465,11 +506,11 @@ export function App() {
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Typography fontSize="1.2em">
|
<Typography fontSize="1.2em">
|
||||||
Transform any building blocks as you like.
|
Transform any building block as you like.
|
||||||
</Typography>
|
</Typography>
|
||||||
<Typography fontSize="1.2em">
|
<Typography fontSize="1.2em">
|
||||||
Say goodbye to redundancy, and keep all your
|
Say goodbye to redundancy. Store your data once, and
|
||||||
knowledge minimal, in your way.
|
keep your data as you like it.
|
||||||
</Typography>
|
</Typography>
|
||||||
</Box>
|
</Box>
|
||||||
</Grid>
|
</Grid>
|
||||||
@@ -512,15 +553,17 @@ export function App() {
|
|||||||
fontSize="1.2em"
|
fontSize="1.2em"
|
||||||
style={{ marginBottom: '0.25em' }}
|
style={{ marginBottom: '0.25em' }}
|
||||||
>
|
>
|
||||||
Docs, kanban, and databases are all fully
|
Docs, Kanbans, and Databases are all fully
|
||||||
functional at any place. You always keep
|
functional anywhere, anytime. A truly
|
||||||
what-you-see-is-what-you-get.
|
what-you-see-is-what-you-get environment for
|
||||||
|
your data.
|
||||||
</Typography>
|
</Typography>
|
||||||
<Typography
|
<Typography
|
||||||
fontSize="1.2em"
|
fontSize="1.2em"
|
||||||
style={{ marginBottom: '0.25em' }}
|
style={{ marginBottom: '0.25em' }}
|
||||||
>
|
>
|
||||||
All pages come with docs and whiteboard mode.
|
All pages come with a document (Paper Mode) and
|
||||||
|
whiteboard (Edgeless Mode) view.
|
||||||
</Typography>
|
</Typography>
|
||||||
</Box>
|
</Box>
|
||||||
</Grid>
|
</Grid>
|
||||||
@@ -588,21 +631,21 @@ export function App() {
|
|||||||
fontSize="1.2em"
|
fontSize="1.2em"
|
||||||
style={{ marginBottom: '0.25em' }}
|
style={{ marginBottom: '0.25em' }}
|
||||||
>
|
>
|
||||||
No more chaos between so many views.
|
No more chaos managing multiple views.
|
||||||
</Typography>
|
</Typography>
|
||||||
<Typography
|
<Typography
|
||||||
fontSize="1.2em"
|
fontSize="1.2em"
|
||||||
style={{ marginBottom: '0.25em' }}
|
style={{ marginBottom: '0.25em' }}
|
||||||
>
|
>
|
||||||
Set a TODO with Markdown, and manage it in
|
Set a TODO with Markdown, and seamlessly edit it
|
||||||
Kanban.
|
within a Kanban.
|
||||||
</Typography>
|
</Typography>
|
||||||
<Typography
|
<Typography
|
||||||
fontSize="1.2em"
|
fontSize="1.2em"
|
||||||
style={{ marginBottom: '0.25em' }}
|
style={{ marginBottom: '0.25em' }}
|
||||||
>
|
>
|
||||||
Managing multi-dimensional tables should be
|
Managing multi-dimensional tables should be this
|
||||||
simple as that.
|
simple – and now it is.
|
||||||
</Typography>
|
</Typography>
|
||||||
</Box>
|
</Box>
|
||||||
</Grid>
|
</Grid>
|
||||||
@@ -661,16 +704,20 @@ export function App() {
|
|||||||
fontSize="1.2em"
|
fontSize="1.2em"
|
||||||
style={{ marginBottom: '0.25em' }}
|
style={{ marginBottom: '0.25em' }}
|
||||||
>
|
>
|
||||||
We don’t like cloud lock-in. Your data is always
|
We don’t like being locked-in, and neither should
|
||||||
locally stored and secured, while you can still
|
you. Privacy is at the foundation of everything we
|
||||||
collaborate in real-time with others.
|
do, but it should not limit us that’s+ why there are
|
||||||
|
no compromises.
|
||||||
</Typography>
|
</Typography>
|
||||||
<Typography
|
<Typography
|
||||||
fontSize="1.2em"
|
fontSize="1.2em"
|
||||||
style={{ marginBottom: '0.25em' }}
|
style={{ marginBottom: '0.25em' }}
|
||||||
>
|
>
|
||||||
Privacy is the foundation of everything we do. But
|
Your data is yours; it is always locally stored and
|
||||||
it is no excuse for the bad experience.
|
secured - available to you always. While still being
|
||||||
|
able enjoy collaboration features such as real-time
|
||||||
|
editing and sharing with others, without any cloud
|
||||||
|
setup.
|
||||||
</Typography>
|
</Typography>
|
||||||
</Box>
|
</Box>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|||||||
Reference in New Issue
Block a user