2025-06-18 17:08:14 +00:00

98 lines
3.7 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,
FaqDesigns,
} from '../../components/WebPageComponents/designs';
import HeroSection from '../../components/WebPageComponents/HeroComponent';
import FaqSection from '../../components/WebPageComponents/FaqComponent';
export default function WebSite() {
const cardsStyle = useAppSelector((state) => state.style.cardsStyle);
const bgColor = useAppSelector((state) => state.style.bgLayoutColor);
const projectName = 'society-community-portal';
useEffect(() => {
const darkElement = document.querySelector('body .dark');
if (darkElement) {
darkElement.classList.remove('dark');
}
}, []);
const faqs = [
{
question: 'What is the main purpose of ${projectName}?',
answer:
'${projectName} is designed to streamline management processes, enhance team collaboration, and provide insightful analytics to drive business success.',
},
{
question: 'How can I access ${projectName} features?',
answer:
'Once you sign up, you can access all features through the user-friendly dashboard. Customize your experience to suit your management needs.',
},
{
question: 'Is there a mobile version of ${projectName}?',
answer:
'Yes, ${projectName} is accessible on both desktop and mobile devices, ensuring you can manage your team on the go.',
},
{
question: 'What are the pricing plans for ${projectName}?',
answer:
'We offer flexible pricing plans to accommodate different business sizes and needs. Visit our pricing page for detailed information.',
},
{
question: 'How does ${projectName} ensure data security?',
answer:
'${projectName} employs advanced encryption and security protocols to protect your data, ensuring it remains confidential and secure.',
},
{
question: 'Can I integrate ${projectName} with other tools?',
answer:
'Yes, ${projectName} supports integration with various third-party tools to enhance your workflow and productivity.',
},
];
return (
<div className='flex flex-col min-h-screen'>
<Head>
<title>{`Frequently Asked Questions - ${projectName}`}</title>
<meta
name='description'
content={`Find answers to common questions about ${projectName}. Learn more about our features, pricing, and support options.`}
/>
</Head>
<WebSiteHeader projectName={'society-community-portal'} />
<main className={`flex-grow bg-white rounded-none `}>
<HeroSection
projectName={'society-community-portal'}
image={['Person reading FAQ on tablet']}
mainText={`Your Questions Answered with ${projectName}`}
subTitle={`Explore our comprehensive FAQ section to find answers to your questions about ${projectName}. Get insights into features, pricing, and more.`}
design={HeroDesigns.TEXT_CENTER || ''}
buttonText={`Browse FAQs`}
/>
<FaqSection
projectName={'society-community-portal'}
design={FaqDesigns.ACCORDION || ''}
faqs={faqs}
mainText={`Common Questions about ${projectName} `}
/>
</main>
<WebSiteFooter projectName={'society-community-portal'} />
</div>
);
}
WebSite.getLayout = function getLayout(page: ReactElement) {
return <LayoutGuest>{page}</LayoutGuest>;
};