25 lines
684 B
TypeScript
25 lines
684 B
TypeScript
import type { Metadata } from 'next';
|
|
import { publicApi } from '@/lib/services';
|
|
|
|
export const metadata: Metadata = {
|
|
title: '关于我们',
|
|
description: '了解企业的发展历程、团队与文化。',
|
|
};
|
|
|
|
export const revalidate = 60;
|
|
|
|
export default async function AboutPage() {
|
|
const config = await publicApi.getSiteConfig().catch(() => null);
|
|
return (
|
|
<div className="container-page py-12">
|
|
<h1 className="text-3xl font-bold text-gray-900">
|
|
{config?.aboutTitle || '关于我们'}
|
|
</h1>
|
|
<div
|
|
className="prose-rich mt-6 max-w-3xl"
|
|
dangerouslySetInnerHTML={{ __html: config?.aboutContent ?? '' }}
|
|
/>
|
|
</div>
|
|
);
|
|
}
|