From 5d477da7e0d28cd6b1e045e2c73f106c31454789 Mon Sep 17 00:00:00 2001 From: Reza Date: Wed, 10 Nov 2021 17:07:19 +0330 Subject: [PATCH] reza fixed some bugs --- src/components/GradeFilter/index.scss | 13 +++++---- src/components/GradeFilter/index.tsx | 4 +-- src/components/HomeSearchBox/index.scss | 10 +++++-- src/components/Navbar/index.scss | 8 +++++- src/components/NavbarDrawer/NavbarDrawer.scss | 6 ++-- src/components/NavbarDrawer/NavbarDrawer.tsx | 2 +- src/constants/width.scss | 1 + src/custom.scss | 25 +++++++++++++---- src/views/Contact/index.scss | 2 +- src/views/Course/Lesson/index.tsx | 28 +++++++++++-------- src/views/Course/index.scss | 2 +- src/views/Courses/Course/index.scss | 6 ++-- src/views/Courses/index.scss | 11 +++++++- src/views/Courses/index.tsx | 25 ++++++++++++++--- src/views/Home/AppDownload/index.scss | 2 +- src/views/Home/Blogs/index.scss | 2 +- src/views/Home/Books/Book/index.scss | 11 ++++---- src/views/Home/Books/index.scss | 2 +- src/views/Home/Books/index.tsx | 4 +-- src/views/Home/Courses/index.scss | 3 +- src/views/Home/Courses/index.tsx | 2 +- src/views/Home/Footer/index.scss | 2 +- src/views/Home/Footer/index.tsx | 2 +- src/views/Home/Header/index.scss | 2 +- src/views/Home/Header/index.tsx | 2 -- src/views/Home/index.tsx | 4 --- src/views/Subscription/index.scss | 1 + src/views/VideoTube/index.scss | 2 +- 28 files changed, 118 insertions(+), 66 deletions(-) create mode 100644 src/constants/width.scss diff --git a/src/components/GradeFilter/index.scss b/src/components/GradeFilter/index.scss index 30523f9..54fa5d5 100644 --- a/src/components/GradeFilter/index.scss +++ b/src/components/GradeFilter/index.scss @@ -43,14 +43,14 @@ top: 0px; right: 0px; height: 100%; - width : calc(100% / 12); + width : calc(100% / 11); transition: right 0.5s; background-color: $green5; box-shadow: 0px 0px 20px $green; z-index: 50; } li{ - width: calc(100% / 12); + width: calc(100% / 11); text-align: center; cursor: pointer; padding: 6px 0px; @@ -60,12 +60,14 @@ } &__active{ border-radius: 5px; + color: white; + transition: all 0.3s; } } @media screen and (min-width: 1441px){ .grade-filter{ - max-width: 1350px; + max-width: $maxWidth; ul{ position: relative; } @@ -172,12 +174,13 @@ position: relative; h1{ font-size: calc(100vw / 30); - background-color: $green5; + background-color: $green; box-shadow: 0px 0px 2px $green; border-top-right-radius: 8px; border-bottom-right-radius: 8px; - padding: 13px 15px; + // padding: 13px 15px; color: white; + height: 100%; } &__box{ flex: 1; diff --git a/src/components/GradeFilter/index.tsx b/src/components/GradeFilter/index.tsx index 889f25d..eeb2cab 100644 --- a/src/components/GradeFilter/index.tsx +++ b/src/components/GradeFilter/index.tsx @@ -75,7 +75,7 @@ function GradeFilter({
@@ -84,7 +84,7 @@ function GradeFilter({
  • gradeFilter(item.value)} - // className={selectedGrade === item.value ? "grade-filter__active" : ""} + className={selectedGrade === item.value ? "grade-filter__active" : ""} > {item.name}
  • diff --git a/src/components/HomeSearchBox/index.scss b/src/components/HomeSearchBox/index.scss index 8c563cc..252429f 100644 --- a/src/components/HomeSearchBox/index.scss +++ b/src/components/HomeSearchBox/index.scss @@ -5,6 +5,9 @@ * { transition: all 0.5s; } + button{ + border: none; + } &-dark{ form { button { @@ -80,7 +83,7 @@ @media screen and (min-width: 1441px) { .home-search-box { width: 100%; - max-width: 1350px; + max-width: $maxWidth; padding: 40px 0px 10px; &__voice { display: none; @@ -125,6 +128,7 @@ padding: 40px 0px 10px; &__voice { display: none; + } form { width: 850px; @@ -204,10 +208,10 @@ display: flex !important; justify-content: center; align-items: center; - width: 55px; + width: 45px; background : inherit !important; & img{ - width: 28px; + width: 25px; } } &__searchIcon { diff --git a/src/components/Navbar/index.scss b/src/components/Navbar/index.scss index 3df1f0a..bafaaeb 100644 --- a/src/components/Navbar/index.scss +++ b/src/components/Navbar/index.scss @@ -61,7 +61,7 @@ @media screen and (min-width: 1441px){ .nav{ &__container{ - max-width: 1350px; + max-width: $maxWidth; &--links{ li{ padding: 0px; @@ -171,5 +171,11 @@ } &___login{ } + &__search{ + min-width : 50px !important; + & img{ + width : 22px; + } + } } } \ No newline at end of file diff --git a/src/components/NavbarDrawer/NavbarDrawer.scss b/src/components/NavbarDrawer/NavbarDrawer.scss index 1c6868a..78a2dec 100644 --- a/src/components/NavbarDrawer/NavbarDrawer.scss +++ b/src/components/NavbarDrawer/NavbarDrawer.scss @@ -1,6 +1,6 @@ .navbar-drawer-light{ .MuiDrawer-paperAnchorRight { - background: white !important; + // background: white !important; &::-webkit-scrollbar { display: none !important; width: 0px !important; @@ -13,7 +13,7 @@ .navbar-drawer-dark{ .MuiDrawer-paperAnchorRight { - background: rgb(28, 28, 28) !important; + // background: rgb(28, 28, 28) !important; &::-webkit-scrollbar { display: none !important; width: 0px !important; @@ -26,6 +26,8 @@ text-align: right !important; direction: rtl; padding: 30px 0px 10px 0px; + height: 100vh; + border-left: 1px solid $gray5; a { text-decoration: none; } diff --git a/src/components/NavbarDrawer/NavbarDrawer.tsx b/src/components/NavbarDrawer/NavbarDrawer.tsx index be5a9c9..dd96e65 100644 --- a/src/components/NavbarDrawer/NavbarDrawer.tsx +++ b/src/components/NavbarDrawer/NavbarDrawer.tsx @@ -185,7 +185,7 @@ const NavbarDrawer = ({ status, logout, theme }: any) => { className={_.join( [ "navbar-drawer d-flex flex-column", - light ? "navbar-drawer-light" : "navbar-drawer-dark", + light ? "navbar-drawer-light bg-light" : "navbar-drawer-dark bg-black", ], " " )} diff --git a/src/constants/width.scss b/src/constants/width.scss new file mode 100644 index 0000000..b2e113b --- /dev/null +++ b/src/constants/width.scss @@ -0,0 +1 @@ +$maxWidth : calc(100% - 120px); \ No newline at end of file diff --git a/src/custom.scss b/src/custom.scss index 6f5952d..ba8a284 100644 --- a/src/custom.scss +++ b/src/custom.scss @@ -1,4 +1,5 @@ @import "./constants/colors.scss"; +@import "./constants/width.scss"; @import "./components/BreadCrumbs/index.scss"; @import "./components/GradeFilter/index.scss"; @import "./components/HomeSearchBox/index.scss"; @@ -32,7 +33,6 @@ } .bg-black { - background-color: black !important; .MuiButton-root { color: white !important; } @@ -289,13 +289,26 @@ p { } //SELECT + +.MuiList-root { + background-color: inherit !important; +} + +.MuiPaper-root { + backdrop-filter: blur(7px) !important; + background-color: rgba($gray5, 0.4) !important; +} + .MuiMenuItem-root { - background: #272727 !important; - border-bottom: 1px solid #707070 !important; - color: white !important; + background-color: inherit !important; + border-bottom: 1px solid $gray !important; font-size: 14px !important; font-family: numeralLight !important; padding: 20px !important; + a { + background-color: inherit !important; + color: $gray13 !important; + } } .MuiSelect-root { @@ -345,7 +358,7 @@ p { padding: 5px 0px; } &:nth-child(even) { - border-right: 1px solid #555 !important; + border-right: 1px solid $gray7 !important; } } } @@ -383,7 +396,7 @@ p { } .main { main { - max-width: 1350px; + max-width: $maxWidth; } } .mobile { diff --git a/src/views/Contact/index.scss b/src/views/Contact/index.scss index c154e5c..93a9ac9 100644 --- a/src/views/Contact/index.scss +++ b/src/views/Contact/index.scss @@ -100,7 +100,7 @@ @media screen and (min-width: 1441px) { .contact{ main{ - max-width: 1350px; + max-width: $maxWidth; padding-top: 60px; header{ padding-bottom: 30px; diff --git a/src/views/Course/Lesson/index.tsx b/src/views/Course/Lesson/index.tsx index f28dde2..71ba2a9 100644 --- a/src/views/Course/Lesson/index.tsx +++ b/src/views/Course/Lesson/index.tsx @@ -109,18 +109,21 @@ function Lesson({ } >
    - {data.type === "video" && - (light ? ( - - ) : ( - - ))} - {data.type === "pdf" && - (light ? ( - - ) : ( - - ))} + + {data.type === "video" && + (light ? ( + + ) : ( + + ))} + {data.type === "pdf" && + (light ? ( + + ) : ( + + ))} + + +
    {data.name}