diff --git a/src/assets/icons/searchBlack.png b/src/assets/icons/searchBlack.png new file mode 100644 index 0000000..8601f9f Binary files /dev/null and b/src/assets/icons/searchBlack.png differ diff --git a/src/assets/icons/voice-black.png b/src/assets/icons/voice-black.png new file mode 100644 index 0000000..32c2216 Binary files /dev/null and b/src/assets/icons/voice-black.png differ diff --git a/src/components/GradeFilter/index.scss b/src/components/GradeFilter/index.scss index 3e7375a..30523f9 100644 --- a/src/components/GradeFilter/index.scss +++ b/src/components/GradeFilter/index.scss @@ -13,8 +13,16 @@ background-color: $gray13; border: none; .grade-filter__list{ - background-color: white; - border: 1px solid black; + backdrop-filter: blur(5px); + background-color: rgba($gray12, 0.85); + li{ + border-color: $gray11 !important; + color: $gray5 !important; + } + // border: 1px solid black; + } + .grade-filter__box{ + background-color: $gray12 !important; } } h1{ @@ -164,11 +172,11 @@ position: relative; h1{ font-size: calc(100vw / 30); - background-color: $green; + background-color: $green5; box-shadow: 0px 0px 2px $green; border-top-right-radius: 8px; border-bottom-right-radius: 8px; - padding: 12px 15px; + padding: 13px 15px; color: white; } &__box{ @@ -178,6 +186,8 @@ align-items: center; position: relative; height: 42px; + border-top-left-radius: 10px; + border-bottom-left-radius: 10px; & img{ position: absolute; left: 5px; diff --git a/src/components/HomeSearchBox/index.tsx b/src/components/HomeSearchBox/index.tsx index 8487e0a..66ddfb3 100644 --- a/src/components/HomeSearchBox/index.tsx +++ b/src/components/HomeSearchBox/index.tsx @@ -3,7 +3,9 @@ import { connect } from "react-redux"; import _ from "lodash"; import { book } from "../../redux/actions"; import search from "../../assets/icons/search.png"; +import searchBlack from "../../assets/icons/searchBlack.png"; import voice from "../../assets/icons/voice.png"; +import voiceBlack from "../../assets/icons/voice-black.png"; function HomeSearchBox({ lastItems, @@ -22,14 +24,14 @@ function HomeSearchBox({ const submitSort = (value: any) => { sortFilter({ search: inputValue, sort: value }); }; + + const light = theme === "light"; return (
- - sortFilter({ search: inputValue, sort: selectedSort })} - alt="" - /> + {light ? ( + + sortFilter({ search: inputValue, sort: selectedSort }) + } + alt="" + /> + ) : ( + + sortFilter({ search: inputValue, sort: selectedSort }) + } + alt="" + /> + )}