frondend/components/Course/LongDesc.tsx

21 lines
762 B
TypeScript
Raw Normal View History

2024-10-05 15:04:17 +08:00
import React from 'react'
import { CoursesProps } from '@/types'
const LongDesc = ({ courseData }: { courseData: CoursesProps }) => {
return (
2024-10-08 19:57:04 +08:00
<div className='w-full h-auto lg:mt-32 mt-20'>
2024-10-05 15:04:17 +08:00
<div className='flex flex-col items-center justify-center mx-[5vw] lg:mx-[20vw]'>
2024-10-08 19:08:37 +08:00
<p className='lg:text-5xl text-xl text-center'>
2024-10-05 15:04:17 +08:00
{courseData.title}
</p>
<div
2024-10-08 19:08:37 +08:00
className='mt-10 lg:[&_*]:!text-[1.5rem] [&_*]:!text-[1.0rem] [&_*]:!text-gray-600 [&_*]:!text-center [&_*]:!bg-transparent'
2024-10-05 15:04:17 +08:00
dangerouslySetInnerHTML={{ __html: courseData.long_description }}
/>
</div>
</div >
)
}
export default LongDesc