infoalloggi-monorepo/apps/infoalloggi/src/pages/404.tsx
Marco Pedone 831ae0edef Refactor components for improved styling and layout consistency
- Updated Layout component to enhance flex properties for better responsiveness.
- Adjusted CredenzaContent width in UserDashboard for improved layout.
- Modified Footer component for better spacing and logo size adjustments.
- Enhanced ServizioContent layout with new AlarmClockSVG and improved button styling.
- Updated Status500 and 404 pages to use muted foreground text for better readability.
- Added new PasswordSVG and AlarmClockSVG components for better icon representation.
- Refined table components to use muted foreground colors for icons.
- Improved form components by removing unnecessary classes and enhancing label styling.
- Cleaned up global CSS by removing unused CSS variables for better maintainability.
2025-12-15 17:07:08 +01:00

38 lines
1.3 KiB
TypeScript

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