add some pics

This commit is contained in:
Melete 2023-11-04 14:25:41 +08:00
parent 775fe04413
commit b14a83ea8c
5 changed files with 51 additions and 13 deletions

BIN
src/assets/moxing.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 MiB

BIN
src/assets/wave.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 714 KiB

View File

@ -46,7 +46,7 @@ function replaceStyle(Arr, opencity) {
class Chart1 extends Component { class Chart1 extends Component {
render() { render() {
return ( return (
<div className="CenterChart1itemDetailBorder"> <div className="CenterChart1itemDetailBorder" style={{ opacity: 0.75 }}>
<h2 className="CenterChart1itemTXT"> 当前产线生产规格</h2> <h2 className="CenterChart1itemTXT"> 当前产线生产规格</h2>
<div className="CenterChart1itemContainer"> <div className="CenterChart1itemContainer">
<span className="CenterFormitemDetailBorderLine1"></span> <span className="CenterFormitemDetailBorderLine1"></span>

View File

@ -15,10 +15,11 @@
margin: 22px; margin: 22px;
width: 2472px; width: 2472px;
height: 940px; height: 940px;
position: relative;
.CenterData { .CenterData {
position: absolute; position: absolute;
background: #fff4; // background: #fff4;
width: 2472px; width: 2472px;
height: 240px; height: 240px;
z-index: 2; z-index: 2;
@ -34,13 +35,14 @@
} }
.V3DBorder { .V3DBorder {
background: #00f3; // background: #00f3;
width: 100%; width: 100%;
height: 486px; height: 486px;
margin-top: 160px; margin-top: 160px;
// background: url('../assets/3D.png'); // background: url('../assets/3D.png');
background-size: 100% 100%; background: url('../assets/moxing.png') no-repeat;
background-repeat: no-repeat; background-position: 50% 50%;
background-size: 170% 200%;
} }
.Button { .Button {
@ -64,3 +66,28 @@
background-position: -800px 0; background-position: -800px 0;
background-size: 100%; background-size: 100%;
} }
.bgOverview {
position: fixed;
z-index: -1000;
top: 0;
left: 0;
width: 100%;
height: 100%;
/* background: #f003; */
background: url(../assets/wave.png) no-repeat;
background-position: 0 0;
background-size: 100%;
}
.bgFire {
position: absolute;
top: 16%;
left: 2%;
width: 100%;
height: 100%;
/* background: #f003; */
background: url('../assets/moxing.png') no-repeat;
background-position: 50% 50%;
background-size: 170% 200%;
}

View File

@ -11,7 +11,7 @@ import QualityCheckLeft from '../../components/模块组件/质检统计/LeftSid
import FireCheckRight from '../../components/模块组件/退火监测/RightSide'; import FireCheckRight from '../../components/模块组件/退火监测/RightSide';
import QualityCheckRight from '../../components/模块组件/质检统计/RightSide'; import QualityCheckRight from '../../components/模块组件/质检统计/RightSide';
import V3DBG from '../../assets/V3DBG.png'; // import V3DBG from '../../assets/V3DBG.png';
const KilnTotalRight = (props) => { const KilnTotalRight = (props) => {
return ( return (
@ -36,7 +36,8 @@ export default function Home({ active }) {
return ( return (
<div className="Main"> <div className="Main">
{active != '总览' && <div className="bgDitu"></div>} {active != '窑炉总览' && <div className="bgDitu"></div>}
{active == '窑炉总览' && <div className="bgOverview"></div>}
<AnimatePresence mode="wait"> <AnimatePresence mode="wait">
<div <div
className="left-side" className="left-side"
@ -56,16 +57,26 @@ export default function Home({ active }) {
<div className="Center"> <div className="Center">
{active == '窑炉总览' && ( {active == '窑炉总览' && (
<> <>
<div className="CenterData"> <AnimatePresence>
<CenterTopData /> <motion.div
</div> key="center-top"
<img src={V3DBG} alt="图片加载错误" className="V3DBG" /> className="CenterData"
<div className="V3DBorder"></div> initial={{ visibility: 'hidden' }}
<div className="Button"> animate={{ visibility: 'visible' }}
>
<CenterTopData />
</motion.div>
</AnimatePresence>
<div key="v3d" className="V3DBorder"></div>
<div key="bottom-bar" className="Button">
<BottomBar /> <BottomBar />
</div> </div>
</> </>
)} )}
{active == '退火监测' && <div className="bgFire"></div>}
{active == '质检统计' && <div className="bgFire"></div>}
</div> </div>
{active == '窑炉总览' && <RightBar key="right-bar" />} {active == '窑炉总览' && <RightBar key="right-bar" />}