初步框架

This commit is contained in:
禺狨
2023-03-01 17:26:17 +08:00
parent 46a8387515
commit 3dff7f139d
25 changed files with 36399 additions and 6545 deletions

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

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

View File

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