diff --git a/apps/portal/src/pages/resumes/browse.tsx b/apps/portal/src/pages/resumes/browse.tsx index 0598b29c..5ebe06b8 100644 --- a/apps/portal/src/pages/resumes/browse.tsx +++ b/apps/portal/src/pages/resumes/browse.tsx @@ -1,9 +1,10 @@ import Head from 'next/head'; import { useRouter } from 'next/router'; import { useSession } from 'next-auth/react'; -import { useEffect, useState } from 'react'; -import { Disclosure } from '@headlessui/react'; -import { MinusIcon, PlusIcon } from '@heroicons/react/20/solid'; +import { Fragment, useEffect, useState } from 'react'; +import { Dialog, Disclosure, Transition } from '@headlessui/react'; +import { FunnelIcon, MinusIcon, PlusIcon } from '@heroicons/react/20/solid'; +import { XMarkIcon } from '@heroicons/react/24/outline'; import { MagnifyingGlassIcon, NewspaperIcon, @@ -95,6 +96,7 @@ export default function ResumeHomePage() { const [renderSignInButton, setRenderSignInButton] = useState(false); const [signInButtonText, setSignInButtonText] = useState(''); const [currentPage, setCurrentPage] = useState(1); + const [mobileFiltersOpen, setMobileFiltersOpen] = useState(false); const skip = (currentPage - 1) * PAGE_LIMIT; @@ -242,88 +244,51 @@ export default function ResumeHomePage() { Resume Review Portal -
-
- -
-
-
-
-
-

- Shortcuts: -

-
-
-
-
- -
-
-
-
- - -
-
- - {Object.entries(SORT_OPTIONS).map(([key, value]) => ( - - setSortOrder(key) - }> - ))} - -
-
- -
+ + {/* Mobile Filters */} +
+ + + +
+ + +
+ + +
+

+ Shortcuts +

+
-
-
-
-
-
-
-
-

Shortcuts

+
    {SHORTCUTS.map((shortcut) => (
  • @@ -335,18 +300,16 @@ export default function ResumeHomePage() {
  • ))}
-

- Explore these filters: -

+ {filters.map((filter) => ( + className="border-t border-gray-200 px-4 py-6"> {({ open }) => ( <> -

- +

+ {filter.label} @@ -365,12 +328,8 @@ export default function ResumeHomePage() {

- - + +
{filter.options.map((option) => (
))} - +
)} ))} + + +

+ + +
+ +
+
+ +
+ +
+
+

+ Shortcuts: +

+
+
+
    + {SHORTCUTS.map((shortcut) => ( +
  • + onShortcutChange(shortcut)} + /> +
  • + ))} +
+

+ Explore these filters: +

+ {filters.map((filter) => ( + + {({ open }) => ( + <> +

+ + + {filter.label} + + + {open ? ( + + +

+ + + {filter.options.map((option) => ( +
+ + onFilterCheckboxChange( + isChecked, + filter.id, + option.value, + ) + } + /> +
+ ))} +
+
+ + )} +
+ ))} +
+
+
+
+
+
+
+ +
+ +
+
-
- {renderSignInButton && ( - - )} - {getTabResumes().length === 0 ? ( -
- - {getEmptyDataText(tabsValue, searchValue, userFilters)} -
- ) : ( - <> - +
+
+ -
- setCurrentPage(page)} - /> -
- - )} + +
+
+ + {Object.entries(SORT_OPTIONS).map(([key, value]) => ( + setSortOrder(key)}> + ))} + +
+ + +
+ +
+
+ {renderSignInButton && ( + + )} + {getTabResumes().length === 0 ? ( +
+ + {getEmptyDataText(tabsValue, searchValue, userFilters)} +
+ ) : ( + <> + +
+ setCurrentPage(page)} + /> +
+ + )} +