2026-09-08 09:20:15 +00:00
|
|
|
import type { Metadata, Viewport } from "next";
|
|
|
|
|
import { Inter } from "next/font/google";
|
|
|
|
|
import "./globals.css";
|
|
|
|
|
import { SiteFooter } from "@/components/site-footer";
|
|
|
|
|
import { SiteHeader } from "@/components/site-header";
|
|
|
|
|
|
|
|
|
|
const inter = Inter({
|
|
|
|
|
variable: "--font-inter",
|
|
|
|
|
subsets: ["latin"],
|
|
|
|
|
display: "swap",
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
export const metadata: Metadata = {
|
|
|
|
|
title: {
|
|
|
|
|
default: "考町科技 | 连接技术与日常",
|
|
|
|
|
template: "%s | 考町科技",
|
|
|
|
|
},
|
|
|
|
|
description: "考町科技专注于蓝牙周边、音频与智能设备,也在 AI Lab 探索可落地的语音能力。",
|
2026-09-11 11:48:25 +00:00
|
|
|
icons: {
|
|
|
|
|
icon: "/icon.png",
|
|
|
|
|
},
|
2026-09-08 09:20:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export const viewport: Viewport = {
|
|
|
|
|
themeColor: "#0D0F12",
|
|
|
|
|
width: "device-width",
|
|
|
|
|
initialScale: 1,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default function RootLayout({ children }: Readonly<{ children: React.ReactNode }>) {
|
|
|
|
|
return (
|
|
|
|
|
<html lang="zh-CN">
|
|
|
|
|
<body className={`${inter.variable} antialiased`}>
|
|
|
|
|
<a className="skip-link" href="#main-content">
|
|
|
|
|
跳转到主要内容
|
|
|
|
|
</a>
|
|
|
|
|
<SiteHeader />
|
|
|
|
|
<main id="main-content">{children}</main>
|
|
|
|
|
<SiteFooter />
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|
|
|
|
|
);
|
|
|
|
|
}
|