|
|
@ -8,7 +8,7 @@ const CourseChapter = ({ chapters }) => { |
|
|
|
<section style={{ width: "40%" }} className="bg-white mx-auto my-20 p-4"> |
|
|
|
<section style={{ width: "40%" }} className="bg-white mx-auto my-20 p-4"> |
|
|
|
<div |
|
|
|
<div |
|
|
|
className="rounded py-5 px-4 relative" |
|
|
|
className="rounded py-5 px-4 relative" |
|
|
|
style={{ backgroundColor: "#196EC033", height: '500px'}} |
|
|
|
style={{ backgroundColor: "#196EC033", height: '530px'}} |
|
|
|
> |
|
|
|
> |
|
|
|
{/* top */} |
|
|
|
{/* top */} |
|
|
|
<div className="flex flex-row items-center justify-between"> |
|
|
|
<div className="flex flex-row items-center justify-between"> |
|
|
@ -21,9 +21,9 @@ const CourseChapter = ({ chapters }) => { |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{/* divider */} |
|
|
|
{/* divider */} |
|
|
|
<div className="border-b border-blue-300 bg-opacity-10 my-5"></div> |
|
|
|
<div className="border-b border-blue-300 border-solid bg-opacity-10 my-5"></div> |
|
|
|
{/* course title */} |
|
|
|
{/* course title */} |
|
|
|
<div className="overflow-y-scroll hasScrollbar" style={{ |
|
|
|
<div className="overflow-y-scroll w-full hasScrollbar" style={{ |
|
|
|
height: '430px' |
|
|
|
height: '430px' |
|
|
|
}}> |
|
|
|
}}> |
|
|
|
{chapters.map((chapter, index) => ( |
|
|
|
{chapters.map((chapter, index) => ( |
|
|
@ -74,7 +74,7 @@ const CourseChapter = ({ chapters }) => { |
|
|
|
{lesson.title} |
|
|
|
{lesson.title} |
|
|
|
</p> |
|
|
|
</p> |
|
|
|
<span |
|
|
|
<span |
|
|
|
className={`text-xs group-hover:text-white border-r border-blue-200 pr-1
|
|
|
|
className={`text-xs group-hover:text-white border-r border-solid border-blue-200 pr-1
|
|
|
|
${selectedLesson === lesson ? "text-white" : "text-blue-500"}`}
|
|
|
|
${selectedLesson === lesson ? "text-white" : "text-blue-500"}`}
|
|
|
|
> |
|
|
|
> |
|
|
|
{lesson.duration} |
|
|
|
{lesson.duration} |
|
|
|