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

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

Synced Nov 21, 03:37 UTC

Add new pages

Add community news, job seeker, AI tutor, and community classroom pages.

gpt-engineer-app[bot] committed Nov 6, 2025 at 22:05 UTC c59e69813395a1cc5d4ed55b62e8ada26a364e48
6 files changed +571
src/App.tsx
+8
@@ -4,6 +4,10 @@ import { TooltipProvider } from "@/components/ui/tooltip";
4 import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
5 import { BrowserRouter, Routes, Route } from "react-router-dom";
6 import Index from "./pages/Index";
7 +import CommunityNews from "./pages/CommunityNews";
8 +import JobSeeker from "./pages/JobSeeker";
9 +import AITutor from "./pages/AITutor";
10 +import CommunityClassroom from "./pages/CommunityClassroom";
11 import NotFound from "./pages/NotFound";
12
13 const queryClient = new QueryClient();
@@ -16,6 +20,10 @@ const App = () => (
20 <BrowserRouter>
21 <Routes>
22 <Route path="/" element={<Index />} />
23 + <Route path="/community-news" element={<CommunityNews />} />
24 + <Route path="/job-seeker" element={<JobSeeker />} />
25 + <Route path="/ai-tutor" element={<AITutor />} />
26 + <Route path="/community-classroom" element={<CommunityClassroom />} />
27 {/* ADD ALL CUSTOM ROUTES ABOVE THE CATCH-ALL "*" ROUTE */}
28 <Route path="*" element={<NotFound />} />
29 </Routes>
src/components/Navigation.tsx
+12
@@ -14,6 +14,18 @@ const navItems = [{
14 }, {
15 label: "Services",
16 href: "#services"
17 +}, {
18 + label: "News",
19 + href: "/community-news"
20 +}, {
21 + label: "Jobs",
22 + href: "/job-seeker"
23 +}, {
24 + label: "AI Tutor",
25 + href: "/ai-tutor"
26 +}, {
27 + label: "Classroom",
28 + href: "/community-classroom"
29 }, {
30 label: "Get Involved",
31 href: "#join"
src/pages/AITutor.tsx new
+137
@@ -0,0 +1,137 @@
1 +import { Navigation } from "@/components/Navigation";
2 +import { Card, CardContent, CardHeader, CardTitle, CardDescription } from "@/components/ui/card";
3 +import { Button } from "@/components/ui/button";
4 +import { Textarea } from "@/components/ui/textarea";
5 +import { Bot, BookOpen, MessageSquare, Sparkles, Brain, GraduationCap } from "lucide-react";
6 +import { useState } from "react";
7 +
8 +const features = [
9 + {
10 + icon: Brain,
11 + title: "Personalized Learning",
12 + description: "Adaptive AI that understands your learning style and pace"
13 + },
14 + {
15 + icon: MessageSquare,
16 + title: "Interactive Conversations",
17 + description: "Ask questions and get instant, detailed explanations"
18 + },
19 + {
20 + icon: BookOpen,
21 + title: "Multiple Subjects",
22 + description: "Support for math, science, languages, and more"
23 + },
24 + {
25 + icon: GraduationCap,
26 + title: "Skill Development",
27 + description: "Build practical skills for career advancement"
28 + }
29 +];
30 +
31 +const AITutor = () => {
32 + const [question, setQuestion] = useState("");
33 + const [isLoading, setIsLoading] = useState(false);
34 +
35 + const handleAsk = () => {
36 + if (!question.trim()) return;
37 + setIsLoading(true);
38 + // Placeholder for AI integration
39 + setTimeout(() => {
40 + setIsLoading(false);
41 + setQuestion("");
42 + }, 2000);
43 + };
44 +
45 + return (
46 + <div className="min-h-screen">
47 + <Navigation />
48 + <main className="pt-24 pb-16">
49 + <div className="container mx-auto px-4">
50 + {/* Hero Section */}
51 + <div className="max-w-4xl mx-auto text-center mb-16 space-y-4 animate-fade-in">
52 + <div className="flex justify-center mb-4">
53 + <div className="p-4 bg-primary/10 rounded-full">
54 + <Bot className="w-16 h-16 text-primary" />
55 + </div>
56 + </div>
57 + <h1 className="text-5xl md:text-6xl font-bold text-foreground">
58 + AI Learning Assistant
59 + </h1>
60 + <p className="text-xl text-muted-foreground">
61 + Your personal AI tutor available 24/7 to help you learn and grow
62 + </p>
63 + </div>
64 +
65 + {/* Interactive Question Box */}
66 + <div className="max-w-3xl mx-auto mb-16 animate-slide-up">
67 + <Card className="border-2">
68 + <CardHeader>
69 + <CardTitle className="flex items-center gap-2">
70 + <Sparkles className="w-5 h-5 text-primary" />
71 + Ask Your Question
72 + </CardTitle>
73 + <CardDescription>
74 + Get instant help with homework, concepts, or skills you want to learn
75 + </CardDescription>
76 + </CardHeader>
77 + <CardContent className="space-y-4">
78 + <Textarea
79 + placeholder="Example: Can you explain the Pythagorean theorem with a real-world example?"
80 + value={question}
81 + onChange={(e) => setQuestion(e.target.value)}
82 + rows={4}
83 + className="resize-none"
84 + />
85 + <Button
86 + onClick={handleAsk}
87 + disabled={isLoading || !question.trim()}
88 + className="w-full"
89 + >
90 + {isLoading ? "Thinking..." : "Get Answer"}
91 + </Button>
92 + <p className="text-sm text-muted-foreground text-center">
93 + AI tutoring is coming soon! Join our waitlist to be notified.
94 + </p>
95 + </CardContent>
96 + </Card>
97 + </div>
98 +
99 + {/* Features Grid */}
100 + <div className="max-w-5xl mx-auto">
101 + <h2 className="text-3xl font-bold text-center mb-12 text-foreground">
102 + Why Choose AI Tutoring?
103 + </h2>
104 + <div className="grid md:grid-cols-2 lg:grid-cols-4 gap-6">
105 + {features.map((feature, index) => {
106 + const Icon = feature.icon;
107 + return (
108 + <Card
109 + key={feature.title}
110 + className="text-center hover:shadow-xl transition-all animate-slide-up"
111 + style={{ animationDelay: `${index * 0.1}s` }}
112 + >
113 + <CardHeader>
114 + <div className="flex justify-center mb-4">
115 + <div className="p-3 bg-primary/10 rounded-full">
116 + <Icon className="w-8 h-8 text-primary" />
117 + </div>
118 + </div>
119 + <CardTitle className="text-lg">{feature.title}</CardTitle>
120 + </CardHeader>
121 + <CardContent>
122 + <p className="text-muted-foreground text-sm">
123 + {feature.description}
124 + </p>
125 + </CardContent>
126 + </Card>
127 + );
128 + })}
129 + </div>
130 + </div>
131 + </div>
132 + </main>
133 + </div>
134 + );
135 +};
136 +
137 +export default AITutor;
src/pages/CommunityClassroom.tsx new
+170
@@ -0,0 +1,170 @@
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;
src/pages/CommunityNews.tsx new
+102
@@ -0,0 +1,102 @@
1 +import { Navigation } from "@/components/Navigation";
2 +import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
3 +import { Badge } from "@/components/ui/badge";
4 +import { Calendar, User, ArrowRight } from "lucide-react";
5 +import { Button } from "@/components/ui/button";
6 +
7 +const newsArticles = [
8 + {
9 + id: 1,
10 + title: "Community Unity Launches New Youth Development Program",
11 + excerpt: "Empowering the next generation through mentorship and skills training initiatives across local communities.",
12 + date: "2025-03-15",
13 + author: "Cameron De Vries",
14 + category: "Programs",
15 + image: "https://images.unsplash.com/photo-1523240795612-9a054b0db644?w=800&auto=format&fit=crop"
16 + },
17 + {
18 + id: 2,
19 + title: "Unspoken Truths Podcast Reaches 10,000 Listeners",
20 + excerpt: "Celebrating a milestone in authentic conversations that matter, connecting communities through shared stories.",
21 + date: "2025-03-10",
22 + author: "Cameron De Vries",
23 + category: "Podcast",
24 + image: "https://images.unsplash.com/photo-1478737270239-2f02b77fc618?w=800&auto=format&fit=crop"
25 + },
26 + {
27 + id: 3,
28 + title: "Digital Agency Partners with Local Businesses",
29 + excerpt: "Supporting community growth through innovative digital solutions and strategic partnerships.",
30 + date: "2025-03-05",
31 + author: "Cameron De Vries",
32 + category: "Business",
33 + image: "https://images.unsplash.com/photo-1552664730-d307ca884978?w=800&auto=format&fit=crop"
34 + }
35 +];
36 +
37 +const CommunityNews = () => {
38 + return (
39 + <div className="min-h-screen">
40 + <Navigation />
41 + <main className="pt-24 pb-16">
42 + <div className="container mx-auto px-4">
43 + {/* Hero Section */}
44 + <div className="max-w-4xl mx-auto text-center mb-16 space-y-4 animate-fade-in">
45 + <h1 className="text-5xl md:text-6xl font-bold text-foreground">
46 + Community News
47 + </h1>
48 + <p className="text-xl text-muted-foreground">
49 + Stay informed about our latest initiatives, achievements, and community impact
50 + </p>
51 + </div>
52 +
53 + {/* News Grid */}
54 + <div className="max-w-6xl mx-auto grid md:grid-cols-2 lg:grid-cols-3 gap-8">
55 + {newsArticles.map((article, index) => (
56 + <Card
57 + key={article.id}
58 + className="hover:shadow-xl transition-all animate-slide-up overflow-hidden"
59 + style={{ animationDelay: `${index * 0.1}s` }}
60 + >
61 + <div className="w-full h-48 overflow-hidden">
62 + <img
63 + src={article.image}
64 + alt={article.title}
65 + className="w-full h-full object-cover hover:scale-105 transition-transform duration-300"
66 + />
67 + </div>
68 + <CardHeader>
69 + <div className="flex items-center gap-2 mb-2">
70 + <Badge variant="secondary">{article.category}</Badge>
71 + </div>
72 + <CardTitle className="text-xl line-clamp-2">{article.title}</CardTitle>
73 + </CardHeader>
74 + <CardContent className="space-y-4">
75 + <p className="text-muted-foreground line-clamp-3">
76 + {article.excerpt}
77 + </p>
78 + <div className="flex items-center justify-between text-sm text-muted-foreground">
79 + <div className="flex items-center gap-2">
80 + <Calendar className="w-4 h-4" />
81 + <span>{new Date(article.date).toLocaleDateString()}</span>
82 + </div>
83 + <div className="flex items-center gap-2">
84 + <User className="w-4 h-4" />
85 + <span>{article.author}</span>
86 + </div>
87 + </div>
88 + <Button variant="outline" className="w-full group">
89 + Read More
90 + <ArrowRight className="w-4 h-4 ml-2 group-hover:translate-x-1 transition-transform" />
91 + </Button>
92 + </CardContent>
93 + </Card>
94 + ))}
95 + </div>
96 + </div>
97 + </main>
98 + </div>
99 + );
100 +};
101 +
102 +export default CommunityNews;
src/pages/JobSeeker.tsx new
+142
@@ -0,0 +1,142 @@
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 { Briefcase, MapPin, Clock, DollarSign, Search } from "lucide-react";
6 +import { Input } from "@/components/ui/input";
7 +
8 +const jobListings = [
9 + {
10 + id: 1,
11 + title: "Community Outreach Coordinator",
12 + company: "Community & Unity",
13 + location: "Cape Town, South Africa",
14 + type: "Full-time",
15 + salary: "R25,000 - R35,000",
16 + description: "Lead community engagement initiatives and build partnerships with local organizations.",
17 + skills: ["Communication", "Event Planning", "Community Building"],
18 + posted: "2 days ago"
19 + },
20 + {
21 + id: 2,
22 + title: "Digital Marketing Specialist",
23 + company: "Community & Unity Digital Agency",
24 + location: "Remote",
25 + type: "Full-time",
26 + salary: "R30,000 - R45,000",
27 + description: "Create and execute digital marketing strategies for community-focused businesses.",
28 + skills: ["SEO", "Social Media", "Content Creation"],
29 + posted: "5 days ago"
30 + },
31 + {
32 + id: 3,
33 + title: "Youth Program Facilitator",
34 + company: "Community & Unity",
35 + location: "Johannesburg, South Africa",
36 + type: "Part-time",
37 + salary: "R15,000 - R20,000",
38 + description: "Facilitate educational workshops and mentorship programs for young adults.",
39 + skills: ["Teaching", "Mentorship", "Youth Development"],
40 + posted: "1 week ago"
41 + },
42 + {
43 + id: 4,
44 + title: "Web Developer",
45 + company: "Community & Unity Digital Agency",
46 + location: "Hybrid",
47 + type: "Full-time",
48 + salary: "R35,000 - R55,000",
49 + description: "Build and maintain websites for community organizations and small businesses.",
50 + skills: ["React", "TypeScript", "Responsive Design"],
51 + posted: "3 days ago"
52 + }
53 +];
54 +
55 +const JobSeeker = () => {
56 + return (
57 + <div className="min-h-screen">
58 + <Navigation />
59 + <main className="pt-24 pb-16">
60 + <div className="container mx-auto px-4">
61 + {/* Hero Section */}
62 + <div className="max-w-4xl mx-auto text-center mb-12 space-y-6 animate-fade-in">
63 + <h1 className="text-5xl md:text-6xl font-bold text-foreground">
64 + Career Opportunities
65 + </h1>
66 + <p className="text-xl text-muted-foreground">
67 + Join our mission to build stronger communities through meaningful work
68 + </p>
69 +
70 + {/* Search Bar */}
71 + <div className="max-w-2xl mx-auto flex gap-2">
72 + <div className="relative flex-1">
73 + <Search className="absolute left-3 top-1/2 -translate-y-1/2 w-5 h-5 text-muted-foreground" />
74 + <Input
75 + placeholder="Search job titles, keywords..."
76 + className="pl-10"
77 + />
78 + </div>
79 + <Button>Search</Button>
80 + </div>
81 + </div>
82 +
83 + {/* Job Listings */}
84 + <div className="max-w-4xl mx-auto space-y-6">
85 + {jobListings.map((job, index) => (
86 + <Card
87 + key={job.id}
88 + className="hover:shadow-xl transition-all animate-slide-up"
89 + style={{ animationDelay: `${index * 0.1}s` }}
90 + >
91 + <CardHeader>
92 + <div className="flex items-start justify-between">
93 + <div className="space-y-2">
94 + <CardTitle className="text-2xl">{job.title}</CardTitle>
95 + <CardDescription className="text-base">{job.company}</CardDescription>
96 + </div>
97 + <Badge variant="secondary" className="text-sm">
98 + {job.type}
99 + </Badge>
100 + </div>
101 + </CardHeader>
102 + <CardContent className="space-y-4">
103 + <p className="text-muted-foreground">{job.description}</p>
104 +
105 + <div className="grid grid-cols-2 md:grid-cols-3 gap-4 text-sm">
106 + <div className="flex items-center gap-2 text-muted-foreground">
107 + <MapPin className="w-4 h-4" />
108 + <span>{job.location}</span>
109 + </div>
110 + <div className="flex items-center gap-2 text-muted-foreground">
111 + <DollarSign className="w-4 h-4" />
112 + <span>{job.salary}</span>
113 + </div>
114 + <div className="flex items-center gap-2 text-muted-foreground">
115 + <Clock className="w-4 h-4" />
116 + <span>{job.posted}</span>
117 + </div>
118 + </div>
119 +
120 + <div className="flex flex-wrap gap-2">
121 + {job.skills.map((skill) => (
122 + <Badge key={skill} variant="outline">
123 + {skill}
124 + </Badge>
125 + ))}
126 + </div>
127 +
128 + <Button className="w-full md:w-auto">
129 + <Briefcase className="w-4 h-4 mr-2" />
130 + Apply Now
131 + </Button>
132 + </CardContent>
133 + </Card>
134 + ))}
135 + </div>
136 + </div>
137 + </main>
138 + </div>
139 + );
140 +};
141 +
142 +export default JobSeeker;