修正按钮、上传页面

This commit is contained in:
2021-07-27 13:43:08 +08:00
parent b4a7a5a347
commit 0824757a66
4 changed files with 16 additions and 7 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 50 KiB

After

Width:  |  Height:  |  Size: 46 KiB

View File

@@ -3,13 +3,14 @@ a.btn {
} }
.btn { .btn {
color: white !important; color: white !important;
border-radius: .3rem; border-radius: .3em;
padding: .375rem 0; padding: .375em 0;
font-size: 1.1rem; font-size: 1.1em;
cursor: pointer; cursor: pointer;
transition: filter .3s ease-out; transition: filter .3s ease-out;
width: 5em; width: 5em;
text-align: center; text-align: center;
font-size: 18px;
} }
.btn:disabled { .btn:disabled {
cursor: not-allowed; cursor: not-allowed;

View File

@@ -1,20 +1,27 @@
.banner { .banner {
height: 60px; height: 80px;
width: 100%; width: 100%;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
padding: 10px 80px;
box-sizing: border-box;
background-color: #9D0004;
} }
.sdu, .sdu,
.user { .user {
height: 100%; height: 100%;
display: flex; display: flex;
align-items: center;
} }
.sdu-logo, .sdu-logo,
.user-logo { .user-logo {
height: 100%; height: 100%;
} }
.sdu-name, .sdu-name {
height: 40px;
margin-left: 10px;
}
.user-name { .user-name {
height: 100%; height: 100%;
line-height: 60px; line-height: 60px;

View File

@@ -5,6 +5,7 @@ import UploadUnit from '../components/UploadUnit/UploadUnit';
import { post } from '../helper/axios'; import { post } from '../helper/axios';
import { apis } from '../helper/apis'; import { apis } from '../helper/apis';
import { alert } from '../helper/alert'; import { alert } from '../helper/alert';
import { images } from '../resources.json';
import './upload.css'; import './upload.css';
@@ -56,8 +57,8 @@ export class UploadContainer extends Component {
<div className="upload-container"> <div className="upload-container">
<div className="banner"> <div className="banner">
<div className="sdu"> <div className="sdu">
<img src="" className="sdu-logo" alt="logo" /> <img src={images.icon} className="sdu-logo" alt="logo" />
<div className="sdu-name">山东大学</div> <img src={images.name} className="sdu-name" alt="" />
</div> </div>
<div className="user"> <div className="user">
<img src="" className="user-avatar" alt="avatar" /> <img src="" className="user-avatar" alt="avatar" />