|
|
@ -0,0 +1,99 @@ |
|
|
|
|
|
|
|
import Title from "./Title"; |
|
|
|
|
|
|
|
import img1 from "../../assets/img/rhema-kallianpur-2W3bDp7K1oQ-unsplash.jpg"; |
|
|
|
|
|
|
|
import img2 from "../../assets/img/pankaj-patel-_SgRNwAVNKw-unsplash.jpg"; |
|
|
|
|
|
|
|
let data = [ |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
id: 1, |
|
|
|
|
|
|
|
name: "صفر تا صد javascript", |
|
|
|
|
|
|
|
date: "1401/3/3", |
|
|
|
|
|
|
|
img: img1, |
|
|
|
|
|
|
|
description: |
|
|
|
|
|
|
|
"ما در این دوره از پایهای ترین مفاهیم javascript شروع خواهیم کرد و رفته رفته به سمت مطالب حرفهای تر حرکت میکنیم.", |
|
|
|
|
|
|
|
teacher: "فرانتکار عجیب", |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
id: 2, |
|
|
|
|
|
|
|
name: "صفر تا صد javascript", |
|
|
|
|
|
|
|
date: "1401/3/3", |
|
|
|
|
|
|
|
img: img2, |
|
|
|
|
|
|
|
description: |
|
|
|
|
|
|
|
"ما در این دوره از پایهای ترین مفاهیم javascript شروع خواهیم کرد و رفته رفته به سمت مطالب حرفهای تر حرکت میکنیم.", |
|
|
|
|
|
|
|
teacher: "فرانتکار عجیب", |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
id: 3, |
|
|
|
|
|
|
|
name: "صفر تا صد javascript", |
|
|
|
|
|
|
|
date: "1401/3/3", |
|
|
|
|
|
|
|
img: img1, |
|
|
|
|
|
|
|
description: |
|
|
|
|
|
|
|
"ما در این دوره از پایهای ترین مفاهیم javascript شروع خواهیم کرد و رفته رفته به سمت مطالب حرفهای تر حرکت میکنیم.", |
|
|
|
|
|
|
|
teacher: "فرانتکار عجیب", |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
id: 4, |
|
|
|
|
|
|
|
name: "صفر تا صد javascript", |
|
|
|
|
|
|
|
date: "1401/3/3", |
|
|
|
|
|
|
|
img: img2, |
|
|
|
|
|
|
|
description: |
|
|
|
|
|
|
|
"ما در این دوره از پایهای ترین مفاهیم javascript شروع خواهیم کرد و رفته رفته به سمت مطالب حرفهای تر حرکت میکنیم.", |
|
|
|
|
|
|
|
teacher: "فرانتکار عجیب", |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
]; |
|
|
|
|
|
|
|
const MyCourse=()=>{ |
|
|
|
|
|
|
|
return ( |
|
|
|
|
|
|
|
<div className="MyCourse w-[45%] h-full rounded-lg border border-[#E0E0E0] px-1 pt-1"> |
|
|
|
|
|
|
|
<div className="w-full h-full overflow-y-auto px-4 pt-4"> |
|
|
|
|
|
|
|
{/* ----title-------- */} |
|
|
|
|
|
|
|
<Title titleText="دورههای من" /> |
|
|
|
|
|
|
|
{/* ----body-------- */} |
|
|
|
|
|
|
|
<div className="w-full mt-4"> |
|
|
|
|
|
|
|
{data?.map((item, index) => ( |
|
|
|
|
|
|
|
<div className="w-full flex flex-row-reverse items-center justify-between mb-4 cursor-pointer"> |
|
|
|
|
|
|
|
<div className="w-[37%] aspect-[1/0.7] rounded overflow-hidden flex items-center justify-center"> |
|
|
|
|
|
|
|
<img |
|
|
|
|
|
|
|
src={item.img} |
|
|
|
|
|
|
|
alt="course-banner" |
|
|
|
|
|
|
|
className="w-full rounded" |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
{/* ---- */} |
|
|
|
|
|
|
|
<div className="w-[61%]"> |
|
|
|
|
|
|
|
<div className="text-xs text-right text-[#B1B1B1]"> |
|
|
|
|
|
|
|
{item?.date} |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div |
|
|
|
|
|
|
|
className="text-sm text-right mt-1" |
|
|
|
|
|
|
|
style={{ |
|
|
|
|
|
|
|
fontFamily: "IRANSansXFaNum-Medium", |
|
|
|
|
|
|
|
direction: "rtl", |
|
|
|
|
|
|
|
}} |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
{item.name} |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div |
|
|
|
|
|
|
|
className="text-xs text-right text-[#B1B1B1] mt-1 overflow-hidden text-ellipsis" |
|
|
|
|
|
|
|
style={{ |
|
|
|
|
|
|
|
WebkitLineClamp: "2", |
|
|
|
|
|
|
|
WebkitBoxOrient: "vertical", |
|
|
|
|
|
|
|
display: "-webkit-box", |
|
|
|
|
|
|
|
direction:"rtl" |
|
|
|
|
|
|
|
}} |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
{item.description} |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div |
|
|
|
|
|
|
|
className="text-left text-xs w-full mt-1" |
|
|
|
|
|
|
|
style={{ direction: "ltr" }} |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
استاد:{item?.teacher} |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
))} |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export default MyCourse; |