|
|
|
@ -4,7 +4,7 @@ const CourseChapter = ({ courseTitle, lessonName, grade, chapters }) => { |
|
|
|
|
const [selectedLesson, setSelectedLesson] = useState(null); |
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
|
<div className="relative p-4 bg-[#196EC033] rounded"> |
|
|
|
|
<div className="max-h-[444px] relative p-4 bg-[#196EC033] rounded overflow-y-auto scrollYDesign"> |
|
|
|
|
{/* top */} |
|
|
|
|
<div className="flex flex-row items-center justify-between"> |
|
|
|
|
<h2 className="text-blue-800 text-base">{courseTitle}</h2> |
|
|
|
@ -17,7 +17,7 @@ const CourseChapter = ({ courseTitle, lessonName, grade, chapters }) => { |
|
|
|
|
<div className="border-b border-blue-300 my-5"></div> |
|
|
|
|
{/* course title */} |
|
|
|
|
{chapters.map((chapter, index) => ( |
|
|
|
|
<div className="flex flex-col" key={index}> |
|
|
|
|
<div className="flex flex-col mt-4" key={index}> |
|
|
|
|
<div className="bg-blue-600 rounded-sm p-4 flex flex-row items-center justify-between"> |
|
|
|
|
<p className="text-sm text-white">{chapter.title}</p> |
|
|
|
|
<span className="text-sm text-white">{chapter.duration}</span> |
|
|
|
@ -128,5 +128,89 @@ CourseChapter.defaultProps = { |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: "فصل اول: مباحث جوشش مواد مذاب در مرکز", |
|
|
|
|
duration: "2:30:13", |
|
|
|
|
lessons: [ |
|
|
|
|
{ |
|
|
|
|
title: "آیا گوگل از ما دزدی میکند؟", |
|
|
|
|
duration: "14:30", |
|
|
|
|
play: "پخش", |
|
|
|
|
passed: true, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: "چگونگی ساخت نیروگاه های برقی", |
|
|
|
|
duration: "22:31", |
|
|
|
|
play: "در حال پخش", |
|
|
|
|
passed: true, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: "آیا از اینترنت می توان درآمد داشت؟", |
|
|
|
|
duration: "10:09", |
|
|
|
|
play: "نمایش", |
|
|
|
|
passed: false, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: "زمین سبز و آسمان آبی", |
|
|
|
|
duration: "56:09", |
|
|
|
|
play: "نمایش", |
|
|
|
|
passed: false, |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: "فصل اول: مباحث جوشش مواد مذاب در مرکز", |
|
|
|
|
duration: "2:30:13", |
|
|
|
|
lessons: [ |
|
|
|
|
{ |
|
|
|
|
title: "آیا گوگل از ما دزدی میکند؟", |
|
|
|
|
duration: "14:30", |
|
|
|
|
play: "پخش", |
|
|
|
|
passed: true, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: "چگونگی ساخت نیروگاه های برقی", |
|
|
|
|
duration: "22:31", |
|
|
|
|
play: "در حال پخش", |
|
|
|
|
passed: true, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: "آیا از اینترنت می توان درآمد داشت؟", |
|
|
|
|
duration: "10:09", |
|
|
|
|
play: "نمایش", |
|
|
|
|
passed: true, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: "زمین سبز و آسمان آبی", |
|
|
|
|
duration: "56:09", |
|
|
|
|
play: "نمایش", |
|
|
|
|
passed: true, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: "آیا گوگل از ما دزدی میکند؟", |
|
|
|
|
duration: "14:30", |
|
|
|
|
play: "پخش", |
|
|
|
|
passed: true, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: "چگونگی ساخت نیروگاه های برقی", |
|
|
|
|
duration: "22:31", |
|
|
|
|
play: "در حال پخش", |
|
|
|
|
passed: true, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: "آیا از اینترنت می توان درآمد داشت؟", |
|
|
|
|
duration: "10:09", |
|
|
|
|
play: "نمایش", |
|
|
|
|
passed: true, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: "زمین سبز و آسمان آبی", |
|
|
|
|
duration: "56:09", |
|
|
|
|
play: "نمایش", |
|
|
|
|
passed: false, |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|
}; |
|
|
|
|