feat: add CommunitiesSection configuration and integrate with Community component

This commit is contained in:
ArraysID
2025-05-10 05:35:24 +07:00
parent aad04b6f94
commit 07a1eb8dbc
8 changed files with 178 additions and 112 deletions
+4 -2
View File
@@ -1,3 +1,4 @@
import { getGlobalsCommunitiesSection } from '../../repositories/get-globals-communitues-section';
import { getGlobalsFeaturesSection } from '../../repositories/get-globals-features-section';
import { getGlobalsHeroSection } from '../../repositories/get-globals-hero-section';
import { CallToAction } from './_components/call-to-action';
@@ -12,9 +13,10 @@ import { Testimonials } from './_components/testimonials';
export const revalidate = 10; // Seconds
export default async function Page() {
const [heroData, featuresData] = await Promise.all([
const [heroData, featuresData, communitiesData] = await Promise.all([
getGlobalsHeroSection(),
getGlobalsFeaturesSection(),
getGlobalsCommunitiesSection(),
]);
return (
@@ -23,7 +25,7 @@ export default async function Page() {
<main className="flex-1">
<Hero {...heroData} />
<Features {...featuresData} />
<Community />
<Community {...communitiesData} />
<LearningResources />
<Testimonials />
<CallToAction />