Files
novalon-website/src/app/not-found-content.tsx
T
zhangxiang a366bd1400 fix(qa): 第五轮系统性质量保障缺陷修复 + 单元/集成测试
安全/鉴权:登出清服务端 httpOnly 令牌、登录 IP 限流前置 bcrypt、停用账号
令牌在 6 个内联 role handler 失效、admin/items 存在性 oracle 认证前置、
同意偏好 sanitize fail-closed、api-crypto 按 HTTP 方法判体。

CMS:workflow 状态更新+审计收进交互式 $transaction(失败即回滚)、编辑器
richtext 走 textarea 防换行损毁、array/object 子字段按作用域读写防污染、
about/contact/erp-upgrade 补 ISR revalidate 与路由映射。

UI/a11y:AnimatedCounter 入视口前显起点、CLS 累计上报、MetricCard 动画入
effect 并卸载取消 rAF、后台状态四态映射/搜索防抖+序号守卫/媒体单 input/
吞错改横幅/表单 label-aria 关联。

新增对应判别性单测与 pagination/rate-limit/client-ip/sanitize/validate-content-data
等模块及 tests-integration 真库集成层。
2026-09-28 10:48:07 +08:00

88 lines
4.1 KiB
TypeScript

'use client';
import { StaticLink } from '@/components/ui/static-link';
import { Button } from '@/components/ui/button';
import { CTAButton } from '@/components/ui/cta-button';
import { ArrowLeft, Search } from 'lucide-react';
export function NotFoundContent() {
return (
<div className="min-h-screen bg-[var(--color-bg-primary)] flex items-center justify-center">
<div className="container-wide px-4 py-20">
<div className="max-w-xl mx-auto text-center">
<div className="mb-8">
<h1 className="text-8xl sm:text-[120px] font-bold text-brand-ink/80 leading-none mb-4">
404
</h1>
</div>
<h2 className="text-2xl sm:text-3xl font-bold text-[var(--color-text-primary)] mb-4">
页面未找到
</h2>
<p className="text-base text-[var(--color-text-muted)] mb-8 leading-relaxed">
您访问的页面不存在或已被移动。请检查网址,或返回首页继续浏览。
</p>
<div className="flex flex-col sm:flex-row gap-4 justify-center mb-12">
<CTAButton href="/">返回首页</CTAButton>
<Button size="lg" variant="outline" onClick={() => window.history.back()}>
<ArrowLeft className="w-5 h-5 mr-2" />
返回上一页
</Button>
</div>
<div className="bg-[var(--color-bg-section)] rounded-xl p-6 sm:p-8">
<h3 className="text-lg font-semibold text-[var(--color-text-primary)] mb-5">
您可能在寻找
</h3>
<div className="grid grid-cols-2 gap-3">
<StaticLink
href="/products"
className="flex flex-col items-center p-4 bg-[var(--color-bg-primary)] rounded-lg hover:shadow-md transition-shadow group"
>
<div className="w-9 h-9 bg-[var(--color-brand-bg)] rounded-lg flex items-center justify-center mb-2 group-hover:bg-[var(--color-brand-soft)] transition-colors">
<Search className="w-4 h-4 text-brand-ink" />
</div>
<span className="font-medium text-sm text-[var(--color-text-primary)]">产品</span>
</StaticLink>
<StaticLink
href="/solutions"
className="flex flex-col items-center p-4 bg-[var(--color-bg-primary)] rounded-lg hover:shadow-md transition-shadow group"
>
<div className="w-9 h-9 bg-[var(--color-brand-bg)] rounded-lg flex items-center justify-center mb-2 group-hover:bg-[var(--color-brand-soft)] transition-colors">
<Search className="w-4 h-4 text-brand-ink" />
</div>
<span className="font-medium text-sm text-[var(--color-text-primary)]">解决方案</span>
</StaticLink>
<StaticLink
href="/about"
className="flex flex-col items-center p-4 bg-[var(--color-bg-primary)] rounded-lg hover:shadow-md transition-shadow group"
>
<div className="w-9 h-9 bg-[var(--color-brand-bg)] rounded-lg flex items-center justify-center mb-2 group-hover:bg-[var(--color-brand-soft)] transition-colors">
<Search className="w-4 h-4 text-brand-ink" />
</div>
<span className="font-medium text-sm text-[var(--color-text-primary)]">关于我们</span>
</StaticLink>
<StaticLink
href="/contact"
className="flex flex-col items-center p-4 bg-[var(--color-bg-primary)] rounded-lg hover:shadow-md transition-shadow group"
>
<div className="w-9 h-9 bg-[var(--color-brand-bg)] rounded-lg flex items-center justify-center mb-2 group-hover:bg-[var(--color-brand-soft)] transition-colors">
<Search className="w-4 h-4 text-brand-ink" />
</div>
<span className="font-medium text-sm text-[var(--color-text-primary)]">联系我们</span>
</StaticLink>
</div>
</div>
</div>
</div>
</div>
);
}