92 lines
2.8 KiB
TypeScript
92 lines
2.8 KiB
TypeScript
import React, { useEffect, useState } from 'react';
|
|
import type { ReactElement } from 'react';
|
|
import Head from 'next/head';
|
|
import Link from 'next/link';
|
|
import { useAppSelector } from '../../stores/hooks';
|
|
import LayoutGuest from '../../layouts/Guest';
|
|
import WebSiteHeader from '../../components/WebPageComponents/Header';
|
|
import WebSiteFooter from '../../components/WebPageComponents/Footer';
|
|
import {
|
|
HeroDesigns,
|
|
ContactFormDesigns,
|
|
} from '../../components/WebPageComponents/designs';
|
|
|
|
import HeroSection from '../../components/WebPageComponents/HeroComponent';
|
|
|
|
import ContactFormSection from '../../components/WebPageComponents/ContactFormComponent';
|
|
|
|
export default function WebSite() {
|
|
const cardsStyle = useAppSelector((state) => state.style.cardsStyle);
|
|
const bgColor = useAppSelector((state) => state.style.bgLayoutColor);
|
|
const projectName = 'test233';
|
|
|
|
useEffect(() => {
|
|
const darkElement = document.querySelector('body .dark');
|
|
if (darkElement) {
|
|
darkElement.classList.remove('dark');
|
|
}
|
|
}, []);
|
|
const pages = [
|
|
{
|
|
href: '/home',
|
|
label: 'home',
|
|
},
|
|
|
|
{
|
|
href: '/about',
|
|
label: 'about',
|
|
},
|
|
|
|
{
|
|
href: '/services',
|
|
label: 'services',
|
|
},
|
|
|
|
{
|
|
href: '/contact',
|
|
label: 'contact',
|
|
},
|
|
|
|
{
|
|
href: '/faq',
|
|
label: 'FAQ',
|
|
},
|
|
];
|
|
|
|
return (
|
|
<div className='flex flex-col min-h-screen'>
|
|
<Head>
|
|
<title>{`Contact Us - ${projectName}`}</title>
|
|
<meta
|
|
name='description'
|
|
content={`Get in touch with ${projectName} for any inquiries or support. Our team is here to assist you and ensure you have the best experience with our services.`}
|
|
/>
|
|
</Head>
|
|
<WebSiteHeader projectName={'test233'} pages={pages} />
|
|
<main className={`flex-grow bg-white rounded-none `}>
|
|
<HeroSection
|
|
projectName={'test233'}
|
|
image={['Customer support team assisting clients']}
|
|
mainText={`Connect with ${projectName} Today`}
|
|
subTitle={`We're here to help you with any questions or support you need. Reach out to ${projectName} and let us assist you in enhancing your legal operations.`}
|
|
design={HeroDesigns.TEXT_CENTER || ''}
|
|
buttonText={`Contact Us Now`}
|
|
/>
|
|
|
|
<ContactFormSection
|
|
projectName={'test233'}
|
|
design={ContactFormDesigns.WITH_IMAGE || ''}
|
|
image={['Person typing on a laptop']}
|
|
mainText={`Reach Out to ${projectName} `}
|
|
subTitle={`We're available to assist you with any inquiries or support. Expect a prompt response from our dedicated team at ${projectName}.`}
|
|
/>
|
|
</main>
|
|
<WebSiteFooter projectName={'test233'} pages={pages} />
|
|
</div>
|
|
);
|
|
}
|
|
|
|
WebSite.getLayout = function getLayout(page: ReactElement) {
|
|
return <LayoutGuest>{page}</LayoutGuest>;
|
|
};
|