Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

index.js 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. import { Box } from '@mui/system';
  2. import Head from 'next/head';
  3. import CompanyInfo from '../components/company-info/CompanyInfo';
  4. import Features from '../components/features/Features';
  5. import Hero from '../components/hero/Hero';
  6. import FeaturedProductsList from '../components/products/featured-products-list/FeaturedPorductsList';
  7. const Home = () => {
  8. return (
  9. <>
  10. <Box sx={{ width: '100%', height: '100%' }}>
  11. <Head>
  12. <title>NextJS template</title>
  13. <meta name="description" content="Random data with pagination..." />
  14. </Head>
  15. <Hero></Hero>
  16. <FeaturedProductsList></FeaturedProductsList>
  17. <Features></Features>
  18. <CompanyInfo></CompanyInfo>
  19. </Box>
  20. </>
  21. );
  22. };
  23. // export async function getStaticProps({ locale }) {
  24. // const queryClient = new QueryClient();
  25. // await queryClient.prefetchQuery(['randomData', 1], () => getData(1));
  26. // return {
  27. // props: {
  28. // dehydratedState: dehydrate(queryClient),
  29. // ...(await serverSideTranslations(locale, ['pagination'])),
  30. // },
  31. // };
  32. // }
  33. export default Home;