diff --git a/src/app/page.tsx b/src/app/page.tsx index 9c88205ed..6b5d49111 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -1,7 +1,14 @@ import { MyCourses } from '@/components/MyCourses'; import LandingPage from '@/components/landing/landing-page'; import { authOptions } from '@/lib/auth'; +import { cn } from '@/lib/utils'; import { getServerSession } from 'next-auth'; +import { Poppins } from 'next/font/google'; + +const rs = Poppins({ + weight: ['100', '200', '300', '400', '500', '600', '700', '800', '900'], + subsets: ['latin'], +}); const getUserDetails = async () => { const session = await getServerSession(authOptions); @@ -13,12 +20,28 @@ export default async function Home() { if (session?.user) { return ( -
-
Your courses
+
+
+

+ Courses +

+

+ List of purchased courses, click on any of them to navigate through + curriculum, access course material, watch lectures and much more. +

+
- -
); } diff --git a/src/components/CourseCard.tsx b/src/components/CourseCard.tsx index 343334aac..01cc2ae42 100644 --- a/src/components/CourseCard.tsx +++ b/src/components/CourseCard.tsx @@ -1,5 +1,7 @@ 'use client'; import { Course } from '@/store/atoms'; +import { Button } from './ui/button'; +import { ChevronRight } from 'lucide-react'; export const CourseCard = ({ course, @@ -10,23 +12,37 @@ export const CourseCard = ({ }) => { return (
{ onClick(); }} > - {course.title}
-
-
{course.title} Cohort
-
-
- + {course.title} +
+ +
+
+
+

+ {course.title} Cohort +

+ +

+ {course.description} +

+
+ +
+ +
@@ -36,12 +52,7 @@ export const CourseCard = ({ export const CourseSkeleton = () => { return (
-
-
-
-
-
-
+
); }; diff --git a/src/components/Courses.tsx b/src/components/Courses.tsx index 451a7a476..46da52e74 100644 --- a/src/components/Courses.tsx +++ b/src/components/Courses.tsx @@ -7,7 +7,7 @@ import { useRouter } from 'next/navigation'; export const Courses = ({ courses }: { courses: Course[] }) => { const router = useRouter(); return ( -
+
{courses?.map((course) => (