diff --git a/public/assets/images/cover.png b/public/assets/images/cover.png new file mode 100644 index 0000000..0ccebb5 Binary files /dev/null and b/public/assets/images/cover.png differ diff --git a/public/index.html b/public/index.html index 8663bb0..084df5a 100644 --- a/public/index.html +++ b/public/index.html @@ -63,5 +63,9 @@ To begin the development, run `npm start` or `yarn start`. To create a production bundle, use `npm run build` or `yarn build`. --> + diff --git a/src/features/Projects/Components/Categories/Categories.tsx b/src/features/Projects/Components/Categories/Categories.tsx index b103d13..045ba50 100644 --- a/src/features/Projects/Components/Categories/Categories.tsx +++ b/src/features/Projects/Components/Categories/Categories.tsx @@ -48,8 +48,8 @@ export default function Categories(props: Props) { const sortedByAppsCount = [...data.categoryList!].filter(v => !!v?.projectsCount).sort((a, b) => Number(b?.projectsCount!) - Number(a?.projectsCount!)) - return ( + return (
@@ -58,22 +58,26 @@ export default function Categories(props: Props) { props.onChange?.(null) }} className={` - flex flex-col font-medium hover:bg-gray-100 active:bg-gray-200 rounded-t-8 px-16 py-16 min-w-max + text-center flex flex-wrap gap-8 flex-col justify-end font-medium hover:bg-gray-100 active:bg-gray-200 rounded-t-8 px-16 py-16 min-w-max ${props.value === null ? "text-primary-500 border-b-2 border-primary-500" : "text-gray-500"} `} >{props.filtersActive ? "Search results" : "All projects"} - {sortedByAppsCount.map((category, idx) => - + > {category!.name} ({category?.projectsCount!}) + } )}
diff --git a/src/features/Projects/pages/ExplorePage/ExplorePage.tsx b/src/features/Projects/pages/ExplorePage/ExplorePage.tsx index 98964d3..08c912f 100644 --- a/src/features/Projects/pages/ExplorePage/ExplorePage.tsx +++ b/src/features/Projects/pages/ExplorePage/ExplorePage.tsx @@ -40,7 +40,6 @@ export default function ExplorePage() { useUpdateUrlWithFilters(filters) - // useQueryState(removeEmptyFitlers(filters ?? {})); const { queryFilters, hasSearchFilters } = useMemo(() => { let filter: QueryFilter = {} @@ -88,7 +87,7 @@ export default function ExplorePage() { notifyOnNetworkStatusChange: true, onCompleted: data => { if ((data.projects?.length ?? 0) < PAGE_SIZE) setCanFetchMore(false); - } + }, }); @@ -156,10 +155,10 @@ export default function ExplorePage() { {`Lightning Landscape`} -
-
+
+
selectCategoryTab(v)} />
-
- p !== null) as any[] ?? []} - /> - {canLoadMore &&
- -
} -
+
+
+ p !== null) as any[] ?? []} + /> + {canLoadMore &&
+ +
}
) diff --git a/src/features/Projects/pages/ExplorePage/Header/Header.tsx b/src/features/Projects/pages/ExplorePage/Header/Header.tsx index 192511d..b3a23ce 100644 --- a/src/features/Projects/pages/ExplorePage/Header/Header.tsx +++ b/src/features/Projects/pages/ExplorePage/Header/Header.tsx @@ -20,8 +20,8 @@ export default function Header(props: Props) { return (
- {/* */} - {/*
*/} + + {/*
*/} {/*