add concatct page
This commit is contained in:
36
yoga-app/src/app/contact/page.tsx
Normal file
36
yoga-app/src/app/contact/page.tsx
Normal file
@@ -0,0 +1,36 @@
|
||||
import strapiApi from "@/api/strapi/strapi-api";
|
||||
import SubHeaderComponent from "@/components/subHeader.component";
|
||||
import FaqComponent from "@/components/faq.component";
|
||||
import BlogPostsComponent from "@/components/blog.posts.component";
|
||||
import SubscribeComponent from "@/components/subscribe.component";
|
||||
import FooterComponent from "@/components/footer.component";
|
||||
import AosComponent from "@/components/aos.component";
|
||||
import BootstrapComponent from "@/components/bootstrap.component";
|
||||
import React from "react";
|
||||
import ContactUsComponent from "@/components/contact.us.component";
|
||||
import GoogleMapsComponent from "@/components/google.maps.component";
|
||||
|
||||
export default async function ContactPage(){
|
||||
|
||||
const {
|
||||
header,
|
||||
description,
|
||||
contactUs,
|
||||
google_maps,
|
||||
subscribe,
|
||||
footer
|
||||
} = await strapiApi.getContactPage();
|
||||
return (
|
||||
<>
|
||||
{ <SubHeaderComponent header1={header} description={description} /> }
|
||||
{ contactUs && <ContactUsComponent contactUs={contactUs} /> }
|
||||
{ google_maps && <GoogleMapsComponent config={google_maps} /> }
|
||||
{ subscribe && <SubscribeComponent config={subscribe} styleClass={"contact_subscribe_section"} /> }
|
||||
{ footer && <FooterComponent config={footer} />}
|
||||
<AosComponent />
|
||||
<BootstrapComponent />
|
||||
</>
|
||||
|
||||
);
|
||||
|
||||
}
|
||||
@@ -12,6 +12,7 @@ import SubscribeComponent from "@/components/subscribe.component";
|
||||
import strapiApi from "@/api/strapi/strapi-api";
|
||||
import SubHeaderComponent from "@/components/subHeader.component";
|
||||
import FaqComponent from "@/components/faq.component";
|
||||
import BootstrapComponent from "@/components/bootstrap.component";
|
||||
|
||||
export default async function About() {
|
||||
const {
|
||||
@@ -30,6 +31,7 @@ export default async function About() {
|
||||
{ subscribe && <SubscribeComponent config={subscribe} /> }
|
||||
{ footer && <FooterComponent config={footer} /> }
|
||||
<AosComponent />
|
||||
<BootstrapComponent />
|
||||
</>
|
||||
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user