diff --git a/sass/css/_shop.scss b/sass/css/_shop.scss index be2a8fe..1e066d6 100644 --- a/sass/css/_shop.scss +++ b/sass/css/_shop.scss @@ -178,6 +178,47 @@ button { .backlog-container { padding-bottom: 4rem; + + .backlog-bar { + display: flex; + width: 100%; + margin: 0.4rem 0; + padding: 0 0.5rem; + justify-content: space-around; + + .mobileCloseMenu { + display: flex; + padding: 0; + margin: 0; + width: 10%; + align-content: center; + } + .search-backlog { + display: inline-block; + border: 0; + width: 90%; + + .search-backlog-input { + display: inline; + border: 0; + color: white; + border-radius: 2rem; + background: rgba(255, 255, 255, 0.15) url("/images/shop/icon-search.svg") no-repeat; + background-position: right 2% center; + background-size: 20px; + padding-right: 1rem; + + &::placeholder { + color: white; + opacity: 0.5; + } + + &:focus { + box-shadow: none; + } + } + } + } } .rule { diff --git a/static/images/shop/icon-search.svg b/static/images/shop/icon-search.svg new file mode 100644 index 0000000..232e21e --- /dev/null +++ b/static/images/shop/icon-search.svg @@ -0,0 +1,39 @@ + + + + + + diff --git a/static/js/shop/Backlog.jsx b/static/js/shop/Backlog.jsx index feba9ba..67b4bf4 100644 --- a/static/js/shop/Backlog.jsx +++ b/static/js/shop/Backlog.jsx @@ -34,15 +34,21 @@ export function Backlog() { ref={provided.innerRef} {...provided.droppableProps}> - {isMobile ? ( -
- -
- ) : null} - + +
+ + + {isMobile ? ( +
+ +
+ ) : null} +
+ + diff --git a/static/js/shop/SearchBar.jsx b/static/js/shop/SearchBar.jsx index 7285a0e..7eceb60 100644 --- a/static/js/shop/SearchBar.jsx +++ b/static/js/shop/SearchBar.jsx @@ -4,12 +4,11 @@ import {useShopStore} from "./shop_store"; export function SearchBar() { const search_bar_value = useShopStore((state) => state.search_bar_value); const updateSearchBar = useShopStore((state) => state.updateSearchBar); - return ( -
+
updateSearchBar(event.target.value)}