diff --git a/packages/frontend/core/src/components/pure/workspace-slider-bar/favorite/empty-item.tsx b/packages/frontend/core/src/components/pure/workspace-slider-bar/favorite/empty-item.tsx index 0937b0cdaa..4098c74c01 100644 --- a/packages/frontend/core/src/components/pure/workspace-slider-bar/favorite/empty-item.tsx +++ b/packages/frontend/core/src/components/pure/workspace-slider-bar/favorite/empty-item.tsx @@ -1,10 +1,21 @@ -import { MenuItem } from '@affine/component/app-sidebar'; import { useAFFiNEI18N } from '@affine/i18n/hooks'; +import { FavoriteIcon } from '@blocksuite/icons'; +import * as styles from './styles.css'; export const EmptyItem = () => { const t = useAFFiNEI18N(); return ( - {t['Favorite pages for easy access']()} +
+
+ +
+
+ {t['com.affine.rootAppSidebar.favorites.empty']()} +
+
); }; diff --git a/packages/frontend/core/src/components/pure/workspace-slider-bar/favorite/styles.css.ts b/packages/frontend/core/src/components/pure/workspace-slider-bar/favorite/styles.css.ts index db163395a7..eacbe22dbb 100644 --- a/packages/frontend/core/src/components/pure/workspace-slider-bar/favorite/styles.css.ts +++ b/packages/frontend/core/src/components/pure/workspace-slider-bar/favorite/styles.css.ts @@ -143,3 +143,32 @@ globalStyle(`${menuItem} svg`, { globalStyle(`${menuItem}.danger:hover svg`, { color: 'var(--affine-error-color)', }); + +export const emptyFavouritesContent = style({ + display: 'flex', + flexDirection: 'column', + alignItems: 'center', + gap: 6, + padding: '9px 20px 25px 21px', +}); + +export const emptyFavouritesIconWrapper = style({ + width: 36, + height: 36, + display: 'flex', + alignItems: 'center', + justifyContent: 'center', + borderRadius: '50%', + backgroundColor: 'var(--affine-background-secondary-color)', +}); + +export const emptyFavouritesIcon = style({ + fontSize: 20, + color: 'var(--affine-icon-secondary)', +}); + +export const emptyFavouritesMessage = style({ + fontSize: 'var(--affine-font-sm)', + textAlign: 'center', + color: 'var(--affine-text-secondary-color)', +}); diff --git a/packages/frontend/i18n/src/resources/en.json b/packages/frontend/i18n/src/resources/en.json index 8bfa822cfc..c8ec783587 100644 --- a/packages/frontend/i18n/src/resources/en.json +++ b/packages/frontend/i18n/src/resources/en.json @@ -805,6 +805,7 @@ "com.affine.publicLinkDisableModal.title": "Disable Public Link", "com.affine.rootAppSidebar.collections": "Collections", "com.affine.rootAppSidebar.favorites": "Favourites", + "com.affine.rootAppSidebar.favorites.empty": "You can add documents to your favourites", "com.affine.rootAppSidebar.others": "Others", "com.affine.selectPage.empty": "Empty", "com.affine.selectPage.empty.tips": "No page titles contain <1>{{search}}",