mirror of
https://github.com/PlayEdu/frontend.git
synced 2025-12-24 00:49:45 +08:00
登录初步
This commit is contained in:
0
src/compenents/footer/index.module.scss
Normal file
0
src/compenents/footer/index.module.scss
Normal file
21
src/compenents/footer/index.tsx
Normal file
21
src/compenents/footer/index.tsx
Normal file
@@ -0,0 +1,21 @@
|
||||
import React from "react";
|
||||
import { Layout } from "antd";
|
||||
|
||||
export const Footer: React.FC = () => {
|
||||
return (
|
||||
<Layout.Footer
|
||||
style={{
|
||||
width: "100%",
|
||||
backgroundColor: "#ffffff",
|
||||
height: 130,
|
||||
textAlign: "center",
|
||||
paddingBottom: 100,
|
||||
}}
|
||||
>
|
||||
<i
|
||||
style={{ fontSize: 30, color: "#cccccc" }}
|
||||
className="iconfont icon-waterprint"
|
||||
></i>
|
||||
</Layout.Footer>
|
||||
);
|
||||
};
|
||||
2
src/compenents/index.ts
Normal file
2
src/compenents/index.ts
Normal file
@@ -0,0 +1,2 @@
|
||||
export * from "./footer";
|
||||
export * from "./no-header";
|
||||
29
src/compenents/no-header/index.module.scss
Normal file
29
src/compenents/no-header/index.module.scss
Normal file
@@ -0,0 +1,29 @@
|
||||
.app-header {
|
||||
background-color: #f6f6f6;
|
||||
box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
/* Firefox */
|
||||
-webkit-box-sizing: border-box;
|
||||
/* Safari */
|
||||
padding: 0px 24px;
|
||||
}
|
||||
|
||||
.main-header {
|
||||
width: 1200px;
|
||||
height: 60px;
|
||||
line-height: 60px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.App-logo {
|
||||
width: 124px;
|
||||
height: 40px;
|
||||
}
|
||||
|
||||
.top-main {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
19
src/compenents/no-header/index.tsx
Normal file
19
src/compenents/no-header/index.tsx
Normal file
@@ -0,0 +1,19 @@
|
||||
import React from "react";
|
||||
import styles from "./index.module.scss";
|
||||
import { useDispatch } from "react-redux";
|
||||
import { useNavigate } from "react-router-dom";
|
||||
import { Image } from "antd";
|
||||
import logo from "../../assets/logo.png";
|
||||
|
||||
export const NoHeader: React.FC = () => {
|
||||
const dispatch = useDispatch();
|
||||
const navigate = useNavigate();
|
||||
|
||||
return (
|
||||
<div className={styles["app-header"]}>
|
||||
<div className={styles["main-header"]}>
|
||||
<img src={logo} className={styles["App-logo"]} />
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user