infoalloggi-monorepo/apps/infoalloggi/src/components/status-page.tsx
Marco Pedone 6c36bb9b74 feat: add order editing form and payment processing pages
- Implemented FormEditOrder component for editing orders with validation and submission handling.
- Created SchedaAnnuncioPage for displaying printable announcement details.
- Added BonificoManualePage for manual bank transfer payment instructions.
- Developed PagamentoPage for Stripe payment processing with PaymentIntent creation.
- Introduced PreviewPurchasePage for preparing payment with service details.
- Added pagamenti.controller for handling payment preparation and retrieval of payment data.
2026-03-08 01:02:57 +01:00

37 lines
1.2 KiB
TypeScript

import Link from "next/link";
import { useRouter } from "next/router";
import { ShieldExclamationIcon } from "~/components/IconComponents";
import { useTranslation } from "~/providers/I18nProvider";
export const Status500 = () => {
const router = useRouter();
const { t } = useTranslation();
return (
<div className="mx-auto flex h-screen max-w-7xl items-center justify-start px-4 md:px-8">
<div className="mx-auto max-w-lg space-y-3 text-center">
<ShieldExclamationIcon className="mx-auto size-20 text-red-600" />
<h3 className="font-semibold text-4xl text-accent-foreground sm:text-5xl">
{t[500].titolo}
</h3>
<p className="text-muted-foreground">{t[500].sottotitolo}</p>
<div className="flex flex-wrap items-center justify-center gap-3">
<button
className="block rounded-lg bg-red-600 px-4 py-2 font-medium text-white duration-150 hover:bg-red-500 active:bg-red-700"
onClick={() => {
router.back();
}}
type="button"
>
{t[500].CTA}
</button>
<Link
className="block rounded-lg border px-4 py-2 font-medium duration-150 hover:bg-neutral-50 active:bg-neutral-100"
href="/"
>
{t[500].home}
</Link>
</div>
</div>
</div>
);
};