diff --git a/messages/en.json b/messages/en.json index 9294c07..3addc30 100644 --- a/messages/en.json +++ b/messages/en.json @@ -172,5 +172,32 @@ "WorkspaceEditorFooter": { "Row": "Row", "Column": "Column" + }, + "HomePage": { + "MainView": { + "title": "Judge4c", + "description": "All in one place to support coding learning and teaching:", + "features": { + "feature1": "Integrated Language Services with Code Completion & Diagnostics", + "feature2": "Multi-language Support + Real-time Execution Feedback for Faster Learning", + "feature3": "World's First Open-Source Next.js + Monaco LSP Implementation" + }, + "quickStart": "Quickstart", + "contactUs": "Contact Us" + }, + "FAQs": { + "title": "Frequently Asked Questions", + "description": "Can't find your answer? Contact us!", + "questions": { + "question1": "Which code editor is used?", + "answer1": "Built with Microsoft's Monaco Editor", + "question2": "What programming languages are supported?", + "answer2": "Full support for C/C++ (with LSP integration), syntax highlighting for other languages", + "question3": "How do theme and language settings work?", + "answer3": "Themes auto-switch (system-aware) or can be manually set; language defaults to browser preference with manual override", + "question4": "What styling solutions are used for the editor and docs?", + "answer4": "Editor uses @shikijs/monaco themes, documentation rendered with github-markdown-css" + } + } } } \ No newline at end of file diff --git a/messages/zh.json b/messages/zh.json index ec17cf9..7b97b99 100644 --- a/messages/zh.json +++ b/messages/zh.json @@ -172,5 +172,32 @@ "WorkspaceEditorFooter": { "Row": "行", "Column": "列" + }, + "HomePage": { + "MainView": { + "title": "Judge4c", + "description": "一站式助力编程学习与教学:", + "features": { + "feature1": "语言服务集成,内置代码补全与诊断", + "feature2": "多语言支持 + 实时运行反馈,学习更高效", + "feature3": "全球首个 Next.js + Monaco LSP 开源解决方案" + }, + "quickStart": "即刻启程", + "contactUs": "联系我们" + }, + "FAQs": { + "title": "常见问题", + "description": "未找到答案?欢迎联系我们!", + "questions": { + "question1": "使用什么代码编辑器?", + "answer1": "基于 @monaco-editor/react 开发", + "question2": "支持哪些编程语言?", + "answer2": "支持 C/C++ (集成LSP),其他语言支持语法高亮", + "question3": "如何设置主题和语言?", + "answer3": "主题支持自动切换(跟随系统)或手动设置;语言默认跟随浏览器,可手动修改", + "question4": "编辑器主题和文档样式方案?", + "answer4": "编辑器采用 @shikijs/monaco, 文档采用 github-markdown-css 样式" + } + } } } \ No newline at end of file diff --git a/public/background.png b/public/background.png new file mode 100644 index 0000000..e8ea6d3 Binary files /dev/null and b/public/background.png differ diff --git a/src/app/(app)/page.tsx b/src/app/(app)/page.tsx index 38a4833..7bc5eb0 100644 --- a/src/app/(app)/page.tsx +++ b/src/app/(app)/page.tsx @@ -1,5 +1,15 @@ -import { redirect } from "next/navigation"; +import FAQs from "@/components/faqs"; +import { Header } from "@/components/header"; +import { Footer } from "@/components/footer"; +import { MainView } from "@/components/main-view"; export default function HomePage() { - redirect("/problemset"); + return ( + <> +
+ + +