refactor: 完成静态网站转换,移除所有 CMS 和动态功能
- 删除数据库相关代码 (src/db/) - 删除 API 路由 (src/app/api/) - 删除认证相关代码 (src/lib/auth/, src/providers/) - 删除监控和安全中间件 (src/lib/security/, src/lib/monitoring/) - 删除 hooks (use-news, use-products, use-services) - 更新组件为静态数据源 - 添加 nginx 静态配置和部署脚本 - 添加 static-link 组件
This commit is contained in:
+14
-14
@@ -1,6 +1,6 @@
|
||||
'use client';
|
||||
|
||||
import Link from 'next/link';
|
||||
import { StaticLink } from '@/components/ui/static-link';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import { Home, ArrowLeft, Search } from 'lucide-react';
|
||||
|
||||
@@ -13,7 +13,7 @@ export default function NotFound() {
|
||||
<h1 className="text-[120px] font-bold text-[#C41E3A] leading-none mb-4">
|
||||
404
|
||||
</h1>
|
||||
<div className="w-32 h-1 bg-[#C41E3A] mx-auto mb-6"></div>
|
||||
<div className="w-32 h-1 bg-[#C41E3A] mx-auto mb-6" />
|
||||
</div>
|
||||
|
||||
<h2 className="text-3xl font-bold text-[#1C1C1C] mb-4">
|
||||
@@ -31,10 +31,10 @@ export default function NotFound() {
|
||||
asChild
|
||||
className="bg-[#C41E3A] hover:bg-[#A01830] text-white"
|
||||
>
|
||||
<Link href="/">
|
||||
<StaticLink href="/">
|
||||
<Home className="w-5 h-5 mr-2" />
|
||||
返回首页
|
||||
</Link>
|
||||
</StaticLink>
|
||||
</Button>
|
||||
|
||||
<Button
|
||||
@@ -53,7 +53,7 @@ export default function NotFound() {
|
||||
</h3>
|
||||
|
||||
<div className="grid grid-cols-1 sm:grid-cols-2 gap-4">
|
||||
<Link
|
||||
<StaticLink
|
||||
href="/about"
|
||||
className="flex items-center p-4 bg-white rounded-lg hover:shadow-md transition-shadow group"
|
||||
>
|
||||
@@ -64,9 +64,9 @@ export default function NotFound() {
|
||||
<div className="font-semibold text-[#1C1C1C]">关于我们</div>
|
||||
<div className="text-sm text-[#5C5C5C]">了解睿新致远</div>
|
||||
</div>
|
||||
</Link>
|
||||
</StaticLink>
|
||||
|
||||
<Link
|
||||
<StaticLink
|
||||
href="/services"
|
||||
className="flex items-center p-4 bg-white rounded-lg hover:shadow-md transition-shadow group"
|
||||
>
|
||||
@@ -77,9 +77,9 @@ export default function NotFound() {
|
||||
<div className="font-semibold text-[#1C1C1C]">核心业务</div>
|
||||
<div className="text-sm text-[#5C5C5C]">我们的服务</div>
|
||||
</div>
|
||||
</Link>
|
||||
</StaticLink>
|
||||
|
||||
<Link
|
||||
<StaticLink
|
||||
href="/products"
|
||||
className="flex items-center p-4 bg-white rounded-lg hover:shadow-md transition-shadow group"
|
||||
>
|
||||
@@ -90,9 +90,9 @@ export default function NotFound() {
|
||||
<div className="font-semibold text-[#1C1C1C]">产品服务</div>
|
||||
<div className="text-sm text-[#5C5C5C]">企业级产品</div>
|
||||
</div>
|
||||
</Link>
|
||||
</StaticLink>
|
||||
|
||||
<Link
|
||||
<StaticLink
|
||||
href="/cases"
|
||||
className="flex items-center p-4 bg-white rounded-lg hover:shadow-md transition-shadow group"
|
||||
>
|
||||
@@ -103,15 +103,15 @@ export default function NotFound() {
|
||||
<div className="font-semibold text-[#1C1C1C]">成功案例</div>
|
||||
<div className="text-sm text-[#5C5C5C]">客户故事</div>
|
||||
</div>
|
||||
</Link>
|
||||
</StaticLink>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="mt-8 text-sm text-[#5C5C5C]">
|
||||
如果您认为这是一个错误,请{' '}
|
||||
<Link href="/contact" className="text-[#C41E3A] hover:underline">
|
||||
<StaticLink href="/contact" className="text-[#C41E3A] hover:underline">
|
||||
联系我们
|
||||
</Link>
|
||||
</StaticLink>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user