import React from 'react'; import { createStyles, Container, Title, Text, Button, Group, useMantineTheme, } from '@mantine/core'; import { NextLink } from '@mantine/next'; import { serverSideTranslations } from 'next-i18next/serverSideTranslations'; const useStyles = createStyles((theme) => ({ root: { paddingTop: 80, paddingBottom: 80, }, inner: { position: 'relative', }, image: { position: 'absolute', top: 0, right: 0, left: 0, zIndex: 0, opacity: 0.75, }, content: { paddingTop: 220, position: 'relative', zIndex: 1, [theme.fn.smallerThan('sm')]: { paddingTop: 120, }, }, title: { fontFamily: `Greycliff CF, ${theme.fontFamily}`, textAlign: 'center', fontWeight: 900, fontSize: 38, [theme.fn.smallerThan('sm')]: { fontSize: 32, }, }, description: { maxWidth: 540, margin: 'auto', marginTop: theme.spacing.xl, marginBottom: theme.spacing.xl * 1.5, }, })); function Illustration(props: React.ComponentPropsWithoutRef<'svg'>) { const theme = useMantineTheme(); return ( ); } export default function Custom404() { const { classes } = useStyles(); return ( Config not found The config you are trying to access does not exist. Please check the URL and try again. Take me back to home page ); } export async function getStaticProps({ locale }: { locale: string }) { return { props: { ...(await serverSideTranslations(locale, ['common'])), // Will be passed to the page component as props }, }; }