diff --git a/components/course-demo.tsx b/components/course-demo.tsx new file mode 100644 index 0000000..1a94c6d --- /dev/null +++ b/components/course-demo.tsx @@ -0,0 +1,106 @@ +"use client"; +import { useState } from "react"; +import { Container } from "@/components/container"; +import { Heading } from "@/components/heading"; +import { Subheading } from "@/components/subheading"; +import { Button } from "@/components/ui/button"; +import { Play, CheckCircle, Clock, Star } from "lucide-react"; + +const courses = [ + { + title: "Introduction to AI Tools", + duration: "12 mins", + rating: "4.9", + image: "https://images.unsplash.com/photo-1677442136019-21780ecad995?auto=format&fit=crop&q=80&w=800", + }, + { + title: "Building Your First Website", + duration: "18 mins", + rating: "4.8", + image: "https://images.unsplash.com/photo-1498050108023-c5249f4df085?auto=format&fit=crop&q=80&w=800", + }, + { + title: "Digital Marketing Basics", + duration: "15 mins", + rating: "4.7", + image: "https://images.unsplash.com/photo-1460925895917-afdab827c52f?auto=format&fit=crop&q=80&w=800", + }, + { + title: "Creative Problem Solving", + duration: "10 mins", + rating: "5.0", + image: "https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&q=80&w=800", + }, +]; + +export function CourseDemo() { + const [completed, setCompleted] = useState([]); + + const toggleComplete = (id: number) => { + if (completed.includes(id)) { + setCompleted(completed.filter(i => i !== id)); + } else { + setCompleted([...completed, id]); + alert("Great job! You've earned 50 Skill Points! 🏆"); + } + }; + + return ( +
+ +
+ Course Experience (Student MVP) + + Real learning experience designed for high engagement and practical outcomes. + +
+ +
+ {courses.map((course, index) => ( +
+
+ {course.title} +
+
+ +
+
+
+
+
+
+ + {course.duration} +
+
+ + {course.rating} +
+
+

{course.title}

+ +
+
+ ))} +
+
+
+ ); +}