Files
company-site/app/layout.tsx
JanYork e2850586a9 feat: 实现联系表单提交与邮件通知功能
添加联系表单提交接口和邮件通知功能,支持从环境变量读取 SMTP 配置
重构 SEO 配置到 site.json,新增 robots.txt 和 sitemap.xml 生成
更新公司电话并添加 PM2 生产运行配置
2026-03-18 13:20:40 +08:00

29 lines
621 B
TypeScript

import type { Metadata } from 'next'
import { Inter } from 'next/font/google'
import { Analytics } from '@vercel/analytics/next'
import { buildSiteMetadata } from '@/lib/seo'
import './globals.css'
const inter = Inter({
subsets: ['latin'],
variable: '--font-inter',
display: 'swap',
})
export const metadata: Metadata = buildSiteMetadata()
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode
}>) {
return (
<html lang="zh-CN">
<body className={`${inter.variable} font-sans antialiased`}>
{children}
<Analytics />
</body>
</html>
)
}