[yoga-11] add common type and add logo

This commit is contained in:
Roland Schneider
2025-06-08 20:51:52 +02:00
parent 90a7dbf827
commit ca60a9a2f4
44 changed files with 390 additions and 24 deletions

View File

@@ -24,13 +24,16 @@ export default async function About() {
blogs,
subscribeNow,
footer,
common
} = pageData;
console.info("about us", JSON.stringify(aboutUs))
return (
<>
{ header && <SubHeaderComponent header1={header?.header1} header2={header?.header2} description={header?.description}/> }
{ header && <SubHeaderComponent header={header} common={common}/> }
{ aboutUs && <AboutUsWithBoxesComponent config={aboutUs}/>}
{ discount && <YogaDiscountComponent config={discount}/>}

View File

@@ -16,11 +16,12 @@ export default async function ContactPage(){
contactUs,
google_maps,
subscribe,
footer
footer,
common
} = await strapiApi.getContactPage();
return (
<>
{ <SubHeaderComponent header1={header} description={description} /> }
{ <SubHeaderComponent header={{header1:header,description}} common={common}/> }
{ contactUs && <ContactUsComponent contactUs={contactUs} /> }
{ google_maps && <GoogleMapsComponent config={google_maps} /> }
{ subscribe && <SubscribeComponent config={subscribe} styleClass={"contact_subscribe_section"} /> }

View File

@@ -15,11 +15,12 @@ export default async function About() {
questionsAndAnswers,
blogs,
subscribe,
footer
footer,
common
} = await strapiApi.getFaqPage();
return (
<>xxxxx
{ <SubHeaderComponent header1={header} description={description} /> }
<>
{ <SubHeaderComponent header={{header1:header,description}} common={common}/> }
{ questionsAndAnswers && <FaqComponent config={questionsAndAnswers} /> }
{ blogs && <BlogPostsComponent config={blogs} /> }
{ subscribe && <SubscribeComponent config={subscribe} /> }

View File

@@ -21,11 +21,12 @@ export default async function PricesPage( ) {
discount,
blogs,
subscribe,
footer
footer,
common
} = await strapiApi.getPricesPage();
return (
<>
<SubHeaderComponent header1={header} description={description}/>
<SubHeaderComponent header={{header1:header,description}} common={common}/>
{ price && <PricingComponent config={price}/> }
{ discount && <YogaDiscountComponent config={discount} /> }
{ blogs && <BlogPostsComponent config={blogs} /> }

View File

@@ -45,7 +45,8 @@ export default async function ServiceArticlePage({params}: {
return (
<>
{selectedService && selectedService.header && selectedService.description &&
<SubHeaderComponent header1={selectedService.header} description={selectedService.description}/>}
<SubHeaderComponent header={{header1:selectedService.header, description: selectedService.description}} common={common}/>}
<section className={clsx( styles.article, 'mb-3')}>
<div className="container">
<div className={"row"}>

View File

@@ -20,11 +20,12 @@ export default async function Services() {
feedbacks,
blogs,
footer,
subscribe
subscribe,
common
} = await strapiApi.getServicesPage();
return (
<>
{header && description && <SubHeaderComponent header1={header} description={description} />}
<SubHeaderComponent header={{header1:header,description}} common={common}/>
{ ourServices && <OurServicesComponent config={ourServices} /> }
{ contactUs && <ContactUsComponent contactUs={contactUs} />}
{ ourSpecialities && <OurSpecialitiesComponent config={ourSpecialities} /> }