mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-11-22 18:42:48 +03:00
fix: adjust 404 page style (#4491)
This commit is contained in:
parent
127a84b4e1
commit
1bdc402b7b
@ -5,7 +5,11 @@ import { Button, IconButton } from '@toeverything/components/button';
|
||||
import { Tooltip } from '@toeverything/components/tooltip';
|
||||
|
||||
import { NotFoundPattern } from './not-found-pattern';
|
||||
import { notFoundPageContainer, wrapper } from './styles.css';
|
||||
import {
|
||||
largeButtonEffect,
|
||||
notFoundPageContainer,
|
||||
wrapper,
|
||||
} from './styles.css';
|
||||
|
||||
export interface NotFoundPageProps {
|
||||
user: {
|
||||
@ -29,12 +33,18 @@ export const NotFoundPage = ({
|
||||
<div className={wrapper}>
|
||||
<NotFoundPattern />
|
||||
</div>
|
||||
<p className={wrapper}>{t['404.hint']()}</p>
|
||||
<div className={wrapper}>
|
||||
<Button type="primary" size="extraLarge" onClick={onBack}>
|
||||
<Button
|
||||
type="primary"
|
||||
size="extraLarge"
|
||||
onClick={onBack}
|
||||
className={largeButtonEffect}
|
||||
>
|
||||
{t['404.back']()}
|
||||
</Button>
|
||||
</div>
|
||||
<p className={wrapper}>{t['404.hint']()}</p>
|
||||
|
||||
{user ? (
|
||||
<div className={wrapper}>
|
||||
<Avatar url={user.avatar} name={user.name} />
|
||||
|
@ -16,3 +16,6 @@ export const wrapper = style({
|
||||
justifyContent: 'center',
|
||||
margin: '24px auto 0',
|
||||
});
|
||||
export const largeButtonEffect = style({
|
||||
boxShadow: 'var(--affine-large-button-effect) !important',
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user