feat: 修改样式

This commit is contained in:
秋水浮尘
2023-11-10 00:19:28 +08:00
parent 9f74e8094d
commit eef18cf769
13 changed files with 371 additions and 293 deletions

BIN
src/imgs/login_qrcode.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

View File

@@ -80,6 +80,8 @@
line-height: 35px;
border-radius: 6px;
margin-bottom: 5px;
height: 500px;
overflow-y: scroll;
}
.answer-box {
border-radius: 0px;

View File

@@ -58,7 +58,7 @@ const Header = () => {
</div>
<div className="head-navigator-user-box">
<div className="time-box"></div>
{'/question-bank' == pathname && (
{/* {'/question-bank' == pathname && (
<div className="head-navigator-input-box">
<Search
placeholder="请输入感兴趣的内容~"
@@ -66,7 +66,7 @@ const Header = () => {
style={{ width: 300, borderRadius: '10px' }}
/>
</div>
)}
)} */}
{/* <div className="head-navigator-bell"> */}
{/* <Icon type="bell" /> */}
{/* </div> */}

View File

@@ -23,11 +23,13 @@
max-width: 400px;
line-height: 30px;
}
.qrcode{
.qrcode-box{
width: 400px;
height: 500px;
background: white;
border-radius: 10px;
text-align: center;
padding: 20px;
}
}
}

View File

@@ -1,12 +1,43 @@
import { useState } from 'react'
import { Input, Button, Space } from 'antd'
import LoginQrcode from '@imgs/login_qrcode.jpg'
import req from '@utils/request';
import './index.less'
const loginApiName = '/user/doLogin'
const Login = () => {
const [validCode, setValidCode] = useState('')
const changeCode = e => {
setValidCode(e.target.value)
}
const doLogin = () => {
if (!validCode) return
req({
method: 'get',
url: loginApiName,
data: { validCode }
})
}
return (<div className="login-box">
<div className='login-container-inner'>
<div className='notes'>LeNet-5
1998 11 LeNet-5 ·Gradient-Based Learning Applied to Document Recognition</div>
<div className='qrcode'>12312123</div>
<div className='qrcode-box'>
<div className='qrcode-img'>
<img src={LoginQrcode} alt="" />
</div>
<div className='qrcode-form'>
<Space>
<Input maxLength={3} placeholder='验证码' onChange={changeCode} value={validCode} />
<Button type='primary' ghost onClick={doLogin}></Button>
</Space>
</div>
</div>
</div>
</div>)
}

View File

@@ -4,14 +4,13 @@
margin: 0 auto;
background-color: #f3f4f6;
border-radius: 5px;
height: calc(100vh - 90px);
overflow-y: scroll;
.ant-spin-nested-loading {
flex: 1;
overflow-y: auto;
border-radius: 8px;
.question-box {
// flex: 1;
// overflow-y: auto;
// border-radius: 8px;
.category-list-box {
padding: 24px 24px 6px;
border-top-left-radius: 8px;

View File

@@ -82,7 +82,7 @@ const QuestionBank = () => {
pageSize: 10,
labelId: labelList,
categoryId: secondCategoryId,
subjectDifficult: 1
// subjectDifficult: 1
}
req({
method: 'post',

View File

@@ -4,6 +4,7 @@
width: 1439px;
overflow-y: auto;
border-radius: 5px;
height: calc(100vh - 90px);
.ant-card-head {
position: sticky;
top: 0;