import { getLayout } from '@components/Layouts/Layout';
import PostHeader from '@components/PostHeader/PostHeader';
import { seo } from '@config/seo';
import { t, Trans } from '@lingui/macro';
import { NextPageWithLayout } from '@ts/types/app';
import { loadTranslation } from '@utils/helpers/i18n';
import { GetStaticProps, GetStaticPropsContext } from 'next';
import Head from 'next/head';
import Link from 'next/link';
import styles from '@styles/pages/Page.module.scss';

const error404: NextPageWithLayout = () => {
  return (
    <>
      <Head>
        <title>{seo.error404.title}</title>
        <meta name="description" content={seo.error404.description} />
      </Head>
      <div className={`${styles.article} ${styles['article--no-comments']}`}>
        <PostHeader title={t`Page not found`} />
        <div className={styles.body}>
          <Trans>
            Sorry, it seems that the page you are looking for does not exist.
          </Trans>{' '}
          <Trans>
            If you think this path should work, feel free to{' '}
            <Link href="/contact/">contact me</Link> with the necessary
            information so that I can fix the problem.
          </Trans>
        </div>
      </div>
    </>
  );
};

error404.getLayout = getLayout;

export const getStaticProps: GetStaticProps = async (
  context: GetStaticPropsContext
) => {
  const translation = await loadTranslation(
    context.locale!,
    process.env.NODE_ENV === 'production'
  );

  const breadcrumbTitle = t`Error`;

  return {
    props: {
      breadcrumbTitle,
      translation,
    },
  };
};

export default error404;
h=v1.0.0&amp;id=3a2dfec7f715f92620b76fb07a6c73b881e2a6e1'>tree</a><a href='/www.armandphilippot.com/commit/public/prism/prism-n4js.js?h=v1.0.0&amp;id=3a2dfec7f715f92620b76fb07a6c73b881e2a6e1'>commit</a><a href='/www.armandphilippot.com/diff/public/prism/prism-n4js.js?h=v1.0.0&amp;id=3a2dfec7f715f92620b76fb07a6c73b881e2a6e1'>diff</a><a href='/www.armandphilippot.com/stats/public/prism/prism-n4js.js?h=v1.0.0'>stats</a></td><td class='form'><form class='right' method='get' action='/www.armandphilippot.com/log/public/prism/prism-n4js.js'>
<input type='hidden' name='h' value='v1.0.0'/><input type='hidden' name='id' value='3a2dfec7f715f92620b76fb07a6c73b881e2a6e1'/><select name='qt'>
<option value='grep'>log msg</option>
<option value='author'>author</option>
<option value='committer'>committer</option>
<option value='range'>range</option>
</select>
<input class='txt' type='search' size='10' name='q' value=''/>
<input type='submit' value='search'/>
</form>
</td></tr></table>
<div class='path'>path: <a href='/www.armandphilippot.com/tree/?h=v1.0.0&amp;id=3a2dfec7f715f92620b76fb07a6c73b881e2a6e1'>root</a>/<a href='/www.armandphilippot.com/tree/public?h=v1.0.0&amp;id=3a2dfec7f715f92620b76fb07a6c73b881e2a6e1'>public</a>/<a href='/www.armandphilippot.com/tree/public/prism?h=v1.0.0&amp;id=3a2dfec7f715f92620b76fb07a6c73b881e2a6e1'>prism</a>/<a href='/www.armandphilippot.com/tree/public/prism/prism-n4js.js?h=v1.0.0&amp;id=3a2dfec7f715f92620b76fb07a6c73b881e2a6e1'>prism-n4js.js</a></div><div class='content'>blob: f2a884f3f9a335e8739b0d032818197ea18bf00f (<a href='/www.armandphilippot.com/plain/public/prism/prism-n4js.js?h=v1.0.0&amp;id=3a2dfec7f715f92620b76fb07a6c73b881e2a6e1'>plain</a>)
<table summary='blob content' class='blob'>
<tr><td class='linenumbers'><pre><a id='n1' href='#n1'>1</a>
<a id='n2' href='#n2'>2</a>
<a id='n3' href='#n3'>3</a>
<a id='n4' href='#n4'>4</a>
<a id='n5' href='#n5'>5</a>
<a id='n6' href='#n6'>6</a>
<a id='n7' href='#n7'>7</a>
<a id='n8' href='#n8'>8</a>
<a id='n9' href='#n9'>9</a>
<a id='n10' href='#n10'>10</a>
<a id='n11' href='#n11'>11</a>
<a id='n12' href='#n12'>12</a>
<a id='n13' href='#n13'>13</a>
<a id='n14' href='#n14'>14</a>
<a id='n15' href='#n15'>15</a>
</pre></td>
<td class='lines'><pre><code>