Skip to content

Commit

Permalink
Removed plus button from search page
Browse files Browse the repository at this point in the history
  • Loading branch information
luloxi committed Sep 28, 2024
1 parent 12c704b commit a8fe20a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion packages/nextjs/app/search/Search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const Search = () => {
{error && <p className="text-red-500 mb-4">{error}</p>}
<button
onClick={handleSearch}
className="btn btn-primary w-full border-0 bg-orange-600 rounded-lg text-white py-2 px-4"
className="btn btn-primary w-full border-0 bg-blue-600 rounded-lg text-white py-2 px-4"
>
Search
</button>
Expand Down
20 changes: 11 additions & 9 deletions packages/nextjs/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,16 @@ export const Footer = () => {

return (
<>
<div
className={`fixed bottom-16 lg:bottom-8 right-8 p-3 bg-blue-600 cursor-pointer hover:bg-blue-800 text-white rounded-full shadow-lg ${
showPlusIcon ? "animate-show" : "animate-hide"
}`}
onClick={openModal}
>
<PlusIcon className="h-10 w-10" />
</div>
{pathname !== "/search" && (
<div
className={`fixed bottom-16 lg:bottom-8 right-8 p-3 bg-blue-600 cursor-pointer hover:bg-blue-800 text-white rounded-full shadow-lg ${
showPlusIcon ? "animate-show" : "animate-hide"
}`}
onClick={openModal}
>
<PlusIcon className="h-10 w-10" />
</div>
)}

{isModalOpen && (
<Modal isOpen={isModalOpen} onClose={closeModal}>
Expand Down Expand Up @@ -94,7 +96,7 @@ export const Footer = () => {

<Link href="/search" passHref>
<MagnifyingGlassIcon
className={`h-6 w-6 ${pathname === "/search" ? "text-blue-600" : "hover:text-blue-600"}`}
className={`h-6 w-6 text-red-600 ${pathname === "/search" ? "text-blue-600" : "hover:text-blue-600"}`}
/>
</Link>

Expand Down

0 comments on commit a8fe20a

Please sign in to comment.