feat: add CommunitySection component and integrate it into the main page

This commit is contained in:
arraysid
2025-05-27 09:27:58 +07:00
parent 9bd326d7ad
commit 50b9380add
3 changed files with 5 additions and 12 deletions
@@ -12,7 +12,7 @@ import {
FaTiktok, FaTiktok,
} from 'react-icons/fa'; } from 'react-icons/fa';
export function Communities() { export function CommunitySection() {
const ref = useRef(null); const ref = useRef(null);
const isInView = useInView(ref, { once: true, amount: 0.2 }); const isInView = useInView(ref, { once: true, amount: 0.2 });
@@ -1,4 +1,4 @@
import { Communities } from './_components/communities'; import { CommunitySection } from './_components/community-section';
import { CTASection } from './_components/cta-section'; import { CTASection } from './_components/cta-section';
import { Hero } from './_components/hero'; import { Hero } from './_components/hero';
import { TestimonialSection } from './_components/testimonial-section'; import { TestimonialSection } from './_components/testimonial-section';
@@ -6,7 +6,7 @@ export default function Page() {
return ( return (
<> <>
<Hero /> <Hero />
<Communities /> <CommunitySection />
<TestimonialSection /> <TestimonialSection />
<CTASection /> <CTASection />
</> </>
+2 -9
View File
@@ -1,20 +1,13 @@
[ [
{ {
"name": "Facebook Group", "name": "Facebook",
"icon": "FaFacebook", "icon": "FaFacebook",
"color": "#1877F2", "color": "#1877F2",
"description": "Join discussions and share knowledge", "description": "Join discussions and share knowledge",
"link": "#" "link": "#"
}, },
{ {
"name": "Facebook Group II", "name": "Discord",
"icon": "FaFacebook",
"color": "#1877F2",
"description": "Join discussions and share knowledge",
"link": "#"
},
{
"name": "Discord Server",
"icon": "FaDiscord", "icon": "FaDiscord",
"color": "#5865F2", "color": "#5865F2",
"description": "Real-time collaboration chat", "description": "Real-time collaboration chat",