[yoga-12] add common section to home API and update related components for logo image

This commit is contained in:
Roland Schneider
2025-07-09 16:13:13 +02:00
parent 7133e43464
commit 1a7c5c5247
9 changed files with 54 additions and 7 deletions

View File

@@ -17,6 +17,7 @@ export default async function Home() {
const pageData = await webApi.getHomePage();
const {
common,
header,
ourServices,
aboutUs,
@@ -28,9 +29,11 @@ export default async function Home() {
footer,
feedbacks
} = pageData;
console.info("Home page data", pageData);
return (
<>
{ header && <MainHeaderComponent config={header}/> }
{ header && <MainHeaderComponent config={header} common={common} /> }
{ aboutUs && <AboutUsComponent data={aboutUs} /> }
{ ourServices && <OurServicesComponent config={ourServices}/> }
{ ourSpecialities && <OurSpecialitiesComponent config={ourSpecialities} /> }