diff --git a/src/components/BookToggle/index.scss b/src/components/BookToggle/index.scss index b1bdec6..e0a8691 100644 --- a/src/components/BookToggle/index.scss +++ b/src/components/BookToggle/index.scss @@ -2,34 +2,42 @@ width: calc(100% - 60px); background-color: transparent; height: calc(100vh / 1.8); + transition: all 0.3s; + &__info { width: calc(100% / 2.5); + &--link { + transition: all 0.3s; + width: fit-content; + border-radius: 4px; + padding: 10px 35px; + align-self: end; + margin-top: 60px; + &:hover{ + border-color: $green; + color: $green; + } + } } - img { + + &__img { height: 90%; border-radius: 8px; + img{ + width : 100%; + height : 100%; + } } p { margin-top: 20px; } - a { - transition: all 0.3s; - width: fit-content; - border-radius: 4px; - padding: 10px 35px; - align-self: end; - margin-top: 60px; - &:hover{ - border-color: $green; - color: $green; - } - } + &-light { strong, p { color: $gray5; } - a { + .book-toggle__info--link{ box-shadow: 0px 8px 10px rgba(0, 0, 0, 0.1); color: $gray7; } @@ -39,7 +47,7 @@ p { color: $gray12; } - a{ + .book-toggle__info--link{ border: 1px solid white; color: white; } diff --git a/src/components/BookToggle/index.tsx b/src/components/BookToggle/index.tsx index 1e28789..d593905 100644 --- a/src/components/BookToggle/index.tsx +++ b/src/components/BookToggle/index.tsx @@ -1,15 +1,24 @@ -import React from "react"; -import {Link} from 'react-router-dom'; +import React, { useState, useEffect } from "react"; +import { Link } from "react-router-dom"; import _ from "lodash"; import { connect } from "react-redux"; function BookToggle({ book, theme }: any) { + const [fade, setFade] = useState(false); + useEffect(() => {}, []); + useEffect(() => { + setFade(false); + setTimeout(() => { + setFade(true); + }, 500); + }, [book]); return (
- ادامه + ادامه
- + + + ); } diff --git a/src/components/GradeFilter/index.scss b/src/components/GradeFilter/index.scss index 54fa5d5..3d27b38 100644 --- a/src/components/GradeFilter/index.scss +++ b/src/components/GradeFilter/index.scss @@ -85,7 +85,7 @@ @media screen and (min-width: 1008px) and (max-width: 1440px){ .grade-filter{ - max-width: 1250px; + max-width: $maxWidth; ul{ position: relative; } diff --git a/src/components/GradeFilter/index.tsx b/src/components/GradeFilter/index.tsx index eeb2cab..5475b12 100644 --- a/src/components/GradeFilter/index.tsx +++ b/src/components/GradeFilter/index.tsx @@ -34,6 +34,12 @@ function GradeFilter({ ], " " )} + style={{ + transform: + window.innerWidth > 1027 + ? `translateY(-${window.innerHeight / 2}px)` + : "", + }} >

پایه تحصیلی @@ -84,7 +90,9 @@ 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 252429f..c98334b 100644 --- a/src/components/HomeSearchBox/index.scss +++ b/src/components/HomeSearchBox/index.scss @@ -124,7 +124,7 @@ @media screen and (min-width: 1008px) and (max-width: 1440px) { .home-search-box { - max-width: 1250px; + max-width: $maxWidth; padding: 40px 0px 10px; &__voice { display: none; diff --git a/src/components/Navbar/index.scss b/src/components/Navbar/index.scss index d659da9..afe1f83 100644 --- a/src/components/Navbar/index.scss +++ b/src/components/Navbar/index.scss @@ -6,10 +6,11 @@ top: 0px !important; left: 0px; z-index: 150; + backdrop-filter: blur(8px); &-light{ .nav___share{ box-shadow: 0px 8px 10px rgba(0, 0, 0, 0.1); - background-color: inherit !important; + background-color: inherit; border: none; // border: 1px solid $green1 !important; a{ @@ -100,7 +101,7 @@ @media screen and (min-width: 1008px) and (max-width: 1440px){ .nav{ &__container{ - max-width: 1250px; + max-width: $maxWidth; &--links{ li{ padding: 0px 20px; diff --git a/src/components/Navbar/index.tsx b/src/components/Navbar/index.tsx index 8d3fa7c..96cfba0 100644 --- a/src/components/Navbar/index.tsx +++ b/src/components/Navbar/index.tsx @@ -73,10 +73,14 @@ function Navbar(props: any) { className={_.join( [ "nav align-items-center justify-content-center", - theme === "light" ? "nav-light bg-white" : "nav-dark bg-black", + theme === "light" ? "bg-white nav-light" : "nav-dark bg-dark", ], " " )} + style={{ + backgroundColor: + theme === "light" ? "rgba(255,255,255, 0.5)" : "rgba(0,0,0, 0.85)", + }} >