add not found page and components

This commit is contained in:
lamacchinadesiderante 2024-04-28 19:40:11 +02:00
parent 6bda6fd111
commit b272c39aca
6 changed files with 74 additions and 0 deletions

View File

@ -10,6 +10,11 @@
"disclaimer_5": "No banners or annoying popups. You can jerk off with no hassle!", "disclaimer_5": "No banners or annoying popups. You can jerk off with no hassle!",
"disclaimer_6": "You're choosing image over imagination. What if they're not in antithesis?" "disclaimer_6": "You're choosing image over imagination. What if they're not in antithesis?"
}, },
"NotFound": {
"uh_oh": "Uh Oh...",
"something_wrong": "Something went wrong :|",
"back_to_home": "Back to homepage"
},
"Search": { "Search": {
"placeholder": "categories, pornostars, etc...", "placeholder": "categories, pornostars, etc...",
"submit": "Search" "submit": "Search"

View File

@ -10,6 +10,11 @@
"disclaimer_5": "Niente banner o popup fastidiosi. Puoi masturbarti in santa pace.", "disclaimer_5": "Niente banner o popup fastidiosi. Puoi masturbarti in santa pace.",
"disclaimer_6": "Stai preferendo l'immagine all'immaginazione. E se immagine e immaginazione non fossero in antitesi?" "disclaimer_6": "Stai preferendo l'immagine all'immaginazione. E se immagine e immaginazione non fossero in antitesi?"
}, },
"NotFound": {
"uh_oh": "Uh Oh...",
"something_wrong": "Qualcosa è andato storto :|",
"back_to_home": "Torna alla home"
},
"Search": { "Search": {
"placeholder": "categorie, pornostar, ecc...", "placeholder": "categorie, pornostar, ecc...",
"submit": "Cerca" "submit": "Cerca"

View File

@ -0,0 +1,11 @@
import Layout from "@/components/Layout";
import NotFound from "@/components/Pages/NotFound";
export default function NotFoundPage() {
return (
<Layout>
<NotFound />
</Layout>
);
}

View File

@ -0,0 +1,13 @@
@import 'fontsize';
.header {
font-size: $font-size-xlarge;
}
.msg {
font-size: $font-size-large;
}
.link {
color: var(--primary);
}

View File

@ -0,0 +1,22 @@
import React, { } from 'react';
import style from './Msg.module.scss';
import { useTranslations } from 'next-intl';
import Link from 'next/link';
const Msg: React.FC = () => {
const t = useTranslations('NotFound');
return (
<div className={style.container}>
<div className={style.header}>{t('uh_oh')}</div>
<p className={style.msg}>{t('something_wrong')}</p>
<Link className={style.link} href="/">{t('back_to_home')}</Link>
</div>
);
};
export default Msg;

View File

@ -0,0 +1,18 @@
import React from 'react';
import Header from '@/components/Layout/Header';
import SearchBar from '@/components/Layout/SearchBar';
import Msg from './Msg';
const NotFound: React.FC = (props) => {
return (
<>
<Header />
<SearchBar />
<Msg />
</>
);
};
export default NotFound;