51 lines
2.1 KiB
TypeScript
51 lines
2.1 KiB
TypeScript
import React from "react";
|
|
import AosComponent from "@/components/aos.component";
|
|
import OurServicesComponent from "@/components/our.services.component";
|
|
import AboutUsComponent from "@/components/about.us.component";
|
|
import OurSpecialitiesComponent from "@/components/our.specialities.component";
|
|
import ContactUsComponent from "@/components/contact.us.component";
|
|
import PricingComponent from "@/components/pricing.component";
|
|
import FeedbackComponent from "@/components/feedbackComponent";
|
|
import BlogPostsComponent from "@/components/blog.posts.component";
|
|
import FooterComponent from "@/components/footer.component";
|
|
import SubscribeComponent from "@/components/subscribe.component";
|
|
import SubHeaderComponent from "@/components/subHeader.component";
|
|
import BootstrapComponent from "@/components/bootstrap.component";
|
|
import webApi from "@/app/api/web-client/web-api";
|
|
|
|
export default async function About() {
|
|
const pageData = await webApi.getAboutPage();
|
|
|
|
const {header,
|
|
ourServices,
|
|
aboutUs,
|
|
contactUs,
|
|
ourSpecialities,
|
|
prices,
|
|
blogs,
|
|
subscribeNow,
|
|
footer,
|
|
feedbacks
|
|
} = pageData;
|
|
|
|
|
|
return (
|
|
<>
|
|
{ header && <SubHeaderComponent header1={header?.header1} header2={header?.header2} description={header?.description}/> }
|
|
{ ourServices && <OurServicesComponent title={ourServices?.title!} header={ourServices?.header!} description={ourServices?.description!} /> }
|
|
{ aboutUs && <AboutUsComponent data={aboutUs}/>}
|
|
{ ourSpecialities && <OurSpecialitiesComponent config={ourSpecialities} /> }
|
|
{ contactUs && <ContactUsComponent contactUs={contactUs}/>}
|
|
{ prices && <PricingComponent config={prices} /> }
|
|
{ feedbacks && <FeedbackComponent config={feedbacks} /> }
|
|
{ blogs && <BlogPostsComponent config={blogs} />}
|
|
{subscribeNow && <SubscribeComponent config={subscribeNow} /> }
|
|
{ footer && <FooterComponent config={footer} />}
|
|
<AosComponent />
|
|
<BootstrapComponent />
|
|
|
|
</>
|
|
|
|
);
|
|
}
|