diff --git a/src/app/(learners)/dashboard/page.tsx b/src/app/(learners)/dashboard/page.tsx index d53f03e..da40c94 100644 --- a/src/app/(learners)/dashboard/page.tsx +++ b/src/app/(learners)/dashboard/page.tsx @@ -28,8 +28,14 @@ export default function Home() {
- - +
+
+ +
+
+ +
+
); } diff --git a/src/components/learners/dashboard/CourseCard.tsx b/src/components/learners/dashboard/CourseCard.tsx index 11691bd..5b12b39 100644 --- a/src/components/learners/dashboard/CourseCard.tsx +++ b/src/components/learners/dashboard/CourseCard.tsx @@ -5,14 +5,12 @@ import React from 'react'; interface CourseCardProps { title: string; - currentLesson: string; thumbnail: string; completed: string; } const CourseCard: React.FC = ({ title, - currentLesson, thumbnail, completed, }) => { @@ -20,7 +18,7 @@ const CourseCard: React.FC = ({ const isCompletedZero = completed === '0%'; return ( -
+
{/* Phần 1: Hình ảnh và nội dung */}
{/* Sử dụng Image thay cho img */} @@ -34,8 +32,9 @@ const CourseCard: React.FC = ({ />
-

{title}

-

{currentLesson}

+

+ {title} +

{/* Phần 2: Nút và tiến độ (được đẩy xuống dưới cùng) */} @@ -59,7 +58,7 @@ const CourseCard: React.FC = ({
diff --git a/src/components/learners/dashboard/CoursesSection.tsx b/src/components/learners/dashboard/CoursesSection.tsx index 12b845a..226aaff 100644 --- a/src/components/learners/dashboard/CoursesSection.tsx +++ b/src/components/learners/dashboard/CoursesSection.tsx @@ -6,35 +6,31 @@ const courses = [ { id: 1, title: 'Reiki Level I, II and Master/Teacher Program', - currentLesson: '1. Introductions', thumbnail: '/app/course/course01.png', completed: '0%', }, { id: 2, title: 'The Complete 2021 Web Development Bootcamp', - currentLesson: "167. What You'll Need to Get Started", thumbnail: '/app/course/course02.png', completed: '61%', }, { id: 3, title: 'Copywriting - Become a Freelance Copywriter', - currentLesson: '1. How to get started with figma', thumbnail: '/app/course/course03.png', completed: '0%', }, { id: 4, title: '2021 Complete Python Bootcamp From Zero to Mastery', - currentLesson: '9. Advanced CSS - Selector Priority', thumbnail: '/app/course/course04.png', completed: '12%', }, ]; const CoursesSection = () => ( -
+

Lets start learning

{courses.map((course) => ( diff --git a/src/components/learners/dashboard/StatsSection.tsx b/src/components/learners/dashboard/StatsSection.tsx index 45a6061..ab03538 100644 --- a/src/components/learners/dashboard/StatsSection.tsx +++ b/src/components/learners/dashboard/StatsSection.tsx @@ -38,7 +38,7 @@ const stats = [ ]; const StatsSection = () => ( -
+
{stats.map((stat) => (