update energe layout
This commit is contained in:
@@ -10,8 +10,8 @@ function Energy(props) {
|
||||
className={cls.shadowBorder}
|
||||
style={{
|
||||
gridRow: "1 / 3",
|
||||
paddingTop: "38px",
|
||||
paddingLeft: "32px",
|
||||
paddingTop: "104px",
|
||||
paddingLeft: "38px",
|
||||
userSelect: "none",
|
||||
}}
|
||||
>
|
||||
@@ -21,25 +21,29 @@ function Energy(props) {
|
||||
className={cls.shadowBorder + " " + cls.infoText}
|
||||
style={{
|
||||
fontSize: "22px",
|
||||
lineHeight: "2.5",
|
||||
lineHeight: "1.5",
|
||||
gridRow: "1 / 3",
|
||||
}}
|
||||
>
|
||||
<span style={{ lineHeight: 2.5 }}>余热发电</span>
|
||||
<span style={{ lineHeight: 2.5 }}>{energyInfo?.elecQty1 || 0}kWh</span>
|
||||
<span style={{ lineHeight: 1.5 }}>余 热 发 电</span>
|
||||
<span style={{ lineHeight: 1.5 }}>{energyInfo?.elecQty1 || 0}kWh</span>
|
||||
</span>
|
||||
|
||||
<span className={cls.shadowBorder + " " + cls.infoText}>
|
||||
水耗量: {energyInfo?.waterQty || 0}Km³
|
||||
<span style={{ lineHeight: 1.5 }}>水 耗 量</span>{" "}
|
||||
<span style={{ lineHeight: 1.5 }}>{energyInfo?.waterQty || 0}Km³</span>
|
||||
</span>
|
||||
<span className={cls.shadowBorder + " " + cls.infoText}>
|
||||
天然气I: {energyInfo?.ngQty1 || 0}
|
||||
<span style={{ lineHeight: 1.5 }}>天 然 气 I</span>{" "}
|
||||
<span style={{ lineHeight: 1.5 }}>{energyInfo?.ngQty1 || 0}</span>
|
||||
</span>
|
||||
<span className={cls.shadowBorder + " " + cls.infoText}>
|
||||
电耗量: {energyInfo?.elecQty2 || 0}kWh
|
||||
<span style={{ lineHeight: 1.5 }}>电 耗 量</span>{" "}
|
||||
<span style={{ lineHeight: 1.5 }}>{energyInfo?.elecQty2 || 0}kWh</span>
|
||||
</span>
|
||||
<span className={cls.shadowBorder + " " + cls.infoText}>
|
||||
天然气II: {energyInfo?.ngQty2 || 0}
|
||||
<span style={{ lineHeight: 1.5 }}>天 然 气 II</span>{" "}
|
||||
<span style={{ lineHeight: 1.5 }}>{energyInfo?.ngQty2 || 0}</span>
|
||||
</span>
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -1,21 +1,30 @@
|
||||
.layout {
|
||||
display: grid;
|
||||
gap: 6px;
|
||||
grid-template-columns: 133px 158px 292px 292px ;
|
||||
grid-template-rows: 60px 60px;
|
||||
display: grid;
|
||||
gap: 6px;
|
||||
grid-template-columns: 133px 158px 292px 292px;
|
||||
/* grid-template-rows: 60px 60px; */
|
||||
grid-template-rows: 129px 129px;
|
||||
}
|
||||
|
||||
.shadowBorder {
|
||||
box-shadow: inset 0 0 12px 3px #fff3;
|
||||
border-radius: 4px;
|
||||
padding: 4px;
|
||||
box-shadow: inset 0 0 12px 3px #fff2;
|
||||
border-radius: 4px;
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
.infoText {
|
||||
text-align: center;
|
||||
font-size: 20px;
|
||||
line-height: 2.5;
|
||||
/* line-height: 20px; */
|
||||
letter-spacing: 1px;
|
||||
user-select: none;
|
||||
text-align: center;
|
||||
font-size: 20px;
|
||||
line-height: 2.5;
|
||||
/* line-height: 20px; */
|
||||
letter-spacing: 1px;
|
||||
user-select: none;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.infoText > span:last-child {
|
||||
color: #00FFF7;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user