Przeglądaj źródła

:art: fromatting

visuddhinanda 3 lat temu
rodzic
commit
9c2ccd1a0d
1 zmienionych plików z 22 dodań i 46 usunięć
  1. 22 46
      dashboard/src/pages/library/course/list.tsx

+ 22 - 46
dashboard/src/pages/library/course/list.tsx

@@ -1,76 +1,52 @@
 //课程主页
 //课程主页
-import { Link } from "react-router-dom";
-import { Space, Input } from "antd";
-import { Layout, Affix, Col, Row, Divider } from "antd";
+import { Layout, Col, Row, Divider } from "antd";
 
 
 import LecturerList from "../../../components/library/course/LecturerList";
 import LecturerList from "../../../components/library/course/LecturerList";
 import CourseList from "../../../components/library/course/CourseList";
 import CourseList from "../../../components/library/course/CourseList";
 const { Content, Header } = Layout;
 const { Content, Header } = Layout;
-const { Search } = Input;
+
 const Widget = () => {
 const Widget = () => {
   // TODO i18n
   // TODO i18n
   return (
   return (
     <Layout>
     <Layout>
       <Header style={{ height: 200 }}>
       <Header style={{ height: 200 }}>
-        <h1 style={{"color": "white", "fontWeight": 'bold', "fontSize": 40}}>课程</h1>
-        <p style={{"color": "white", "fontSize": 17}}>看看世界各地的巴利专家都是如何解析圣典的</p>
+        <h1 style={{ color: "white", fontWeight: "bold", fontSize: 40 }}>
+          课程
+        </h1>
+        <p style={{ color: "white", fontSize: 17 }}>
+          看看世界各地的巴利专家都是如何解析圣典的
+        </p>
       </Header>
       </Header>
 
 
-
       <Content>
       <Content>
         <Row>
         <Row>
           <Col flex="auto"></Col>
           <Col flex="auto"></Col>
-          <Col flex="1260px">
-          <Row>
-              
-          <h1>主讲人</h1>
-              </Row>
+          <Col flex="960px">
+            <Row>
+              <h1>最新</h1>
+            </Row>
             <Row>
             <Row>
-              
-            <div>
               <LecturerList />
               <LecturerList />
-            </div>
             </Row>
             </Row>
-          </Col>
-          <Col flex="auto"></Col>
-        </Row>
-        <Space></Space>
-        <Row>
-          <Col flex="auto"></Col>
-          <Col flex="1260px">
-          <Row>
-          <Divider />   
-          <h1>正在进行</h1>
-              </Row>
+            <Divider />
             <Row>
             <Row>
-              
-            <div>
-              <CourseList />
-            </div>
+              <h1>正在进行</h1>
             </Row>
             </Row>
-          </Col>
-          <Col flex="auto"></Col>
-        </Row>
-        <Space></Space>
-        <Row>
-          <Col flex="auto"></Col>
-          <Col flex="1260px">
-          <Row>
-          <Divider />
-          <h1>已经结束</h1>
-              </Row>
             <Row>
             <Row>
-              
-            <div>
-              <CourseList />
-            </div>
+              <CourseList type="open" />
+            </Row>
+            <Divider />
+            <Row>
+              <h1>已经结束</h1>
+            </Row>
+            <Row>
+              <CourseList type="close" />
             </Row>
             </Row>
           </Col>
           </Col>
           <Col flex="auto"></Col>
           <Col flex="auto"></Col>
         </Row>
         </Row>
       </Content>
       </Content>
     </Layout>
     </Layout>
-
   );
   );
 };
 };