Files
ridebus-website/pages/index.tsx
2026-10-02 20:31:49 +03:00

65 lines
2.2 KiB
TypeScript

import { Footer } from '@/components/footer';
import { TelegramCardButton } from '@/components/telegramCardButton';
import { GithubCardButton } from '@/components/githubCardButton';
import { GooglePlayButton } from '@/components/googlePlayButton';
import { ContributeCard } from '@/modules/home/contributeCard';
import Header from '@/modules/home/header';
import styles from '@/modules/home/home.module.scss';
import { DeparturesCard } from '@/modules/home/departuresCard/departuresCard';
import { FaqCard } from '@/modules/home/faqCard/faqCard';
import { FreeCard } from '@/modules/home/freeCard';
import { CitiesCard } from '@/modules/home/citiesCard';
import { ChangesCard } from '@/modules/home/changesCard/changesCard';
import { DownloadCard } from '@/modules/home/downloadCard/downloadCard';
import { ReportCard } from '@/modules/home/reportCard/reportCard';
import { FeaturesCards } from '@/modules/home/featuresCards/featuresCards';
import { LegalCards } from '@/modules/home/legalCards/legalCards';
import { locales } from '@/modules/home/locales';
import useLocale from '@/utils/useLocale';
import Head from 'next/head';
import { Fragment } from 'react';
export default function HomePage() {
const t = useLocale(locales);
return (
<Fragment>
<Head>
<title>{t('pageTitle')}</title>
<meta name="description" content={t('pageDescription')} />
</Head>
<Header />
<main className={styles.main}>
<DownloadCard />
<div className={styles.liveCardsRow}>
<DeparturesCard />
<div className={styles.liveAside}>
<ChangesCard />
<ReportCard />
</div>
</div>
<div className={styles.cardsRow}>
<FreeCard />
<CitiesCard />
</div>
<FeaturesCards />
<div className={styles.cardsRow}>
<div className={styles.storesBlock}>
<GooglePlayButton className={styles.googlePlayButton} />
<div>
<TelegramCardButton />
</div>
<div>
<GithubCardButton />
</div>
</div>
<ContributeCard />
</div>
<FaqCard />
<LegalCards />
</main>
<Footer />
</Fragment>
);
}