Skip to content

Commit

Permalink
fix: realocate filter element
Browse files Browse the repository at this point in the history
  • Loading branch information
zerinoid committed Jul 6, 2023
1 parent 44cfb97 commit cea2918
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,23 @@ const Home: NextPageWithLayout = () => {
};

return (
<section className={styles.main}>
<button
className="fixed top-2 left-2 z-10 md:hidden"
onClick={() => setIsFilterOpen(isOpen => !isOpen)}
>
<FontAwesomeIcon icon={icon} size="xl" />
</button>
<h1 className={styles.title}>Search and Filter</h1>
<>
<Filter
isOpen={isFilterOpen}
searchText={searchText}
handleSearchTextChange={handleSearchTextChange}
/>
<Gallery />
</section>
<section className={styles.main}>
<button
className="fixed top-2 left-2 z-10 md:hidden"
onClick={() => setIsFilterOpen(isOpen => !isOpen)}
>
<FontAwesomeIcon icon={icon} size="xl" />
</button>
<h1 className={styles.title}>Search and Filter</h1>
<Gallery />
</section>
</>
);
};

Expand Down

0 comments on commit cea2918

Please sign in to comment.