diff --git a/website/i18n/zh-Hans/code.json b/website/i18n/zh-Hans/code.json index 56d4efb6..baabd423 100644 --- a/website/i18n/zh-Hans/code.json +++ b/website/i18n/zh-Hans/code.json @@ -17,7 +17,7 @@ }, "theme.ErrorPageContent.tryAgain": { "message": "重试", - "description": "The label of the button to try again when the page crashed" + "description": "The label of the button to try again rendering when the React error boundary captures an error" }, "theme.NotFound.title": { "message": "找不到页面", @@ -389,5 +389,20 @@ }, "Source Code": { "message": "源代码" + }, + "AI": { + "message": "AI" + }, + "AI Assistant": { + "message": "AI 智能助手" + }, + "Thanks for ChatGPT, Communicate with people will be easier and friendly.": { + "message": "感谢 ChatGPT,人与人交流将更轻松、更友好." + }, + "View in Bilibili": { + "message": "在 Bilibili 观看" + }, + "Communicate by AI, AI Assistant will help you improve your word, simplify your expression and even summary history messages.": { + "message": "使用AI交流,AI 智能助手助你改善用词,简化表达,甚至汇总历史消息." } } diff --git a/website/i18n/zh-Hans/docusaurus-theme-classic/navbar.json b/website/i18n/zh-Hans/docusaurus-theme-classic/navbar.json index 75d9a0b3..99771f4a 100644 --- a/website/i18n/zh-Hans/docusaurus-theme-classic/navbar.json +++ b/website/i18n/zh-Hans/docusaurus-theme-classic/navbar.json @@ -18,5 +18,9 @@ "item.label.Downloads": { "message": "下载", "description": "Navbar item with label Downloads" + }, + "logo.alt": { + "message": "Tailchat Logo", + "description": "The alt text of navbar logo" } } diff --git a/website/src/components/FeatureSection.less b/website/src/components/FeatureSection.less index 7f5746bb..6b3c4398 100644 --- a/website/src/components/FeatureSection.less +++ b/website/src/components/FeatureSection.less @@ -114,7 +114,7 @@ @media (min-width: 997px) { flex-direction: row; - &.reverse { + &:nth-child(odd) { flex-direction: row-reverse; } } diff --git a/website/src/components/FeatureSection.tsx b/website/src/components/FeatureSection.tsx index 0804442c..1ba881d2 100644 --- a/website/src/components/FeatureSection.tsx +++ b/website/src/components/FeatureSection.tsx @@ -3,7 +3,7 @@ import clsx from 'clsx'; import React, { useEffect, useState } from 'react'; import Head from '@docusaurus/Head'; import Link from '@docusaurus/Link'; -import Translate from '@docusaurus/Translate'; +import Translate, { translate } from '@docusaurus/Translate'; import { nightlyUrl } from '../utils/consts'; import './FeatureSection.less'; @@ -59,6 +59,7 @@ export const FeatureSection: React.FC = React.memo(() => { + @@ -72,6 +73,7 @@ export const FeatureSection: React.FC = React.memo(() => {
Messenger} /> + AI} /> Plugin} /> Roles} /> Bot} /> @@ -113,7 +115,39 @@ export const FeatureSection: React.FC = React.memo(() => {
-
+
+
+

+ AI Assistant +

+

+ + Communicate by AI, AI Assistant will help you improve your + word, simplify your expression and even summary history + messages. + +

+

+ + Thanks for ChatGPT, Communicate with people will be easier and + friendly. + +

+
+ + {translate({ message: 'View in Bilibili' })} + +
+
+
+ +
+
+ +

Plugin Center @@ -170,7 +204,7 @@ export const FeatureSection: React.FC = React.memo(() => {

-
+

Bot diff --git a/website/static/img/intro/ai.png b/website/static/img/intro/ai.png new file mode 100644 index 00000000..0feb0746 Binary files /dev/null and b/website/static/img/intro/ai.png differ