|
1 | | -import React from 'react'; |
2 | | -import Link from '@docusaurus/Link'; |
3 | | -import { FaComments, FaUsers, FaChalkboardTeacher, FaHeadset } from 'react-icons/fa'; // React Icons |
| 1 | +import React from "react"; |
| 2 | +import Link from "@docusaurus/Link"; |
4 | 3 |
|
5 | | -interface Feature { |
6 | | - title: string; |
7 | | - description: string; |
8 | | - icon: React.FC<React.SVGProps<SVGSVGElement>>; // This type remains the same |
9 | | - link: string; |
10 | | -} |
| 4 | +import { GitHub, Linkedin } from "react-feather"; |
11 | 5 |
|
12 | | -const features: Feature[] = [ |
13 | | - { |
14 | | - title: 'Community Forums', |
15 | | - description: |
16 | | - 'Engage with fellow learners and experienced developers. Share knowledge, ask questions, and collaborate on projects.', |
17 | | - icon: FaComments, // Replacing ChatAlt2Icon with FaComments |
18 | | - link: '#', // /community/forums |
19 | | - }, |
20 | | - { |
21 | | - title: 'Live Chat Groups', |
22 | | - description: |
23 | | - 'Join real-time discussions in our chat groups. Stay updated with the latest trends and get instant help when you need it.', |
24 | | - icon: FaUsers, // Replacing UsersIcon with FaUsers |
25 | | - link: '#', // /community/chat |
26 | | - }, |
27 | | - { |
28 | | - title: 'Expert Mentorship', |
29 | | - description: |
30 | | - 'Receive guidance from industry experts. Our mentors are here to help you navigate your learning journey and achieve your goals.', |
31 | | - icon: FaChalkboardTeacher, // Replacing AcademicCapIcon with FaChalkboardTeacher |
32 | | - link: '#', |
33 | | - }, |
34 | | - { |
35 | | - title: '24/7 Support', |
36 | | - description: |
37 | | - 'Access our support team anytime. Whether you have technical issues or need assistance with your learning path, we’re here to help.', |
38 | | - icon: FaHeadset, // Replacing SupportIcon with FaHeadset |
39 | | - link: '#', |
40 | | - }, |
| 6 | +const githubUsernames = [ |
| 7 | + "CodeWith-PeterBull", |
| 8 | + "Rukundo-Bahati", |
| 9 | + "AkshitLakhera", |
| 10 | + "mcpdigital", |
41 | 11 | ]; |
42 | 12 |
|
43 | | -const Community: React.FC = () => { |
| 13 | +export default function Community() { |
44 | 14 | return ( |
45 | | - <section className="py-20 bg-white dark:bg-gray-800 text-gray-900 dark:text-gray-100"> |
46 | | - <div className="container px-4"> |
47 | | - <h2 className="text-3xl lg:text-4xl font-bold text-center mb-8"> |
48 | | - Community & Support |
| 15 | + <section className="no-underline-links"> |
| 16 | + <div className="mx-auto flex w-full flex-col items-center justify-center bg-gradient-to-b from-[#262626] to-black px-4 py-16 pt-64 text-white dark:from-zinc-200/90 dark:to-white dark:text-zinc-700"> |
| 17 | + <h2 className="text-3xl"> |
| 18 | + Join the <span className="text-primary-100">community</span> |
49 | 19 | </h2> |
50 | | - <p className="text-lg lg:text-xl text-center mb-12"> |
51 | | - Join our vibrant community and take advantage of comprehensive support to enhance your learning experience. Connect, collaborate, and grow with JavaScript Mastery. |
| 20 | + <p className="mb-10"> |
| 21 | + Join thousands of learners in mastering JavaScript from basics to |
| 22 | + advanced topics. Start your journey to becoming a JavaScript pro today |
52 | 23 | </p> |
53 | | - <div className="grid gap-8 grid-cols-1 lg:grid-cols-4 md:grid-cols-2"> |
54 | | - {features.map((feature, index) => ( |
55 | | - <div |
56 | | - key={index} |
57 | | - className="p-4 bg-gray-100 dark:bg-gray-700 rounded-lg shadow-md hover:shadow-xl transition-shadow duration-300 flex flex-col items-center text-center" |
58 | | - > |
59 | | - <feature.icon className="h-12 w-12 text-blue-500 dark:text-yellow-400 mb-4" /> |
60 | | - <h3 className="text-xl font-semibold mb-2">{feature.title}</h3> |
61 | | - <p className="flex-grow mb-4">{feature.description}</p> |
62 | | - <Link |
63 | | - to={feature.link} |
64 | | - className="mt-auto inline-block px-4 py-2 bg-blue-500 dark:bg-yellow-400 text-white dark:text-gray-800 font-semibold rounded-lg shadow-md hover:bg-blue-600 dark:hover:bg-yellow-500 transition-colors duration-300" |
65 | | - > |
66 | | - Learn More |
67 | | - </Link> |
68 | | - </div> |
| 24 | + <div className="mx-auto mb-16 flex flex-wrap -space-x-1.5"> |
| 25 | + {githubUsernames.map((username) => ( |
| 26 | + <img |
| 27 | + key={username} |
| 28 | + src={`https://github.com/${username}.png?size=60`} |
| 29 | + alt={`User ${username}`} |
| 30 | + loading="lazy" |
| 31 | + className="h-6 w-6 rounded-full border-2 border-solid border-white transition hover:-translate-y-2 hover:scale-150 lg:h-12 lg:w-12" |
| 32 | + /> |
69 | 33 | ))} |
70 | 34 | </div> |
| 35 | + <div className="flex w-full flex-col items-center justify-center gap-2 text-sm font-semibold lg:flex-row lg:gap-8"> |
| 36 | + <Link |
| 37 | + className="flex w-full items-center justify-center gap-2 rounded-sm border border-solid border-primary-100 bg-primary-100/10 px-2 py-2 text-primary-100 lg:w-auto" |
| 38 | + href="https://www.linkedin.com/in/ajay-dhangar/" |
| 39 | + > |
| 40 | + <Linkedin className="h-5 w-5" /> LinkedIn → |
| 41 | + </Link> |
| 42 | + <Link |
| 43 | + className="flex w-full items-center justify-center gap-2 rounded-sm border border-solid border-primary-100 bg-primary-100/10 px-2 py-2 text-primary-100 lg:w-auto" |
| 44 | + href="https://github.com/javascript-mastery" |
| 45 | + > |
| 46 | + <GitHub className="h-5 w-5" /> GitHub → |
| 47 | + </Link> |
| 48 | + </div> |
71 | 49 | </div> |
72 | 50 | </section> |
73 | 51 | ); |
74 | | -}; |
75 | | - |
76 | | -export default Community; |
| 52 | +} |
0 commit comments