54 lines
2.7 KiB
TypeScript
Raw Normal View History

2026-06-22 14:43:46 +08:00
import Link from 'next/link';
import type { SiteConfig } from '@/lib/types';
export function Footer({ config }: { config: SiteConfig | null }) {
const year = new Date().getFullYear();
return (
<footer className="bg-[#070a1f] text-slate-400">
<div className="container-page grid grid-cols-1 gap-8 py-12 md:grid-cols-4">
<div>
<h3 className="mb-3 text-base font-semibold text-white">
{config?.siteName ?? '智管物业'}
</h3>
<p className="text-sm leading-7 text-gray-400">
线SaaS解决方案
</p>
</div>
<div>
<h4 className="mb-3 text-sm font-semibold text-white"></h4>
<ul className="space-y-2 text-sm text-gray-400">
<li><Link href="/products" className="hover:text-brand-300"></Link></li>
<li><Link href="/products" className="hover:text-brand-300">线</Link></li>
<li><Link href="/products" className="hover:text-brand-300"></Link></li>
<li><Link href="/products" className="hover:text-brand-300"></Link></li>
</ul>
</div>
<div>
<h4 className="mb-3 text-sm font-semibold text-white"></h4>
<ul className="space-y-2 text-sm text-gray-400">
<li><Link href="/" className="hover:text-brand-300"></Link></li>
<li><Link href="/products" className="hover:text-brand-300"></Link></li>
<li><Link href="/news" className="hover:text-brand-300"></Link></li>
<li><Link href="/about" className="hover:text-brand-300"></Link></li>
<li><Link href="/contact" className="hover:text-brand-300"></Link></li>
</ul>
</div>
<div>
<h4 className="mb-3 text-sm font-semibold text-white"></h4>
<ul className="space-y-2 text-sm text-gray-400">
{config?.tel && <li>{config.tel}</li>}
{config?.email && <li>{config.email}</li>}
{config?.address && <li>{config.address}</li>}
</ul>
</div>
</div>
<div className="border-t border-white/[0.06] py-4">
<div className="container-page flex flex-col items-center justify-between gap-2 text-xs text-gray-500 sm:flex-row">
<p>{config?.copyright || `© ${year} ${config?.siteName ?? '智管物业'} 版权所有`}</p>
{config?.icp && <p>{config.icp}</p>}
</div>
</div>
</footer>
);
}