|
| 1 | +import React from 'react'; |
| 2 | +import Link from '@docusaurus/Link'; |
| 3 | +import { FaComments, FaUsers, FaChalkboardTeacher, FaHeadset } from 'react-icons/fa'; // React Icons |
| 4 | + |
| 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 | +} |
| 11 | + |
| 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 | + }, |
| 41 | +]; |
| 42 | + |
| 43 | +const Community: React.FC = () => { |
| 44 | + 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 |
| 49 | + </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. |
| 52 | + </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> |
| 69 | + ))} |
| 70 | + </div> |
| 71 | + </div> |
| 72 | + </section> |
| 73 | + ); |
| 74 | +}; |
| 75 | + |
| 76 | +export default Community; |
0 commit comments