2025-06-05 17:00:07 +03:30
|
|
|
import images from '@/assets/images/images';
|
|
|
|
|
import InnerPageBanner from '@/components/layout/innerPages/banner';
|
|
|
|
|
import ContactMap from '@/components/layout/map';
|
|
|
|
|
import ContactForm from '@/components/pages/contact/ContactMeForm';
|
|
|
|
|
import TouchUs from '@/components/pages/contact/TouchUs';
|
|
|
|
|
import { t } from '@/locales/translates';
|
|
|
|
|
import Image from 'next/image';
|
2025-06-03 16:57:33 +03:30
|
|
|
|
2025-06-05 17:00:07 +03:30
|
|
|
async function getData() {
|
|
|
|
|
await new Promise((resolve) => setTimeout(resolve, 1000));
|
|
|
|
|
return { message: 'This data was fetched on the server!' };
|
|
|
|
|
}
|
2025-06-03 16:57:33 +03:30
|
|
|
|
2025-06-05 17:00:07 +03:30
|
|
|
export default async function Contact() {
|
|
|
|
|
const data = await getData();
|
2025-06-03 16:57:33 +03:30
|
|
|
|
2025-06-05 17:00:07 +03:30
|
|
|
return (
|
|
|
|
|
<main className="flex flex-col items-center justify-between">
|
|
|
|
|
<InnerPageBanner
|
|
|
|
|
title={t('pages_contact_title') as string}
|
|
|
|
|
imageSrc={images.blogBanner.src}
|
|
|
|
|
/>
|
2025-06-03 16:57:33 +03:30
|
|
|
|
2025-06-05 17:00:07 +03:30
|
|
|
<div className="flex w-full flex-col bg-gray-200 pt-4 md:pt-28">
|
|
|
|
|
<div className="relative container mx-auto flex w-full flex-col items-stretch overflow-hidden rounded-lg md:flex-row">
|
|
|
|
|
<TouchUs />
|
|
|
|
|
<ContactForm />
|
2025-06-03 16:57:33 +03:30
|
|
|
</div>
|
2025-06-05 17:00:07 +03:30
|
|
|
<div className="absolute -bottom-[17.32rem] w-1/2 max-md:hidden md:w-2/5">
|
|
|
|
|
<Image
|
|
|
|
|
alt="footer-bg"
|
|
|
|
|
src={images.factoryVector}
|
|
|
|
|
className="h-full w-full object-cover"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
<div className="mt-4 w-full md:mt-28">
|
|
|
|
|
<div className="h-64 w-full overflow-hidden rounded-lg bg-gray-200">
|
|
|
|
|
<ContactMap />
|
2025-06-03 16:57:33 +03:30
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2025-06-05 17:00:07 +03:30
|
|
|
</main>
|
2025-06-03 16:57:33 +03:30
|
|
|
);
|
|
|
|
|
}
|