安装less

This commit is contained in:
禺狨 2023-03-03 14:24:55 +08:00
parent d13de512fc
commit afaafeba31
26 changed files with 78 additions and 54 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB

View File

@ -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";

View File

@ -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;
}

View 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;
}
}

View File

@ -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";

View File

@ -1 +0,0 @@
export * from "./vod";

View File

@ -1 +0,0 @@
export * from "./Vod"

View File

@ -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";

View File

@ -1 +0,0 @@
export * from "./Dashboard";

View File

@ -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 (

View File

@ -1 +0,0 @@
export * from "./Error";

View File

@ -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 (

View File

@ -1 +0,0 @@
export * from "./HomePage";

View File

@ -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 (
<>

View File

@ -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";

View File

@ -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;
}
}
}

View 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;
}
}
}
}

View File

@ -1 +0,0 @@
export * from "./Login";

View File

@ -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>