-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Begin Rework Search Filter + Bar, Adjust Styles on Header * Change Cycle/WorkModel to dropdowns + add search button since shi is broke * Search bar changes * Lint... * Lint again.. * No Results Component * Search Filters Populate Based on URL Search Params * Rishi micromanaging (jk) * Home page reroutes to roles * Loading Page Updates * Jank solution to reset select * Lint * Linting + Toast Issue * Lint... * Prettier Fix * how to center a div?
- Loading branch information
Showing
6 changed files
with
80 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import Image from "next/image"; | ||
|
||
interface CooperLogoProps { | ||
width?: number; | ||
} | ||
|
||
export default function CooperLogo({ width }: CooperLogoProps) { | ||
return ( | ||
<Image | ||
src="/svg/hidingLogo.svg" | ||
width={width ?? 137} | ||
height={width ? width / 2.28 : 60} // 2.28 is the approximate ratio in the hidingLogo.svg file | ||
alt="Logo Picture" | ||
/> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import CooperLogo from "./cooper-logo"; | ||
|
||
export default function LoadingResults() { | ||
return ( | ||
<section className="flex h-[50dvh] w-full flex-col items-center justify-center"> | ||
<CooperLogo width={200} /> | ||
<div className="rounded-lg border-2 border-cooper-blue-600 px-16 pb-4 pt-6 text-xl font-bold text-cooper-blue-700"> | ||
<h2 className="">Loading ...</h2> | ||
</div> | ||
</section> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
"use client"; | ||
|
||
import { usePathname, useRouter } from "next/navigation"; | ||
|
||
import { Button } from "@cooper/ui/button"; | ||
|
||
import CooperLogo from "./cooper-logo"; | ||
|
||
export default function NoResults() { | ||
const router = useRouter(); | ||
const pathname = usePathname(); | ||
|
||
function clearFilters() { | ||
router.push(pathname); | ||
} | ||
|
||
return ( | ||
<section className="flex h-[50dvh] w-full flex-col items-center justify-center"> | ||
<CooperLogo width={200} /> | ||
<div className="flex flex-col items-center rounded-lg border-2 border-cooper-blue-600 px-16 pb-4 pt-6 text-xl font-bold"> | ||
<h2 className="text-cooper-blue-700">No Results Found</h2> | ||
<Button | ||
type="button" | ||
variant="ghost" | ||
onClick={clearFilters} | ||
className="text-cooper-blue-600" | ||
> | ||
Clear Filters | ||
</Button> | ||
</div> | ||
</section> | ||
); | ||
} |