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