|
1 | 1 | import React from 'react'; |
2 | | -import NavBar from 'components/navbar-components/NavBar'; |
| 2 | +import HeadTags from 'components/general/HeadTags'; |
3 | 3 | import HighlightsSection from 'components/home-components/highlights-section/HighlightsSection'; |
4 | 4 | import ProjectBanner from 'components/banners-components/ProjectBanner'; |
5 | 5 | import SupportersBanner from 'components/banners-components/SupportersBanner'; |
6 | 6 | import Sectors from 'components/home-components/sectors-section/Sectors'; |
7 | 7 | import Footer from 'components/Footer'; |
8 | 8 | import useTranslation from 'next-translate/useTranslation'; |
9 | | -import HeadTags from 'components/general/HeadTags'; |
| 9 | +import NavBar from '../src/components/Navbar/NavBar.tsx'; |
10 | 10 | import HomepageHeroSection from '../components/home-components/HeroSection'; |
11 | 11 |
|
12 | 12 | function Home() { |
13 | | - |
14 | 13 | const { t } = useTranslation(); |
15 | 14 | const metaTags = t('homePage:metaTags', { count: -1 }, { returnObjects: true }); |
16 | 15 | return ( |
17 | 16 | <> |
18 | | - <HeadTags pageName={metaTags.pageName} title={metaTags.title} description={metaTags.description} pageTitle={metaTags.pageTitle} lang={metaTags.lang} mainPage/> |
| 17 | + <HeadTags |
| 18 | + pageName={metaTags.pageName} |
| 19 | + title={metaTags.title} |
| 20 | + description={metaTags.description} |
| 21 | + pageTitle={metaTags.pageTitle} |
| 22 | + lang={metaTags.lang} |
| 23 | + mainPage |
| 24 | + /> |
19 | 25 | <NavBar /> |
20 | 26 | <HomepageHeroSection /> |
21 | 27 | <Sectors /> |
22 | | - <ProjectBanner textContent={t('homePage:homePageBanners.genus', { count: -1 }, { returnObjects: true })} bgColor={"#605F62"} folderName={"genus-banner"} loop autoPlay /> |
23 | | - <ProjectBanner textContent={t('homePage:homePageBanners.zenithMonitor', { count: -1 }, { returnObjects: true })} bgColor={"#000000"} folderName={"monitor-banner"} /> |
| 28 | + <ProjectBanner |
| 29 | + textContent={t('homePage:homePageBanners.genus', { count: -1 }, { returnObjects: true })} |
| 30 | + bgColor={'#605F62'} |
| 31 | + folderName={'genus-banner'} |
| 32 | + loop |
| 33 | + autoPlay |
| 34 | + /> |
| 35 | + <ProjectBanner |
| 36 | + textContent={t('homePage:homePageBanners.zenithMonitor', { count: -1 }, { returnObjects: true })} |
| 37 | + bgColor={'#000000'} |
| 38 | + folderName={'monitor-banner'} |
| 39 | + /> |
24 | 40 | <HighlightsSection /> |
25 | 41 | <SupportersBanner textContent={t('homePage:homePageSupporters', { count: -1 }, { returnObjects: true })} /> |
26 | 42 | <Footer /> |
27 | 43 | </> |
28 | 44 | ); |
29 | 45 | } |
30 | 46 |
|
31 | | -export function getServerSideProps() { return { props: {} }; } |
| 47 | +export function getServerSideProps() { |
| 48 | + return { props: {} }; |
| 49 | +} |
32 | 50 |
|
33 | 51 | export default Home; |
0 commit comments