feat: Phase 1-3 全部完成 — 沙盒增强、学情分析、学习路径

This commit is contained in:
yuzhiran-dev
2026-05-18 09:48:51 +08:00
commit 11bb86854c
277 changed files with 37755 additions and 0 deletions
+46
View File
@@ -0,0 +1,46 @@
import type { Metadata } from 'next';
import './globals.css';
import { Header } from '@/components/layout/header';
import { Footer } from '@/components/layout/footer';
import { ThemeProvider } from '@/components/providers/theme-provider';
import { AuthProvider } from '@/lib/auth-context';
import { Toaster } from '@/components/ui/sonner';
export const metadata: Metadata = {
title: {
default: '宇之然 AI - AI 工具与知识社区',
template: '%s | 宇之然 AI',
},
description: '宇之然 AI 是面向大众化分领域用户的 AI 工具与知识社区,涵盖 AI 通识、提示词工程、智能体教程、模型百科等,让每个人都能用好 AI。',
keywords: ['AI', '人工智能', '学习', '提示词', '智能体', '大模型', '宇之然'],
icons: {
icon: '/favicon.png',
shortcut: '/favicon.png',
apple: '/icon.svg',
},
openGraph: {
type: 'website',
locale: 'zh_CN',
siteName: '宇之然 AI',
title: '宇之然 AI - AI 工具与知识社区',
description: '让每个人都能用好 AI',
url: 'https://yuzhiran.com',
},
};
export default function RootLayout({ children }: { children: React.ReactNode }) {
return (
<html lang="zh-CN" suppressHydrationWarning>
<body className="min-h-screen flex flex-col">
<ThemeProvider attribute="class" defaultTheme="system" enableSystem disableTransitionOnChange>
<AuthProvider>
<Header />
<main className="flex-1">{children}</main>
<Footer />
<Toaster richColors closeButton />
</AuthProvider>
</ThemeProvider>
</body>
</html>
);
}