layout.tsx 887 B

1234567891011121314151617181920
  1. import type { Metadata } from 'next';
  2. import { Geist, Geist_Mono } from 'next/font/google';
  3. import './globals.css';
  4. const sans = Geist({ variable: '--font-geist-sans', subsets: ['latin'] });
  5. const mono = Geist_Mono({ variable: '--font-geist-mono', subsets: ['latin'] });
  6. export const metadata: Metadata = {
  7. title: '术核 AI · 后端工程课件',
  8. description:
  9. '用轻量电商商品服务串联 API、表结构设计、数据库、异步任务、Redis、Docker、Linux 与线上排障,通过图解学习后端工程及分布式系统设计,最后用逐模块复盘与自测检验掌握程度。',
  10. icons: { icon: '/brand/shuh-favicon.ico' },
  11. };
  12. export default function RootLayout({
  13. children,
  14. }: Readonly<{ children: React.ReactNode }>) {
  15. return (
  16. <html lang="zh-CN">
  17. <body className={`${sans.variable} ${mono.variable}`}>{children}</body>
  18. </html>
  19. );
  20. }