Skip to content

Commit

Permalink
Merge pull request #71 from PraveenUppar/search-bar-changes
Browse files Browse the repository at this point in the history
Updated search bar making it visible and aligned with the web design
  • Loading branch information
dhairyagothi authored Oct 7, 2024
2 parents dc3941a + b3b4394 commit 357911c
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions frontend/src/Pages/hamburger.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,25 +121,22 @@ const SearchContainer = styled.div`
position: fixed;
top: 10px;
right: 10px;
background-color: rgba(0, 0, 0, 0.5);
border-radius: 25px;
padding: 5px 10px;
transition: width 0.4s ease;
background-color: rgba(255, 255, 255, 0.5);
border-radius: 25px;
padding: 5px 10px;
`;

const SearchInput = styled.input`
display: block;
padding: 8px;
margin-left: 10px;
border: 2px solid rgb(59 130 246);
border-radius: 5px;
width: ${({ show }) => (show ? '200px' : '0px')};
transition: width 0.4s ease;
padding: 5px;
width: 200px;
background-color: transparent;
color: white;
outline: none;
width: ${({ show }) => (show ? "200px" : "0px")};
transition: width 0.4s ease;
opacity: ${({ show }) => (show ? 1 : 0)};
pointer-events: ${({ show }) => (show ? 'auto' : 'none')};
pointer-events: ${({ show }) => (show ? "auto" : "none")};
&::placeholder {
color: #ccc;
}
Expand Down

0 comments on commit 357911c

Please sign in to comment.