Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix: adjust 404 page style (#4491)

JimmFly1bdc402b7bf6
diff --git a/packages/component/src/components/not-found-page/not-found-page.tsx b/packages/component/src/components/not-found-page/not-found-page.tsx
index 23bcd14508..fe3aa2cc00 100644
--- a/packages/component/src/components/not-found-page/not-found-page.tsx
+++ b/packages/component/src/components/not-found-page/not-found-page.tsx
@@ -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} />
diff --git a/packages/component/src/components/not-found-page/styles.css.ts b/packages/component/src/components/not-found-page/styles.css.ts
index bc2a0b76db..c1f4467c34 100644
--- a/packages/component/src/components/not-found-page/styles.css.ts
+++ b/packages/component/src/components/not-found-page/styles.css.ts
@@ -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',
+});