diff --git a/public/index.html b/public/index.html
index aa069f2..c841d0e 100644
--- a/public/index.html
+++ b/public/index.html
@@ -24,7 +24,7 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
-
React App
+ PlayEdu
You need to enable JavaScript to run this app.
diff --git a/src/pages/course/index.ts b/src/pages/course/index.ts
new file mode 100644
index 0000000..24dffbc
--- /dev/null
+++ b/src/pages/course/index.ts
@@ -0,0 +1 @@
+export * from "./vod";
\ No newline at end of file
diff --git a/src/pages/course/vod/Vod.module.css b/src/pages/course/vod/Vod.module.css
new file mode 100644
index 0000000..e69de29
diff --git a/src/pages/course/vod/Vod.tsx b/src/pages/course/vod/Vod.tsx
new file mode 100644
index 0000000..22254b2
--- /dev/null
+++ b/src/pages/course/vod/Vod.tsx
@@ -0,0 +1,130 @@
+import React, { useEffect } from "react";
+import { Typography, Input, Select, Button, Space, Table } from "antd";
+import type { ColumnsType } from "antd/es/table";
+import styles from "./Index.module.css";
+import { PlusOutlined, ReloadOutlined } from "@ant-design/icons";
+import { login } from "../../../api/index";
+
+interface DataType {
+ key: string;
+ name: string;
+ age: number;
+ address: string;
+}
+
+const columns: ColumnsType = [
+ {
+ title: "Name",
+ dataIndex: "name",
+ key: "name",
+ render: (text) => {text} ,
+ },
+ {
+ title: "Age",
+ dataIndex: "age",
+ key: "age",
+ },
+ {
+ title: "Address",
+ dataIndex: "address",
+ key: "address",
+ },
+ {
+ title: "Action",
+ key: "action",
+ render: (_, record) => (
+
+ Invite {record.name}
+ Delete
+
+ ),
+ },
+];
+
+const data: DataType[] = [
+ {
+ key: "1",
+ name: "John Brown",
+ age: 32,
+ address: "New York No. 1 Lake Park",
+ },
+ {
+ key: "2",
+ name: "Jim Green",
+ age: 42,
+ address: "London No. 1 Lake Park",
+ },
+ {
+ key: "3",
+ name: "Joe Black",
+ age: 32,
+ address: "Sydney No. 1 Lake Park",
+ },
+];
+
+export const VodListPage: React.FC = () => {
+ useEffect(() => {
+ login.login("1@qq.com", "123123", "1", "2");
+ }, []);
+ const handleChange = (e: any) => {
+ console.log(e);
+ };
+ return (
+ <>
+
+
+
+ 课程名称:
+
+
+
+ 课程分类:
+
+
+
+
+ 重 置
+
+
+ 查 询
+
+
+
+
+
+
+
+ }
+ className="mr-16"
+ type="primary"
+ danger
+ >
+ 新建
+
+ 删除
+
+
+ }
+ style={{ color: "#333333" }}
+ >
+
+
+
+
+ >
+ );
+};
diff --git a/src/pages/course/vod/index.ts b/src/pages/course/vod/index.ts
new file mode 100644
index 0000000..277564f
--- /dev/null
+++ b/src/pages/course/vod/index.ts
@@ -0,0 +1 @@
+export * from "./Vod";
\ No newline at end of file
diff --git a/src/pages/index.ts b/src/pages/index.ts
index 493b21e..f3aaee1 100644
--- a/src/pages/index.ts
+++ b/src/pages/index.ts
@@ -1,4 +1,5 @@
export * from "./home";
export * from "./login";
export * from "./dashboard";
-export * from "./error";
\ No newline at end of file
+export * from "./error";
+export * from "./course";
\ No newline at end of file
diff --git a/src/router/routes.tsx b/src/router/routes.tsx
index e353e9f..dcc2245 100644
--- a/src/router/routes.tsx
+++ b/src/router/routes.tsx
@@ -1,6 +1,6 @@
import React from "react";
import { RouteObject } from "react-router-dom";
-import { Login, HomePage, Dashboard, ErrorPage } from "../pages";
+import { Login, HomePage, Dashboard, ErrorPage, VodListPage } from "../pages";
const routes: RouteObject[] = [
{
@@ -11,6 +11,10 @@ const routes: RouteObject[] = [
path: "/",
element: ,
},
+ {
+ path: "/vod",
+ element: ,
+ },
],
},
{
diff --git a/src/utils/index.css b/src/utils/index.css
index 4ebb7cc..f498231 100644
--- a/src/utils/index.css
+++ b/src/utils/index.css
@@ -25,7 +25,74 @@
color: white !important;
}
+.ant-menu-submenu-selected > .ant-menu-submenu-title {
+ color: #ff4d4f !important;
+}
+
.ant-menu-item-active {
background-color: #ff4d4f !important;
color: white !important;
}
+
+.mr-16 {
+ margin-right: 16px;
+}
+
+.mb-24 {
+ margin-bottom: 24px;
+}
+
+.mr-24 {
+ margin-right: 24px;
+}
+
+.float-left {
+ width: 100%;
+ height: auto;
+ float: left;
+}
+
+.d-flex {
+ display: flex;
+ align-items: center;
+}
+
+.j-flex {
+ display: flex;
+ justify-content: center;
+}
+
+.d-j-flex {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+}
+
+.j-r-flex {
+ display: flex;
+ justify-content: right;
+}
+
+.j-b-flex {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+}
+
+.primary {
+ color: #ff4d4f;
+}
+
+.c-red {
+ color: #ff4d4f;
+}
+
+.playedu-main-body {
+ width: 100%;
+ height: auto;
+ float: left;
+ background-color: white;
+ box-sizing: border-box;
+ padding: 24px;
+ border-radius: 12px;
+}