From 952355c1cde6810d664dccaa477a42ae7325c298 Mon Sep 17 00:00:00 2001 From: Reza Date: Sat, 6 Nov 2021 13:35:52 +0330 Subject: [PATCH] reza added mobile home light mode --- src/assets/icons/searchBlack.png | Bin 0 -> 619 bytes src/assets/icons/voice-black.png | Bin 0 -> 601 bytes src/components/GradeFilter/index.scss | 18 +++++++-- src/components/HomeSearchBox/index.tsx | 36 ++++++++++++------ src/components/Navbar/index.scss | 3 +- src/components/Navbar/index.tsx | 14 ++++--- src/components/NavbarDrawer/NavbarDrawer.scss | 25 +++++++++--- src/components/NavbarDrawer/NavbarDrawer.tsx | 23 +++++++---- src/custom.scss | 2 +- src/views/Home/Courses/index.tsx | 2 +- 10 files changed, 88 insertions(+), 35 deletions(-) create mode 100644 src/assets/icons/searchBlack.png create mode 100644 src/assets/icons/voice-black.png diff --git a/src/assets/icons/searchBlack.png b/src/assets/icons/searchBlack.png new file mode 100644 index 0000000000000000000000000000000000000000..8601f9f8e94844081c5f64b88f4b0f10a65a89ac GIT binary patch literal 619 zcmV-x0+juUP)ybUe*upT0W;C3U?sj!|T4}j|9-1ota=CoNdIj^v_kCT{G#$1J+lB2G z3Wa&SUiVZn5&<@wjea~HzZh8M44@r=K3c8TIBnk*z+$oJV)F=&CH!tNCzuY{dSts^ zuZ`2`WMG}(9TAx8y`mP5G=<5KJdo?a|m?W4-F9Y>4+FnW&$HjPyBfIq9nx$0ocz) z6svse;;2Azf={gX5$nC#Y|@TuaCNkM*^63Ur8+FKiw%{0K3{D#8nho8NYM=JU*T+` z4m0@#6MS^;>Hj1KNYNG1-~?fd!JGoQ`v`rZUq6Xmq`D|s!K4nlAQ|!2P(ZM&>QK|I_Z^jTHI|$|^^#lYG z>d1cXOKEY$D@N%yFm>@uS>Gct#gXp^^~{By)k2WeCsWpXMgFGHg3Ty&Aiz~1@psv8W0`VD$!wQ5Q zumf=g)@Od|Ib?>^VcJef#l%TSL(`e>-gD2~>y*yCoHO%Exq$tCzZpf*ErM)1juY;7 zJ29P3U-ATP4FoK}!S{y4m+SSqBZLTTz*fLsujeD9VakEa@p#-S42bL){YA!scYuzv zpqUvWyEd|WiywqKe&F4u_HH(rOx!|&0L?a=%|O))nGXPXmXHN9Y!?j-k(mIvPM6BV zRaV6V2>^`OU<6 zH<>1(PKOKu#P-N&qF)0dD5Jz_zz1aLpPC_nPmt8hl$0M(61Bl~-FmfJeb2JH{yik! z2W$&uu_M*45WpP&uhXFDr&lo93W|6z)uZx&6;Sm~wTV*#8wpKnZ-=&qy>xF0+40&O zEn{ngj5Wx}jh~3T#p^+7E0s!s=x@|1Y;pK`7*Rr&LQRy!zM9xeyWOr^E|*_%(2w!M zU;y6F!}vXmsgl}LQ=7NymB@k@-P>-rGkxyS#RzJM0Qg)$5jSl%+D;2f)u3zuvzGfM z+Z${3h4+EUm3k2~focOK27o^rs3Awx3QvJHI4X4F>ru+qWxQu5XU5-IXBgk~7eJcG nN6lEp_yMS<`MuC00000NkvXXu0mjf-WCg? literal 0 HcmV?d00001 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="" + /> + )}