mirror of
https://github.com/PlayEdu/backend
synced 2025-12-23 05:39:38 +08:00
初步框架
This commit is contained in:
0
src/compenents/footer/Footer.module.css
Normal file
0
src/compenents/footer/Footer.module.css
Normal file
33
src/compenents/footer/Footer.tsx
Normal file
33
src/compenents/footer/Footer.tsx
Normal file
@@ -0,0 +1,33 @@
|
||||
import React from "react";
|
||||
import styles from "./Footer.module.css";
|
||||
import { Layout, Typography } from "antd";
|
||||
|
||||
export const Footer: React.FC = () => {
|
||||
return (
|
||||
<Layout.Footer
|
||||
style={{ backgroundColor: "#0F0A1E", height: 103, paddingTop: 30 }}
|
||||
>
|
||||
<Typography.Title
|
||||
style={{
|
||||
textAlign: "center",
|
||||
fontSize: 12,
|
||||
color: "#FFFFFF",
|
||||
opacity: 0.3,
|
||||
}}
|
||||
>
|
||||
© 2021 PlayEdu • 粤ICP备20026280号-01
|
||||
</Typography.Title>
|
||||
<Typography.Title
|
||||
style={{
|
||||
textAlign: "center",
|
||||
fontSize: 12,
|
||||
color: "#FFFFFF",
|
||||
opacity: 0.3,
|
||||
marginTop: 19,
|
||||
}}
|
||||
>
|
||||
Powered By 杭州白书科技
|
||||
</Typography.Title>
|
||||
</Layout.Footer>
|
||||
);
|
||||
};
|
||||
1
src/compenents/footer/index.ts
Normal file
1
src/compenents/footer/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export * from "./Footer";
|
||||
46
src/compenents/header/Header.module.css
Normal file
46
src/compenents/header/Header.module.css
Normal file
@@ -0,0 +1,46 @@
|
||||
.app-header {
|
||||
background-color: white !important;
|
||||
}
|
||||
|
||||
.main-menu {
|
||||
padding-left: 6% !important;
|
||||
padding-right: 6% !important;
|
||||
background-color: #1976d2 !important;
|
||||
color: #f5f5f5 !important;
|
||||
}
|
||||
|
||||
.button-group {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.main-header {
|
||||
width: 1200px;
|
||||
background-color: white !important;
|
||||
height: 70px;
|
||||
line-height: 70px;
|
||||
width: 1200px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.App-logo {
|
||||
width: 151px;
|
||||
height: 40px;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.top-main {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.title {
|
||||
line-height: 64px !important;
|
||||
display: inline;
|
||||
color: #03a9f4 !important;
|
||||
}
|
||||
|
||||
|
||||
30
src/compenents/header/Header.tsx
Normal file
30
src/compenents/header/Header.tsx
Normal file
@@ -0,0 +1,30 @@
|
||||
import React from "react";
|
||||
import styles from "./Header.module.css";
|
||||
import logo from "../../assets/logo.svg";
|
||||
import { Layout, Typography, Menu, Button, Dropdown, MenuProps } from "antd";
|
||||
import { Link } from "react-router-dom";
|
||||
|
||||
|
||||
|
||||
export const Header: React.FC = () => {
|
||||
|
||||
|
||||
return (
|
||||
<div className={styles["app-header"]}>
|
||||
<Layout.Header className={styles["main-header"]}>
|
||||
<Link
|
||||
className={styles["top-main"]}
|
||||
style={{ textDecoration: "none" }}
|
||||
to={`/`}
|
||||
>
|
||||
<img src={logo} alt="" className={styles["App-logo"]} />
|
||||
</Link>
|
||||
<Button.Group className={styles["button-group"]}>
|
||||
<Link style={{ textDecoration: "none" }} to={`/login`}>
|
||||
<Button>登录</Button>
|
||||
</Link>
|
||||
</Button.Group>
|
||||
</Layout.Header>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
1
src/compenents/header/index.ts
Normal file
1
src/compenents/header/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export * from "./Header";
|
||||
2
src/compenents/index.ts
Normal file
2
src/compenents/index.ts
Normal file
@@ -0,0 +1,2 @@
|
||||
export * from "./footer";
|
||||
export * from "./header";
|
||||
Reference in New Issue
Block a user