mirror of
https://github.com/PlayEdu/backend
synced 2025-08-20 13:49:36 +08:00
安装less
This commit is contained in:
parent
d13de512fc
commit
afaafeba31
BIN
src/assets/images/login/banner.png
Normal file
BIN
src/assets/images/login/banner.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 33 KiB |
BIN
src/assets/images/login/icon.png
Normal file
BIN
src/assets/images/login/icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 86 KiB |
@ -1,5 +1,5 @@
|
||||
import React from "react";
|
||||
import styles from "./index.less";
|
||||
import styles from "./index.module.less";
|
||||
import { Layout, Button, Dropdown, MenuProps } from "antd";
|
||||
import { useSelector } from "../../store/hooks";
|
||||
import { useDispatch } from "react-redux";
|
||||
|
@ -1,13 +0,0 @@
|
||||
.left-menu {
|
||||
width: 200px;
|
||||
height: 100%;
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
.App-logo {
|
||||
width: 124px;
|
||||
height: 40px;
|
||||
margin-top: 16px;
|
||||
margin-left: 38px;
|
||||
margin-bottom: 20px;
|
||||
}
|
12
src/compenents/leftMenu/index.module.less
Normal file
12
src/compenents/leftMenu/index.module.less
Normal file
@ -0,0 +1,12 @@
|
||||
.left-menu {
|
||||
width: 200px;
|
||||
height: 100%;
|
||||
background-color: #fff;
|
||||
.App-logo {
|
||||
width: 124px;
|
||||
height: 40px;
|
||||
margin-top: 16px;
|
||||
margin-left: 38px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
}
|
@ -7,7 +7,7 @@ import {
|
||||
import { Menu } from "antd";
|
||||
//导出路由跳转hooks函数
|
||||
import { useNavigate, Link } from "react-router-dom";
|
||||
import styles from "./index.less";
|
||||
import styles from "./index.module.less";
|
||||
import logo from "../../assets/logo.png";
|
||||
import "../../utils/index.less";
|
||||
|
||||
|
@ -1 +0,0 @@
|
||||
export * from "./vod";
|
@ -1 +0,0 @@
|
||||
export * from "./Vod"
|
@ -1,7 +1,7 @@
|
||||
import React, { useEffect } from "react";
|
||||
import { Typography, Input, Select, Button, Space, Table } from "antd";
|
||||
import type { ColumnsType } from "antd/es/table";
|
||||
import styles from "./Vod.module.less";
|
||||
import styles from "./index.module.less";
|
||||
import { PlusOutlined, ReloadOutlined } from "@ant-design/icons";
|
||||
import { login } from "../../../api/index";
|
||||
|
@ -1 +0,0 @@
|
||||
export * from "./Dashboard";
|
@ -1,5 +1,5 @@
|
||||
import React from "react";
|
||||
import styles from "./Dashboard.module.less";
|
||||
import styles from "./index.module.less";
|
||||
|
||||
export const Dashboard: React.FC<any> = () => {
|
||||
return (
|
@ -1 +0,0 @@
|
||||
export * from "./Error";
|
@ -1,5 +1,5 @@
|
||||
import React from "react";
|
||||
import styles from "./Error.module.less";
|
||||
import styles from "./index.module.less";
|
||||
|
||||
export const ErrorPage: React.FC<any> = () => {
|
||||
return (
|
@ -1 +0,0 @@
|
||||
export * from "./HomePage";
|
@ -1,14 +1,10 @@
|
||||
import React, { useEffect } from "react";
|
||||
import styles from "./HomePage.module.less";
|
||||
import styles from "./index.module.less";
|
||||
import { Outlet, useNavigate } from "react-router-dom";
|
||||
import { Header, LeftMenu, Footer } from "../../compenents";
|
||||
import { login } from "../../api/index";
|
||||
|
||||
|
||||
export const HomePage: React.FC = () => {
|
||||
useEffect(() => {
|
||||
|
||||
}, []);
|
||||
useEffect(() => {}, []);
|
||||
|
||||
return (
|
||||
<>
|
@ -2,5 +2,5 @@ export * from "./home";
|
||||
export * from "./login";
|
||||
export * from "./dashboard";
|
||||
export * from "./error";
|
||||
export * from "./course";
|
||||
export * from "./test";
|
||||
export * from "./test";
|
||||
export * from "./course/vod";
|
||||
|
@ -1,20 +0,0 @@
|
||||
.login-content {
|
||||
width: 100%;
|
||||
float: left;
|
||||
height: 100%;
|
||||
background-color: #fff;
|
||||
.login-box {
|
||||
width: 1200px;
|
||||
height: 500px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
margin-top: 150px;
|
||||
.captcha {
|
||||
width: 120px;
|
||||
height: 48px;
|
||||
margin-left: 10px;
|
||||
cursor: pointer;
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
}
|
47
src/pages/login/index.module.less
Normal file
47
src/pages/login/index.module.less
Normal file
@ -0,0 +1,47 @@
|
||||
.login-content {
|
||||
width: 100%;
|
||||
float: left;
|
||||
height: 100vh;
|
||||
background-color: #fff;
|
||||
position: relative;
|
||||
.banner-box {
|
||||
width: 100%;
|
||||
float: left;
|
||||
height: 640px;
|
||||
.banner {
|
||||
width: 100%;
|
||||
height: 640px;
|
||||
}
|
||||
}
|
||||
.login-box {
|
||||
width: 880px;
|
||||
height: 560px;
|
||||
background: #ffffff;
|
||||
box-shadow: 0px 16px 24px 0px rgba(0, 0, 0, 0.1);
|
||||
border-radius: 30px;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
margin-left: -440px;
|
||||
margin-top: -280px;
|
||||
display: flex;
|
||||
.left-box {
|
||||
width: 440px;
|
||||
height: 100%;
|
||||
.icon{
|
||||
|
||||
}
|
||||
}
|
||||
.right-box {
|
||||
width: 440px;
|
||||
height: 100%;
|
||||
.captcha {
|
||||
width: 120px;
|
||||
height: 48px;
|
||||
margin-left: 10px;
|
||||
cursor: pointer;
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -1 +0,0 @@
|
||||
export * from "./Login";
|
@ -1,5 +1,5 @@
|
||||
import React, { useState, useEffect } from "react";
|
||||
import styles from "./Login.module.less";
|
||||
import styles from "./index.module.less";
|
||||
import { Typography, Spin, Input, Button, message } from "antd";
|
||||
import { login, system } from "../../api/index";
|
||||
import { setToken } from "../../utils/index";
|
||||
@ -10,6 +10,8 @@ import {
|
||||
SetPermisssionsActionCreator,
|
||||
} from "../../store/user/userActions";
|
||||
import { useNavigate } from "react-router-dom";
|
||||
import banner from "../../assets/images/login/banner.png";
|
||||
import icon from "../../assets/images/login/icon.png";
|
||||
|
||||
export const Login: React.FC = () => {
|
||||
const dispatch = useDispatch();
|
||||
@ -81,8 +83,14 @@ export const Login: React.FC = () => {
|
||||
|
||||
return (
|
||||
<div className={styles["login-content"]}>
|
||||
<div className={styles["banner-box"]}>
|
||||
<img className={styles["banner"]} src={banner} alt="" />
|
||||
</div>
|
||||
<div className={styles["login-box"]}>
|
||||
<div className="float-left c-flex">
|
||||
<div className={styles["left-box"]}>
|
||||
<img className={styles["icon"]} src={icon} alt="" />
|
||||
</div>
|
||||
<div className={styles["right-box"]}>
|
||||
<div className="d-flex mr-24">
|
||||
<Typography.Title>登录后台</Typography.Title>
|
||||
</div>
|
Loading…
x
Reference in New Issue
Block a user