Skip to content

Commit

Permalink
feat(search-bar-freeze): resolves issue #380 (#566)
Browse files Browse the repository at this point in the history
* feat(search-bar-freeze): resolves issue #380

* style: improve

---------

Co-authored-by: ldeluigi <44567586+ldeluigi@users.noreply.github.com>
  • Loading branch information
yellingatcode and ldeluigi authored Oct 30, 2024
1 parent 6b1d95c commit 66835de
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/layout/PageWrapper/PageWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ const PageWrapper: React.FC<Props> = ({ children, noMarginFooter }: Props) => {
}

return (
<div className={`flex flex-col h-full`}>
<div className={`flex flex-col h-full ${!isHome ? styles.padtop : ''}`}>
<AnalyticsCookieBanner />
{!isHome && (
<div className={`bg-dark`}>
<div className={`bg-dark ${styles.locked}`}>
<nav className="container">
<SearchBar />
</nav>
Expand Down
13 changes: 13 additions & 0 deletions src/components/layout/PageWrapper/pageWrapper.module.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
.searchBarBorder {
height: 2px;
}

.locked{
position: fixed !important;
top: 0;
left: 0;
width: 100%;
z-index: 1000;

}

.padtop{
padding-top: 2.6em;
}

0 comments on commit 66835de

Please sign in to comment.