reza fixed some bug

master
RezaAshrafi77 3 years ago
parent f3dc3af7b6
commit b4a85e0d88
  1. 6
      src/components/GradeFilter/index.scss
  2. 16
      src/components/HomeSearchBox/index.scss
  3. 6
      src/components/Navbar/index.scss
  4. 2
      src/components/Vocal/Vocal.tsx
  5. 37
      src/views/Home/AppDownload/index.scss
  6. 2
      src/views/Home/AppDownload/index.tsx
  7. 6
      src/views/Home/Blogs/index.scss
  8. 2
      src/views/Home/Books/Book/index.scss
  9. 4
      src/views/Home/Books/index.scss
  10. 2
      src/views/Home/Courses/Course/index.scss
  11. 2
      src/views/Home/Courses/Course/index.tsx
  12. 11
      src/views/Home/Courses/index.scss
  13. 60
      src/views/Home/Courses/index.tsx
  14. 2
      src/views/Home/Footer/index.scss
  15. 2
      src/views/Home/Header/index.scss
  16. 16
      src/views/Home/index.scss

@ -16,7 +16,7 @@
span{ span{
width: 2px; width: 2px;
height: 20px; height: 20px;
background-color: white; background-color: rgb(143, 142, 142);
margin-right: 15px; margin-right: 15px;
} }
} }
@ -38,7 +38,7 @@
@media screen and (min-width: 1441px){ @media screen and (min-width: 1441px){
.grade-filter{ .grade-filter{
max-width: 1250px; max-width: 1350px;
h1{ h1{
font-size: calc(100vw / 120); font-size: calc(100vw / 120);
} }
@ -171,7 +171,7 @@
padding: 10px 20px; padding: 10px 20px;
border-radius: 10px; border-radius: 10px;
li{ li{
width: calc(100% / 4.5) !important; width: calc(100% / 4.45) !important;
margin: 8px 5px; margin: 8px 5px;
font-size: calc(100vw / 28); font-size: calc(100vw / 28);
padding: 5px 0px; padding: 5px 0px;

@ -32,13 +32,13 @@
@media screen and (min-width: 1441px) { @media screen and (min-width: 1441px) {
.home-search-box { .home-search-box {
width: 100%; width: 100%;
max-width: 1250px; max-width: 1350px;
padding: 80px 0px 30px; padding: 40px 0px 10px;
&__voice { &__voice {
display: none; display: none;
} }
form { form {
width: 850px; width: 1000px;
input { input {
font-size: 20px; font-size: 20px;
padding-right: 20px; padding-right: 20px;
@ -47,12 +47,12 @@
} }
} }
button { button {
width: 100px; width: 80px;
height: 80px; height: 60px;
} }
} }
ul { ul {
width: 850px; width: 1000px;
padding: 10px 0px !important; padding: 10px 0px !important;
li { li {
color: #a2b4cb; color: #a2b4cb;
@ -147,8 +147,8 @@
&__searchIcon { &__searchIcon {
position: absolute; position: absolute;
left: 62px; left: 62px;
top: 6px; top: 9px;
width: 33px; width: 27px;
} }
form { form {
width: 100%; width: 100%;

@ -25,7 +25,7 @@
@media screen and (min-width: 1441px){ @media screen and (min-width: 1441px){
.nav{ .nav{
&__container{ &__container{
max-width: 1250px; max-width: 1350px;
&--links{ &--links{
li{ li{
padding: 0px 20px; padding: 0px 20px;
@ -121,7 +121,7 @@
@media screen and (max-width: 640px){ @media screen and (max-width: 640px){
.nav{ .nav{
background-color: #010101; background-color: hsla(0, 0%, 31%, 1);
&__container{ &__container{
max-width: 500px; max-width: 500px;
&--buttons{ &--buttons{
@ -136,7 +136,7 @@
} }
} }
&___share{ &___share{
margin-left: 10px; display : none;
} }
&___login{ &___login{
} }

@ -26,7 +26,7 @@ const Vocal = (props: any) => {
SpeechRecognition.stopListening(); SpeechRecognition.stopListening();
setPause(true); setPause(true);
} }
}, 5000); }, 7000);
}; };
useEffect(() => { useEffect(() => {

@ -44,7 +44,11 @@
@media screen and (min-width: 1441px) { @media screen and (min-width: 1441px) {
.app-download{ .app-download{
max-width: 1250px; max-width: 1350px;
h1{
font-size: 40px;
line-height: 2em;
}
&__figure{ &__figure{
h2{ h2{
font-size: 16px; font-size: 16px;
@ -52,6 +56,37 @@
p{ p{
font-size: 13px; font-size: 13px;
} }
&--screen{
width: 300px;
height: 255px;
border-top: 12px solid black;
border-right: 12px solid black;
border-left: 12px solid black;
border-top-left-radius: 30px;
border-top-right-radius: 30px;
background-color: #E3E3E3;
}
&--details{
width: 440px;
padding: 10px;
background-color: black;
border-radius: 10px;
h2,p{
margin: 0px;
margin-right: 5px;
}
h2{
color: white;
font-family: numeralBold;
margin-bottom: 5px;
font-size: 17px;
}
p{
color: #FFD70F;
font-family: numeralLight;
font-size: 13px;
}
}
} }
} }
} }

@ -5,7 +5,7 @@ import "./index.scss";
export default function AppDownload() { export default function AppDownload() {
return ( return (
<section className="app-download d-flex justify-content-between align-items-end"> <section className="app-download d-flex justify-content-between align-items-center">
<h1> <h1>
اینجا جایگاه یک <br /> متن ویژه است که باید در این <br /> قسمت قرار اینجا جایگاه یک <br /> متن ویژه است که باید در این <br /> قسمت قرار
بگیرد. بگیرد.

@ -2,8 +2,8 @@
width: 100%; width: 100%;
margin: 0px auto; margin: 0px auto;
position: relative; position: relative;
margin-top: 30px; margin-top: 10px;
padding: 20px 10px 50px; padding: 0px 10px 50px;
font-family: numeralLight; font-family: numeralLight;
&__list{ &__list{
width: 100%; width: 100%;
@ -25,7 +25,7 @@
@media screen and (min-width: 1441px) { @media screen and (min-width: 1441px) {
.home-blogs { .home-blogs {
max-width: 1250px; max-width: 1350px;
header{ header{
h1{ h1{
font-size: 20px; font-size: 20px;

@ -9,6 +9,8 @@
} }
&__info{ &__info{
border-bottom: 1px solid #424242;
padding-bottom: 15px;
margin-right: 10px; margin-right: 10px;
p { p {
margin: 0px; margin: 0px;

@ -2,7 +2,7 @@
width: 100%; width: 100%;
margin: 0px auto; margin: 0px auto;
position: relative; position: relative;
padding: 10px 10px 50px; padding: 10px 10px 30px;
font-family: numeralLight; font-family: numeralLight;
header{ header{
margin-bottom: 20px; margin-bottom: 20px;
@ -46,7 +46,7 @@
@media screen and (min-width: 1008px) and (max-width: 1440px) { @media screen and (min-width: 1008px) and (max-width: 1440px) {
.home-books { .home-books {
max-width: 1250px; max-width: 1350px;
header{ header{
h1{ h1{
font-size: calc(100vw / 60); font-size: calc(100vw / 60);

@ -41,7 +41,7 @@
font-size: 14px; font-size: 14px;
} }
li{ li{
font-size: 13px; font-size: 11px;
} }
} }
} }

@ -8,7 +8,7 @@ export default function Course(props: any) {
<article className="home-courses-course d-flex flex-column"> <article className="home-courses-course d-flex flex-column">
<img src={data.imageUrl} alt={data.name} /> <img src={data.imageUrl} alt={data.name} />
<footer className="d-flex"> <footer className="d-flex">
<Avatar src={data.user} style={{width : 50, height : 50}} /> <Avatar src={data.user} style={{width : 40, height : 40}} />
<div className="home-courses-course__info d-flex flex-column"> <div className="home-courses-course__info d-flex flex-column">
<h2>{data.name}</h2> <h2>{data.name}</h2>
{ {

@ -17,7 +17,9 @@
span{ span{
color: #aaa; color: #aaa;
} }
a{
display: none;
}
} }
&__more{ &__more{
position: absolute; position: absolute;
@ -35,7 +37,7 @@
@media screen and (min-width: 1441px) { @media screen and (min-width: 1441px) {
.home-courses { .home-courses {
max-width: 1250px; max-width: 1350px;
header{ header{
h1{ h1{
font-size: 20px; font-size: 20px;
@ -96,6 +98,11 @@
span{ span{
font-size: calc(100vw / 34); font-size: calc(100vw / 34);
} }
a{
display: flex;
color: #9CDF52;
font-size: calc(100vw / 28);
}
} }
&__more{ &__more{
display : none !important; display : none !important;

@ -7,48 +7,54 @@ import "./index.scss";
export default function Courses(props: any) { export default function Courses(props: any) {
const slideNumberHandler = () => { const slideNumberHandler = () => {
if(window.innerWidth >= 1440){ if (window.innerWidth >= 1440) {
return 4; return 4;
}else if(window.innerWidth >= 1008 && window.innerWidth < 1440){ } else if (window.innerWidth >= 1008 && window.innerWidth < 1440) {
return 4; return 4;
}else if(window.innerWidth > 640 && window.innerWidth < 1008 ){ } else if (window.innerWidth > 640 && window.innerWidth < 1008) {
return 3; return 3;
}else{ } else {
return 2; return 2;
} }
} };
const { number, courses } = props; const { number, courses } = props;
return ( return (
<section className="home-courses d-flex flex-column"> <section className="home-courses d-flex flex-column">
<header className="d-flex flex-column"> <header className="d-flex justify-content-between">
<h1>جدیدترین دورهها</h1> <div className="d-flex flex-column">
<span>در این قسمت شاید یک متن جهت زیباسازی قرار بگیرد.</span> <h1>جدیدترین دورهها</h1>
<span>در این قسمت شاید یک متن جهت زیباسازی قرار بگیرد.</span>
</div>
<Link to="/">
بیشتر
</Link>
</header> </header>
{ {window.innerWidth > 1007 ? (
window.innerWidth > 1007 ?
<Carousel <Carousel
itemsToShow={slideNumberHandler()} itemsToShow={slideNumberHandler()}
isRTL={true} isRTL={true}
enableTilt={false} enableTilt={false}
showArrows={true} showArrows={true}
pagination={false} pagination={false}
> >
{courses.map((item : Object, i : Number) => ( {courses.map((item: Object, i: Number) => (
<Course data={item} key={i} /> <Course data={item} key={i} />
))} ))}
</Carousel> : </Carousel>
<div className="home-courses__list d-flex"> ) : (
{courses.map((item : Object, i : Number) => ( <div className="home-courses__list d-flex">
<Course data={item} key={i} /> {courses.map((item: Object, i: Number) => (
))} <Course data={item} key={i} />
</div> ))}
} </div>
)}
<Link <Link
className="home-courses__more d-flex align-items-center" className="home-courses__more d-flex align-items-center"
to="/courses" to="/courses"
> >
مشاهده بیشتر <ExpandMoreRoundedIcon style={{ fontSize: 25, color : '#9CDF52' }} /> مشاهده بیشتر{" "}
<ExpandMoreRoundedIcon style={{ fontSize: 25, color: "#9CDF52" }} />
</Link> </Link>
</section> </section>
); );

@ -18,7 +18,7 @@
@media screen and (min-width: 1441px){ @media screen and (min-width: 1441px){
.footer{ .footer{
&__container{ &__container{
max-width: 1250px; max-width: 1350px;
} }
li{ li{
font-size: 14px; font-size: 14px;

@ -44,7 +44,7 @@
@media screen and (min-width: 1441px) { @media screen and (min-width: 1441px) {
.home-header { .home-header {
max-width: 1250px; max-width: 1350px;
.item { .item {
h1 { h1 {
font-size: 30px; font-size: 30px;

@ -31,5 +31,21 @@
.home{ .home{
padding: 60px 10px 0px; padding: 60px 10px 0px;
position: relative; position: relative;
background: hsla(0, 0%, 31%, 1);
background: linear-gradient(
90deg,
hsla(0, 0%, 0%, 1) 0%,
hsla(0, 0%, 31%, 1) 100%
);
background: -moz-linear-gradient(
90deg,
hsla(0, 0%, 0%, 1) 0%,
hsla(0, 0%, 31%, 1) 100%
);
background: -webkit-linear-gradient(
90deg,
hsla(0, 0%, 0%, 1) 0%,
hsla(0, 0%, 31%, 1) 100%
);
} }
} }

Loading…
Cancel
Save