Răsfoiți Sursa

新增下载页面

visuddhinanda 2 ani în urmă
părinte
comite
f9999797cf

+ 6 - 0
dashboard/src/Router.tsx

@@ -55,6 +55,8 @@ import LibraryDiscussionTopic from "./pages/library/discussion/topic";
 
 import LibrarySearch from "./pages/library/search";
 import LibrarySearchKey from "./pages/library/search/search";
+import LibraryDownload from "./pages/library/download";
+import LibraryDownloadPage from "./pages/library/download/Download";
 
 import Studio from "./pages/studio";
 import StudioHome from "./pages/studio/home";
@@ -214,6 +216,10 @@ const Widget = () => {
           <Route path="key/:key" element={<LibrarySearchKey />} />
         </Route>
 
+        <Route path="download" element={<LibraryDownload />}>
+          <Route path="download" element={<LibraryDownloadPage />} />
+        </Route>
+
         <Route path="studio/:studioname" element={<Studio />}>
           <Route path="home" element={<StudioHome />} />
           <Route path="palicanon" element={<StudioPalicanon />}></Route>

+ 28 - 0
dashboard/src/pages/library/download/Download.tsx

@@ -0,0 +1,28 @@
+import { Divider, Typography } from "antd";
+import { Link } from "react-router-dom";
+import bg_png from "../../../assets/library/images/download_bg.png";
+const { Paragraph } = Typography;
+
+const ChapterNewWidget = () => {
+  return (
+    <Paragraph>
+      <div>
+        <img alt="code" src={bg_png} />
+      </div>
+      <Divider>中国大陆</Divider>
+      <Paragraph>
+        <Link to="https://gitee.com/" target="_blank">
+          Gitee
+        </Link>
+      </Paragraph>
+      <Divider>其他地区</Divider>
+      <Paragraph>
+        <Link to="https://github.com/gohugoio/hugo/releases" target="_blank">
+          Github
+        </Link>
+      </Paragraph>
+    </Paragraph>
+  );
+};
+
+export default ChapterNewWidget;

+ 25 - 0
dashboard/src/pages/library/download/index.tsx

@@ -0,0 +1,25 @@
+import { Outlet } from "react-router-dom";
+
+import HeadBar from "../../../components/library/HeadBar";
+import FooterBar from "../../../components/library/FooterBar";
+import { Col, Layout, Row } from "antd";
+
+const Widget = () => {
+  // TODO
+  return (
+    <Layout>
+      <HeadBar selectedKeys="discussion" />
+
+      <Row>
+        <Col flex={"auto"}></Col>
+        <Col flex={"960px"}>
+          <Outlet />
+        </Col>
+        <Col flex={"auto"}></Col>
+      </Row>
+      <FooterBar />
+    </Layout>
+  );
+};
+
+export default Widget;