31928/frontend/src/pages/index.tsx
2025-06-02 15:11:38 +00:00

163 lines
5.2 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,
FeaturesDesigns,
PricingDesigns,
} from '../components/WebPageComponents/designs';
import HeroSection from '../components/WebPageComponents/HeroComponent';
import FeaturesSection from '../components/WebPageComponents/FeaturesComponent';
import PricingSection from '../components/WebPageComponents/PricingComponent';
export default function WebSite() {
const cardsStyle = useAppSelector((state) => state.style.cardsStyle);
const bgColor = useAppSelector((state) => state.style.bgLayoutColor);
const projectName = 'Employee Payroll with Smart Attendance';
useEffect(() => {
const darkElement = document.querySelector('body .dark');
if (darkElement) {
darkElement.classList.remove('dark');
}
}, []);
const pages = [
{
href: '/services',
label: 'services',
},
{
href: '/contact',
label: 'contact',
},
{
href: '/pricing',
label: 'pricing',
},
{
href: '/home',
label: 'home',
},
{
href: '/about',
label: 'about',
},
];
const features_points = [
{
name: 'Advanced Attendance Solutions',
description:
'Utilize cutting-edge technology for accurate attendance tracking, ensuring reliability and efficiency in employee management.',
icon: 'mdiClockFast',
},
{
name: 'Integrated Payroll Services',
description:
'Automate payroll processes with precision, reducing manual errors and ensuring timely salary disbursements.',
icon: 'mdiCalculator',
},
{
name: 'Customizable Reporting Tools',
description:
'Generate detailed reports tailored to your business needs, providing insights and data-driven decision-making capabilities.',
icon: 'mdiChartLine',
},
];
const pricing_features = {
standard: {
features: ['Basic Attendance Tracking', 'Employee Profile Management'],
limited_features: ['Limited Payroll Processing', 'Basic Support'],
},
premium: {
features: [
'Advanced Attendance Tracking',
'Comprehensive Payroll Processing',
'Customizable Employee Profiles',
],
also_included: ['Priority Support', 'Integration with Mapping API'],
},
business: {
features: [
'Full Attendance and Payroll Suite',
'Advanced Analytics and Reporting',
'Dedicated Account Manager',
'Custom Integrations',
],
},
};
const description = {
standard:
'Ideal for individuals or small teams looking to manage basic attendance and employee profiles efficiently.',
premium:
'Perfect for small startups or agencies seeking comprehensive attendance and payroll solutions with added support and customization options.',
business:
'Designed for enterprises requiring a full suite of attendance and payroll features, advanced analytics, and dedicated support.',
};
return (
<div className='flex flex-col min-h-screen'>
<Head>
<title>{`Our Services - Smart Attendance & Payroll`}</title>
<meta
name='description'
content={`Explore the range of services offered by Smart Attendance & Payroll, designed to streamline employee management and enhance business efficiency.`}
/>
</Head>
<WebSiteHeader
projectName={'Employee Payroll with Smart Attendance'}
pages={pages}
/>
<main className={`flex-grow bg-white rounded-none `}>
<HeroSection
projectName={'Employee Payroll with Smart Attendance'}
image={['Innovative business management solutions']}
mainText={`Transform Your Business with ${projectName}`}
subTitle={`Discover how ${projectName} can revolutionize your employee management processes, offering innovative solutions tailored to your business needs.`}
design={HeroDesigns.IMAGE_BG || ''}
buttonText={`Explore Our Services`}
/>
<FeaturesSection
projectName={'Employee Payroll with Smart Attendance'}
image={['Diverse range of business services']}
withBg={0}
features={features_points}
mainText={`Comprehensive Services by ${projectName}`}
subTitle={`Explore the diverse range of services offered by ${projectName} to enhance your business operations and employee management.`}
design={FeaturesDesigns.CARDS_GRID_WITH_ICONS_DIVERSITY || ''}
/>
<PricingSection
projectName={'Employee Payroll with Smart Attendance'}
withBg={0}
features={pricing_features}
description={description}
/>
</main>
<WebSiteFooter
projectName={'Employee Payroll with Smart Attendance'}
pages={pages}
/>
</div>
);
}
WebSite.getLayout = function getLayout(page: ReactElement) {
return <LayoutGuest>{page}</LayoutGuest>;
};