Files
novalon-website/src/components/layout/footer.tsx
T
张翔 37296b5717 feat(website): 三轮视觉改造与页面过渡动画
改造概要(30项):
- 第一轮:Hero重构/Section差异化/SocialProof强化/CTA对比度/About架构
- 第二轮:字体优化/背景交替/Solutions差异化/Footer五列/MegaDropdown修复
- 第三轮:卡片交互/表单层级/CTA统一/时间线标记/连接线/三列布局/移动导航/Button微交互/SEO Schema
- P3-2:template.tsx+Framer Motion页面过渡/loading.tsx加载状态
- 清理:删除未用组件/hooks,修复重复移动导航,清理冗余CSS
2026-05-10 08:20:27 +08:00

159 lines
6.7 KiB
TypeScript

import { StaticLink } from '@/components/ui/static-link';
import Image from 'next/image';
import { Mail, MapPin } from 'lucide-react';
import { COMPANY_INFO, NAVIGATION_V2, MEGA_DROPDOWN_DATA } from '@/lib/constants';
export function Footer() {
return (
<footer className="bg-[var(--color-footer-bg)] text-white py-16" data-testid="footer" role="contentinfo">
<div className="container-wide">
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-5 gap-10 lg:gap-8">
<div data-testid="card-brand" className="lg:col-span-2">
<div className="mb-6">
<Image
src="/logo-light.svg"
alt={COMPANY_INFO.name}
width={160}
height={40}
loading="eager"
priority
/>
</div>
<p className="text-[var(--color-footer-text)] text-sm leading-relaxed mb-6">
{COMPANY_INFO.description}
</p>
<div className="pt-6 border-t border-[var(--color-footer-border)]">
<p className="text-sm text-[var(--color-footer-text)] mb-3">关注公众号</p>
<div className="inline-block p-2 rounded-lg border border-[var(--color-footer-border)]">
<Image
src="/images/qrcode_for_gh_a297181ff548_258.jpg"
alt="微信公众号二维码"
width={100}
height={100}
className="w-25 h-25"
loading="lazy"
/>
</div>
</div>
</div>
<div data-testid="card-navigation">
<h3 className="font-semibold text-base mb-5 text-white">快速导航</h3>
<ul className="space-y-3">
{NAVIGATION_V2.map((item) => (
<li key={item.id}>
<StaticLink
href={item.href}
className="text-[var(--color-footer-text)] hover:text-white transition-colors duration-200 text-sm"
>
{item.label}
</StaticLink>
</li>
))}
</ul>
</div>
<div data-testid="card-products">
<h3 className="font-semibold text-base mb-5 text-white">产品与方案</h3>
<ul className="space-y-3">
{(MEGA_DROPDOWN_DATA.products ?? []).map((item) => (
<li key={item.id}>
<StaticLink
href={item.href}
className="text-[var(--color-footer-text)] hover:text-white transition-colors duration-200 text-sm"
>
{item.title}
</StaticLink>
</li>
))}
{(MEGA_DROPDOWN_DATA.solutions ?? []).map((item) => (
<li key={item.id}>
<StaticLink
href={item.href}
className="text-[var(--color-footer-text)] hover:text-white transition-colors duration-200 text-sm"
>
{item.title}
</StaticLink>
</li>
))}
</ul>
</div>
<div data-testid="card-contact">
<h3 className="font-semibold text-base mb-5 text-white">联系方式</h3>
<ul className="space-y-4">
<li className="flex items-start gap-3">
<MapPin className="w-4 h-4 text-[var(--color-brand-primary)] mt-0.5 shrink-0" />
<span className="text-[var(--color-footer-text)] text-sm">{COMPANY_INFO.address}</span>
</li>
<li className="flex items-center gap-3">
<Mail className="w-4 h-4 text-[var(--color-brand-primary)] shrink-0" />
<span className="text-[var(--color-footer-text)] text-sm">{COMPANY_INFO.email}</span>
</li>
</ul>
<div className="mt-6 pt-6 border-t border-[var(--color-footer-border)]">
<p className="text-sm text-[var(--color-footer-text)] mb-3">企业微信业务咨询</p>
<div className="inline-block p-2 rounded-lg border border-[var(--color-footer-border)]">
<Image
src="/images/149A1D2F-D9FD-49C7-B139-142C50C5FE8B_1_201_a.jpeg"
alt="企业微信业务咨询二维码"
width={100}
height={100}
className="w-25 h-25"
loading="lazy"
/>
</div>
</div>
</div>
</div>
<div className="border-t border-[var(--color-footer-border)] mt-12 pt-8 pb-24 md:pb-8">
<div className="flex flex-col md:flex-row justify-between items-center gap-4">
<p className="text-[var(--color-footer-text-muted)] text-sm">
© {new Date().getFullYear()} {COMPANY_INFO.name}. All rights reserved.
</p>
<div className="flex gap-6">
<StaticLink href="/privacy" className="text-[var(--color-footer-text-muted)] hover:text-white text-sm transition-colors duration-200">
隐私政策
</StaticLink>
<StaticLink href="/terms" className="text-[var(--color-footer-text-muted)] hover:text-white text-sm transition-colors duration-200">
服务条款
</StaticLink>
</div>
</div>
<div className="text-center mt-6 pt-6 border-t border-[var(--color-footer-border)]">
<div className="flex flex-col sm:flex-row justify-center items-center gap-2 sm:gap-4 text-xs">
<a
href="https://beian.miit.gov.cn/"
target="_blank"
rel="noopener noreferrer"
className="text-[var(--color-footer-text-link)] hover:text-white transition-colors duration-200"
>
{COMPANY_INFO.icp}
</a>
<span className="hidden sm:inline text-[var(--color-footer-text-dim)]">|</span>
<a
href="https://beian.mps.gov.cn/#/query/webSearch?code=51010602003285"
target="_blank"
rel="noreferrer"
className="text-[var(--color-footer-text-link)] hover:text-white transition-colors duration-200 inline-flex items-center gap-1.5"
>
<Image
src="/images/beian-icon.png"
alt="公安备案"
width={16}
height={16}
className="w-4 h-4"
loading="lazy"
/>
{COMPANY_INFO.police}
</a>
</div>
</div>
</div>
</div>
</footer>
);
}