diff --git a/frontend/public/images/ernesto.jpg b/frontend/public/images/ernesto.jpg new file mode 100644 index 0000000000..36de3d742e Binary files /dev/null and b/frontend/public/images/ernesto.jpg differ diff --git a/frontend/public/videos/sad.mp4 b/frontend/public/videos/sad.mp4 deleted file mode 100644 index 7351f4e6d8..0000000000 Binary files a/frontend/public/videos/sad.mp4 and /dev/null differ diff --git a/frontend/src/locale/index.ts b/frontend/src/locale/index.ts index 7b4fdd9877..3200b5b0db 100644 --- a/frontend/src/locale/index.ts +++ b/frontend/src/locale/index.ts @@ -1162,6 +1162,11 @@ The sooner you buy your ticket, the more you save!`, "The form will open on {date}. Please watch our socials for updates and any changes.", "requestInvitationLetter.formClosed": "The form is closed. If you have any questions, please contact us.", + + "errorPage.title": "Something went wrong", + "errorPage.body": + "An unexpected error occurred. If this keeps happening, please {reportLink}! In the meantime, here's Ernesto thinking about pineapple pizza 🍕", + "errorPage.reportLink": "report the issue", }, it: { titleTemplate: "%s | PyCon Italia", @@ -2350,6 +2355,11 @@ Clicca sulla casella per cambiare. Se lasciato vuoto, presumeremo che tu sia dis "Di norma registriamo tutti i talk e li pubblichiamo successivamente sul nostro canale YouTube. Se non desideri che il tuo intervento venga registrato, seleziona questa opzione. Nota: il talk sarà comunque trasmesso in streaming.", "cfp.doNotRecordCheckboxLabel": "Confermo di non voler che il mio talk venga registrato. Comprendo che non verrà caricato sul canale YouTube di Python Italia e che non sarà possibile recuperarlo in futuro.", + + "errorPage.title": "Qualcosa è andato storto", + "errorPage.body": + "Si è verificato un errore inaspettato. Se continua a succedere, {reportLink}! Nel frattempo, ecco Ernesto che pensa alla pizza con l'ananas 🍕", + "errorPage.reportLink": "segnala il problema", }, }; diff --git a/frontend/src/pages/_error.tsx b/frontend/src/pages/_error.tsx index ba0bab4862..222a6e416b 100644 --- a/frontend/src/pages/_error.tsx +++ b/frontend/src/pages/_error.tsx @@ -1,8 +1,9 @@ -import { Heading, Page, Section } from "@python-italia/pycon-styleguide"; +import { Heading, Page, Section, Text } from "@python-italia/pycon-styleguide"; import * as Sentry from "@sentry/nextjs"; import type { GetStaticProps } from "next"; import NextErrorComponent from "next/error"; +import { FormattedMessage } from "react-intl"; import { addApolloState, getApolloClient } from "~/apollo/client"; import { prefetchSharedQueries } from "~/helpers/prefetch"; @@ -10,26 +11,27 @@ import { prefetchSharedQueries } from "~/helpers/prefetch"; const ErrorPage = ({ statusCode }) => (
- Ops {statusCode} + + + + + + + + ), + }} + /> + + Ernesto thinking about pineapple pizza
- -
);