@devries-cameron20 / OCIU-npo Mirror · read-only
Fork 0

Mirrored from https://github.com/Camo67/OCIU-npo.git

Synced Nov 21, 03:37 UTC

1 import { Navigation } from "@/components/Navigation";
2 import { Card, CardContent, CardHeader, CardTitle, CardDescription } from "@/components/ui/card";
3 import { Badge } from "@/components/ui/badge";
4 import { Button } from "@/components/ui/button";
5 import { BookOpen, Users, Clock, Award, PlayCircle, FileText } from "lucide-react";
6
7 const courses = [
8 {
9 id: 1,
10 title: "Digital Literacy Fundamentals",
11 description: "Master essential computer and internet skills for the modern workplace",
12 instructor: "Cameron De Vries",
13 duration: "6 weeks",
14 students: 124,
15 level: "Beginner",
16 category: "Technology",
17 image: "https://images.unsplash.com/photo-1516321318423-f06f85e504b3?w=800&auto=format&fit=crop",
18 modules: 12
19 },
20 {
21 id: 2,
22 title: "Entrepreneurship for Community Impact",
23 description: "Learn to build sustainable businesses that serve your community",
24 instructor: "Cameron De Vries",
25 duration: "8 weeks",
26 students: 89,
27 level: "Intermediate",
28 category: "Business",
29 image: "https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?w=800&auto=format&fit=crop",
30 modules: 16
31 },
32 {
33 id: 3,
34 title: "Leadership & Personal Development",
35 description: "Develop leadership skills to create positive change in your community",
36 instructor: "Cameron De Vries",
37 duration: "4 weeks",
38 students: 156,
39 level: "All Levels",
40 category: "Leadership",
41 image: "https://images.unsplash.com/photo-1552664730-d307ca884978?w=800&auto=format&fit=crop",
42 modules: 8
43 },
44 {
45 id: 4,
46 title: "Basic Web Development",
47 description: "Build your first website from scratch with HTML, CSS, and JavaScript",
48 instructor: "Cameron De Vries",
49 duration: "10 weeks",
50 students: 203,
51 level: "Beginner",
52 category: "Technology",
53 image: "https://images.unsplash.com/photo-1498050108023-c5249f4df085?w=800&auto=format&fit=crop",
54 modules: 20
55 }
56 ];
57
58 const CommunityClassroom = () => {
59 return (
60 <div className="min-h-screen">
61 <Navigation />
62 <main className="pt-24 pb-16">
63 <div className="container mx-auto px-4">
64 {/* Hero Section */}
65 <div className="max-w-4xl mx-auto text-center mb-16 space-y-4 animate-fade-in">
66 <h1 className="text-5xl md:text-6xl font-bold text-foreground">
67 Community Classroom
68 </h1>
69 <p className="text-xl text-muted-foreground">
70 Free educational courses designed to empower and uplift our community
71 </p>
72 <div className="flex justify-center gap-4 pt-4">
73 <Button size="lg">Browse Courses</Button>
74 <Button size="lg" variant="outline">Become an Instructor</Button>
75 </div>
76 </div>
77
78 {/* Stats Bar */}
79 <div className="max-w-5xl mx-auto mb-16 grid grid-cols-2 md:grid-cols-4 gap-4 animate-slide-up">
80 <Card className="text-center">
81 <CardContent className="pt-6">
82 <BookOpen className="w-8 h-8 mx-auto mb-2 text-primary" />
83 <p className="text-3xl font-bold text-foreground">{courses.length}</p>
84 <p className="text-sm text-muted-foreground">Active Courses</p>
85 </CardContent>
86 </Card>
87 <Card className="text-center">
88 <CardContent className="pt-6">
89 <Users className="w-8 h-8 mx-auto mb-2 text-primary" />
90 <p className="text-3xl font-bold text-foreground">572</p>
91 <p className="text-sm text-muted-foreground">Students</p>
92 </CardContent>
93 </Card>
94 <Card className="text-center">
95 <CardContent className="pt-6">
96 <Award className="w-8 h-8 mx-auto mb-2 text-primary" />
97 <p className="text-3xl font-bold text-foreground">340</p>
98 <p className="text-sm text-muted-foreground">Completions</p>
99 </CardContent>
100 </Card>
101 <Card className="text-center">
102 <CardContent className="pt-6">
103 <Clock className="w-8 h-8 mx-auto mb-2 text-primary" />
104 <p className="text-3xl font-bold text-foreground">100%</p>
105 <p className="text-sm text-muted-foreground">Free Access</p>
106 </CardContent>
107 </Card>
108 </div>
109
110 {/* Course Grid */}
111 <div className="max-w-6xl mx-auto">
112 <h2 className="text-3xl font-bold mb-8 text-foreground">Available Courses</h2>
113 <div className="grid md:grid-cols-2 gap-8">
114 {courses.map((course, index) => (
115 <Card
116 key={course.id}
117 className="hover:shadow-xl transition-all animate-slide-up overflow-hidden"
118 style={{ animationDelay: `${index * 0.1}s` }}
119 >
120 <div className="relative w-full h-48 overflow-hidden">
121 <img
122 src={course.image}
123 alt={course.title}
124 className="w-full h-full object-cover hover:scale-105 transition-transform duration-300"
125 />
126 <Badge className="absolute top-4 right-4" variant="secondary">
127 {course.category}
128 </Badge>
129 </div>
130 <CardHeader>
131 <div className="flex items-center justify-between mb-2">
132 <Badge variant="outline">{course.level}</Badge>
133 <div className="flex items-center gap-1 text-sm text-muted-foreground">
134 <Users className="w-4 h-4" />
135 <span>{course.students}</span>
136 </div>
137 </div>
138 <CardTitle className="text-xl">{course.title}</CardTitle>
139 <CardDescription>{course.description}</CardDescription>
140 </CardHeader>
141 <CardContent className="space-y-4">
142 <div className="flex items-center justify-between text-sm text-muted-foreground">
143 <div className="flex items-center gap-2">
144 <Clock className="w-4 h-4" />
145 <span>{course.duration}</span>
146 </div>
147 <div className="flex items-center gap-2">
148 <FileText className="w-4 h-4" />
149 <span>{course.modules} modules</span>
150 </div>
151 </div>
152 <p className="text-sm text-muted-foreground">
153 Instructor: {course.instructor}
154 </p>
155 <Button className="w-full group">
156 <PlayCircle className="w-4 h-4 mr-2" />
157 Start Learning
158 </Button>
159 </CardContent>
160 </Card>
161 ))}
162 </div>
163 </div>
164 </div>
165 </main>
166 </div>
167 );
168 };
169
170 export default CommunityClassroom;