Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added frontend/public/images/ernesto.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed frontend/public/videos/sad.mp4
Binary file not shown.
10 changes: 10 additions & 0 deletions frontend/src/locale/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
},
};

Expand Down
42 changes: 22 additions & 20 deletions frontend/src/pages/_error.tsx
Original file line number Diff line number Diff line change
@@ -1,35 +1,37 @@
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";

const ErrorPage = ({ statusCode }) => (
<Page>
<Section>
<Heading size={4}>Ops {statusCode}</Heading>
<Heading size={4}>
<FormattedMessage id="errorPage.title" />
</Heading>
<Text size={2}>
<FormattedMessage
id="errorPage.body"
values={{
reportLink: (
<a href="https://github.com/pythonitalia/pycon/issues">
<FormattedMessage id="errorPage.reportLink" />
</a>
),
}}
/>
</Text>
<img
src="/images/ernesto.jpg"
alt="Ernesto thinking about pineapple pizza"
style={{ maxWidth: "100%", marginTop: "1rem" }}
/>
</Section>

<video
style={{
position: "absolute",
top: 0,
left: 0,
height: "100vh",
width: "100vw",
zIndex: -1,
pointerEvents: "none",
objectFit: "cover",
opacity: 0.5,
}}
src="/videos/sad.mp4"
autoPlay={true}
muted={true}
loop={true}
/>
</Page>
);

Expand Down