diff --git a/apps/web/public/imgs/invite-error.svg b/apps/web/public/imgs/invite-error.svg
new file mode 100644
index 000000000..8fb22e4ae
--- /dev/null
+++ b/apps/web/public/imgs/invite-error.svg
@@ -0,0 +1,123 @@
+
diff --git a/apps/web/public/imgs/invite-success.svg b/apps/web/public/imgs/invite-success.svg
new file mode 100644
index 000000000..93c3f8f27
--- /dev/null
+++ b/apps/web/public/imgs/invite-success.svg
@@ -0,0 +1,58 @@
+
diff --git a/apps/web/public/variable.css b/apps/web/public/variable.css
deleted file mode 100644
index bba6bedc4..000000000
--- a/apps/web/public/variable.css
+++ /dev/null
@@ -1,22 +0,0 @@
-/*:root {*/
-/* --affine-primary-color: #3a4c5c;*/
-/* --affine-muted-color: #a6abb7;*/
-/* --affine-highlight-color: #6880ff;*/
-/* --affine-placeholder-color: #c7c7c7;*/
-/* --affine-selected-color: rgba(104, 128, 255, 0.1);*/
-
-/* --affine-font-family: Avenir Next, apple-system, BlinkMacSystemFont,*/
-/* Helvetica Neue, Tahoma, PingFang SC, Microsoft Yahei, Arial,*/
-/* Hiragino Sans GB, sans-serif, Apple Color Emoji, Segoe UI Emoji,*/
-/* Segoe UI Symbol, Noto Color Emoji;*/
-
-/* --affine-font-family2: Roboto Mono, apple-system, BlinkMacSystemFont,*/
-/* Helvetica Neue, Tahoma, PingFang SC, Microsoft Yahei, Arial,*/
-/* Hiragino Sans GB, sans-serif, Apple Color Emoji, Segoe UI Emoji,*/
-/* Segoe UI Symbol, Noto Color Emoji;*/
-/*}*/
-
-/*:root {*/
-/* --page-background-color: #fff;*/
-/* --page-text-color: #3a4c5c;*/
-/*}*/
diff --git a/apps/web/src/components/404/index.tsx b/apps/web/src/components/404/index.tsx
index 270c7ed78..c4b0aa31e 100644
--- a/apps/web/src/components/404/index.tsx
+++ b/apps/web/src/components/404/index.tsx
@@ -1,26 +1,28 @@
import { Button } from '@affine/component';
import { useTranslation } from '@affine/i18n';
+import Image from 'next/image';
import { useRouter } from 'next/router';
-import { NotFoundTitle, PageContainer } from './styles';
+import ErrorImg from '../../../public/imgs/invite-error.svg';
+import { StyledContainer } from './styles';
+
export const NotfoundPage = () => {
const { t } = useTranslation();
const router = useRouter();
return (
-
-
- {t('404 - Page Not Found')}
-
-
-
-
-
+
+
+
+ {t('404 - Page Not Found')}
+
+
);
};
diff --git a/apps/web/src/components/404/styles.ts b/apps/web/src/components/404/styles.ts
index 4e0bd9b64..c69fe45e7 100644
--- a/apps/web/src/components/404/styles.ts
+++ b/apps/web/src/components/404/styles.ts
@@ -1,21 +1,19 @@
-import { styled } from '@affine/component';
+import { displayFlex, styled } from '@affine/component';
-export const PageContainer = styled('div')(({ theme }) => {
+export const StyledContainer = styled.div(() => {
return {
- width: '100%',
- height: 'calc(100vh)',
- backgroundColor: theme.colors.pageBackground,
- };
-});
-
-export const NotFoundTitle = styled('h1')(({ theme }) => {
- return {
- position: 'relative',
- top: 'calc(50% - 100px)',
- height: '100px',
- fontSize: '60px',
- lineHeight: '100px',
- color: theme.colors.textColor,
- textAlign: 'center',
+ ...displayFlex('center', 'center'),
+ flexDirection: 'column',
+ height: '100vh',
+
+ img: {
+ width: '360px',
+ height: '270px',
+ },
+ p: {
+ fontSize: '22px',
+ fontWeight: 600,
+ margin: '24px 0',
+ },
};
});
diff --git a/apps/web/src/components/page-list/Empty.tsx b/apps/web/src/components/page-list/Empty.tsx
index 2cea45390..16008e54d 100644
--- a/apps/web/src/components/page-list/Empty.tsx
+++ b/apps/web/src/components/page-list/Empty.tsx
@@ -4,16 +4,22 @@ import React from 'react';
export const PageListEmpty = (props: { listType?: string }) => {
const { listType } = props;
const { t } = useTranslation();
+
+ const getEmptyDescription = () => {
+ if (listType === 'all') {
+ return t('emptyAllPages');
+ }
+ if (listType === 'favorite') {
+ return t('emptyFavorite');
+ }
+ if (listType === 'trash') {
+ return t('emptyTrash');
+ }
+ };
+
return (
-
-
- {listType === 'all' &&
{t('emptyAllPages')}
}
- {listType === 'favorite' &&
{t('emptyFavorite')}
}
- {listType === 'trash' &&
{t('emptyTrash')}
}
+
+
);
};
diff --git a/apps/web/src/components/quick-search/NoResultSVG.tsx b/apps/web/src/components/quick-search/NoResultSVG.tsx
index 16aabb73d..aa546549a 100644
--- a/apps/web/src/components/quick-search/NoResultSVG.tsx
+++ b/apps/web/src/components/quick-search/NoResultSVG.tsx
@@ -1,95 +1,72 @@
export const NoResultSVG = () => {
return (
);
};
diff --git a/apps/web/src/components/quick-search/style.ts b/apps/web/src/components/quick-search/style.ts
index 86870c5b3..6e39cd0fa 100644
--- a/apps/web/src/components/quick-search/style.ts
+++ b/apps/web/src/components/quick-search/style.ts
@@ -49,7 +49,7 @@ export const StyledNotFound = styled('div')(({ theme }) => {
'>svg': {
marginTop: '10px',
- fontSize: '150px',
+ height: '200px',
},
};
});
diff --git a/apps/web/src/components/workspace-setting/ExportPage.tsx b/apps/web/src/components/workspace-setting/ExportPage.tsx
index 0df5a9bad..a9f18c013 100644
--- a/apps/web/src/components/workspace-setting/ExportPage.tsx
+++ b/apps/web/src/components/workspace-setting/ExportPage.tsx
@@ -7,7 +7,7 @@ export const ExportPage = ({ workspace }: { workspace: WorkspaceUnit }) => {
console.log(workspace);
return (
<>
-
{t('Export Description')}
+
{t('Export Description')}
diff --git a/apps/web/src/components/workspace-setting/PublishPage.tsx b/apps/web/src/components/workspace-setting/PublishPage.tsx
index 88c8975e5..982ad5ade 100644
--- a/apps/web/src/components/workspace-setting/PublishPage.tsx
+++ b/apps/web/src/components/workspace-setting/PublishPage.tsx
@@ -32,7 +32,7 @@ export const PublishPage = ({ workspace }: { workspace: WorkspaceUnit }) => {
if (workspace.published) {
return (
<>
-
{t('Published Description')}
+
{t('Published Description')}
{t('Share with link')}
@@ -66,7 +66,7 @@ export const PublishPage = ({ workspace }: { workspace: WorkspaceUnit }) => {
return (
<>
- {t('Publishing Description')}
+ {t('Publishing Description')}