Files
goodgo-platform/apps/web/app/not-found.tsx
Ho Ngoc Hai 628150b7d8 refactor(web): consolidate i18n routes — remove non-locale route duplication
Remove duplicate root-level route groups ((public)/, (auth)/, (dashboard)/,
(admin)/, auth/) that shadowed the [locale]/ i18n-aware versions. All routes
now live exclusively under [locale]/ with next-intl middleware handling locale
detection and redirect.

- Root layout.tsx → pass-through (delegates html/body to [locale]/layout.tsx)
- [locale]/layout.tsx now imports globals.css
- Root error.tsx, not-found.tsx get html wrapper for safety fallback
- Remove redundant root loading.tsx
- 38 duplicate route files removed

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-04-09 09:12:37 +07:00

36 lines
1.3 KiB
TypeScript

import Link from 'next/link';
export default function NotFound() {
return (
<html lang="vi">
<body>
<div className="flex min-h-screen flex-col items-center justify-center bg-background px-4">
<div className="mx-auto max-w-md text-center">
<div className="text-8xl font-bold text-primary/20">404</div>
<h1 className="mt-4 text-2xl font-bold tracking-tight">
Không tìm thấy trang
</h1>
<p className="mt-2 text-muted-foreground">
Trang bạn đang tìm không tồn tại hoặc đã đưc di chuyển.
</p>
<div className="mt-8 flex justify-center gap-3">
<Link
href="/"
className="inline-flex h-10 items-center justify-center rounded-md bg-primary px-6 text-sm font-medium text-primary-foreground shadow transition-colors hover:bg-primary/90"
>
Về trang chủ
</Link>
<Link
href="/search"
className="inline-flex h-10 items-center justify-center rounded-md border border-input bg-background px-6 text-sm font-medium shadow-sm transition-colors hover:bg-accent hover:text-accent-foreground"
>
Tìm kiếm
</Link>
</div>
</div>
</div>
</body>
</html>
);
}