修改竞赛代码

This commit is contained in:
何童崇 2022-04-19 15:36:33 +08:00
parent f4a67ee68e
commit f9af1c814f
9 changed files with 16 additions and 4 deletions

View File

@ -1,7 +1,9 @@
.home-competition-slide {
position: relative;
// height: 50px;
width: calc(100vw + 500px);
width: 100vw;
padding:0 500px;
overflow: hidden;
top: 4.375em;
left: 0;
right: 0;
@ -11,6 +13,7 @@
display: flex;
justify-content: flex-end;
height: 2.6vw;
width: calc(100vw + 1000px);
}
.competition-notice {

View File

@ -100,6 +100,15 @@ const Qz2022 = (props) => {
}
}, []);
useEffect(()=>{
let footer=document.querySelector('.newFooter');
if((footer.offsetTop +107)<window.screen.height){
footer.style.position="absolute";
}else{
footer.style.position="relative";
}
},[history])
function scrollListener() {
let qz2022Top = document.querySelector('.qz2022').offsetTop;
let top = document.documentElement.scrollTop;

View File

@ -1,5 +1,5 @@
import React from "react";
import contactPng from "../image/logo.png";
import contactPng from "../image/qz-logo.png";
import RenderHtml from "src/components/render-html";
import Link from "react-router-dom/Link";
import { Button } from "antd";

Binary file not shown.

Before

Width:  |  Height:  |  Size: 281 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 379 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 242 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 90 KiB

View File

@ -70,7 +70,7 @@
);
}
.qzCont {
min-height: 35vh;
min-height: 40vh;
border-radius: 4px;
}
}

View File

@ -50,7 +50,7 @@ body>.-task-title {
max-height: 700px !important;
}
.indexHOC > .ant-spin-nested-loading {
background: #000;
/* background: #000; */
height: 100%;
}
.indexHOC > .ant-spin-nested-loading > div > .ant-spin .ant-spin-dot {