infoalloggi-monorepo/apps/infoalloggi/src/pages/500Auth.tsx
Marco Pedone edaee780d6 refactor: remove unused annunci data fetching and components; update ricerca logic
- Deleted the `annunci.ts` file which contained the database fetching logic.
- Removed the `TestAppPage` component that relied on the deleted data fetching.
- Eliminated the `AnnunciList` component that was dependent on the removed data.
- Updated `annunci_map.tsx` to handle optional `selectComune` parameter.
- Refactored `annunci_tutorial.tsx` to use `buildRicercaUrl` for navigation.
- Adjusted `annuncio_card.tsx` for consistent styling and layout changes.
- Modified `codiceRicerca.tsx` to fix z-index issue.
- Enhanced `failed-loading.tsx` and `500Auth.tsx` for responsive design.
- Updated `annunci.tsx` to include loading state for map and annunci list.
- Refined filter handling in `Filters` component to use a single `setAllParams` method.
- Introduced `FrequentSearches` component for better user navigation.
- Updated `RicercaProvider` to streamline state management and URL building.
- Adjusted server-side logic in `annunci.controller.ts` to ensure valid data.
2026-01-20 18:38:17 +01:00

34 lines
1.2 KiB
TypeScript

import Link from "next/link";
import { ShieldExclamationIcon } from "~/components/IconComponents";
import { useTranslation } from "~/providers/I18nProvider";
export default function Custom500Auth() {
const { t } = useTranslation();
return (
<main>
<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">
<Link
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"
href="/login"
>
{t[500].CTALogin}
</Link>
<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>
</main>
);
}