From d48216f308f00b40fa122cdaaa7d4f946706f14d Mon Sep 17 00:00:00 2001 From: franco sanchez Date: Tue, 3 Sep 2024 10:39:43 -0300 Subject: [PATCH] style: the favorites view is over for now --- src/assets/assets.ts | 3 + src/assets/emptyFavorites.svg | 1 + src/components/AllBooks.tsx | 11 +- src/components/ui/MyContainer.tsx | 18 ++++ src/hooks/queries.ts | 8 +- src/main.tsx | 9 +- src/pages/Book.tsx | 6 +- src/pages/Favorites.tsx | 160 ++++++++++++++++++++++-------- src/pages/Search.tsx | 10 +- src/pages/profile/Profile.tsx | 11 +- 10 files changed, 157 insertions(+), 80 deletions(-) create mode 100644 src/assets/emptyFavorites.svg create mode 100644 src/components/ui/MyContainer.tsx diff --git a/src/assets/assets.ts b/src/assets/assets.ts index ce2441c..8b1c3ad 100644 --- a/src/assets/assets.ts +++ b/src/assets/assets.ts @@ -12,6 +12,8 @@ const images = { 'https://res.cloudinary.com/xbu/image/upload/v1691664467/xbu_assets/page_not_found_rl8gve.svg', NoData: 'https://res.cloudinary.com/xbu/image/upload/v1708539494/xbu_assets/noData_gs71zg.svg', + emptyFavorites: + 'https://res.cloudinary.com/xbu/image/upload/v1725365540/xbu_assets/undraw_with_love_re_1q3m_yxcely.svg', }; export const { @@ -22,4 +24,5 @@ export const { PatternPadWhite, PageNotFound, NoData, + emptyFavorites, } = images; diff --git a/src/assets/emptyFavorites.svg b/src/assets/emptyFavorites.svg new file mode 100644 index 0000000..4502996 --- /dev/null +++ b/src/assets/emptyFavorites.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/components/AllBooks.tsx b/src/components/AllBooks.tsx index 5c31c37..befd7be 100644 --- a/src/components/AllBooks.tsx +++ b/src/components/AllBooks.tsx @@ -20,6 +20,7 @@ import { Aside } from '@components/aside/Aside'; import { SkeletonAllBooks } from '@components/skeletons/SkeletonABooks'; import { ResultLength } from '@components/aside/ResultLength'; import { MostViewed } from '@components/aside/MostViewed'; +import { MyContainer } from '@components/ui/MyContainer'; export function AllBooks() { const { ref, inView } = useInView(); @@ -75,13 +76,7 @@ export function AllBooks() { return ( <> - +