|
|
@ -3,9 +3,10 @@ import Carousel from "react-elastic-carousel"; |
|
|
|
import Course from "./Course/index"; |
|
|
|
import Course from "./Course/index"; |
|
|
|
import { Link } from "react-router-dom"; |
|
|
|
import { Link } from "react-router-dom"; |
|
|
|
import ExpandMoreRoundedIcon from "@mui/icons-material/ExpandMoreRounded"; |
|
|
|
import ExpandMoreRoundedIcon from "@mui/icons-material/ExpandMoreRounded"; |
|
|
|
|
|
|
|
import {connect} from 'react-redux'; |
|
|
|
import "./index.scss"; |
|
|
|
import "./index.scss"; |
|
|
|
|
|
|
|
|
|
|
|
export default function Courses({number, courses} : any) { |
|
|
|
function Courses({number, courses, selectedSort} : any) { |
|
|
|
const slideNumberHandler = () => { |
|
|
|
const slideNumberHandler = () => { |
|
|
|
if (window.innerWidth >= 1440) { |
|
|
|
if (window.innerWidth >= 1440) { |
|
|
|
return 4; |
|
|
|
return 4; |
|
|
@ -21,7 +22,7 @@ export default function Courses({number, courses} : any) { |
|
|
|
<section className="home-courses d-flex flex-column"> |
|
|
|
<section className="home-courses d-flex flex-column"> |
|
|
|
<header className="d-flex justify-content-between"> |
|
|
|
<header className="d-flex justify-content-between"> |
|
|
|
<div className="d-flex flex-column"> |
|
|
|
<div className="d-flex flex-column"> |
|
|
|
<h1>جدیدترین دورهها</h1> |
|
|
|
<h1>{selectedSort}</h1> |
|
|
|
<span>در این قسمت شاید یک متن جهت زیباسازی قرار بگیرد.</span> |
|
|
|
<span>در این قسمت شاید یک متن جهت زیباسازی قرار بگیرد.</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<Link to="/"> |
|
|
|
<Link to="/"> |
|
|
@ -58,3 +59,7 @@ export default function Courses({number, courses} : any) { |
|
|
|
</section> |
|
|
|
</section> |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export default connect((state : any) => ({ |
|
|
|
|
|
|
|
selectedSort : state.book.selectedSort, |
|
|
|
|
|
|
|
}))(Courses) |