From 61962832df84553083c0ca19bc45591a8c0df666 Mon Sep 17 00:00:00 2001 From: lb Date: Sat, 1 Jul 2023 20:14:52 +0800 Subject: [PATCH] add EnergyCost --- .../EnergyCost/EnergyCostChart/index.jsx | 7 +++++ .../EnergyCostChart/index.module.less | 3 +++ .../EnergyCost/TechSplitline/index.jsx | 7 +++++ .../TechSplitline/index.module.less | 5 ++++ src/components/RightBar/EnergyCost/index.jsx | 27 +++++++++++++++++++ .../RightBar/EnergyCost/index.module.less | 23 ++++++++++++++++ 6 files changed, 72 insertions(+) create mode 100644 src/components/RightBar/EnergyCost/EnergyCostChart/index.jsx create mode 100644 src/components/RightBar/EnergyCost/EnergyCostChart/index.module.less create mode 100644 src/components/RightBar/EnergyCost/TechSplitline/index.jsx create mode 100644 src/components/RightBar/EnergyCost/TechSplitline/index.module.less create mode 100644 src/components/RightBar/EnergyCost/index.jsx create mode 100644 src/components/RightBar/EnergyCost/index.module.less diff --git a/src/components/RightBar/EnergyCost/EnergyCostChart/index.jsx b/src/components/RightBar/EnergyCost/EnergyCostChart/index.jsx new file mode 100644 index 0000000..fe9e623 --- /dev/null +++ b/src/components/RightBar/EnergyCost/EnergyCostChart/index.jsx @@ -0,0 +1,7 @@ +import cls from './index.module.less'; + +const TechSplitline = (props) => { + return
; +}; + +export default TechSplitline; diff --git a/src/components/RightBar/EnergyCost/EnergyCostChart/index.module.less b/src/components/RightBar/EnergyCost/EnergyCostChart/index.module.less new file mode 100644 index 0000000..30c5c74 --- /dev/null +++ b/src/components/RightBar/EnergyCost/EnergyCostChart/index.module.less @@ -0,0 +1,3 @@ +.EnergyCostChart { + background: #b730305c; +} diff --git a/src/components/RightBar/EnergyCost/TechSplitline/index.jsx b/src/components/RightBar/EnergyCost/TechSplitline/index.jsx new file mode 100644 index 0000000..c3450db --- /dev/null +++ b/src/components/RightBar/EnergyCost/TechSplitline/index.jsx @@ -0,0 +1,7 @@ +import cls from './index.module.less'; + +const EnergyCostChart = (props) => { + return
EnergyCostChart
; +}; + +export default EnergyCostChart; diff --git a/src/components/RightBar/EnergyCost/TechSplitline/index.module.less b/src/components/RightBar/EnergyCost/TechSplitline/index.module.less new file mode 100644 index 0000000..38f1cd0 --- /dev/null +++ b/src/components/RightBar/EnergyCost/TechSplitline/index.module.less @@ -0,0 +1,5 @@ +.techSplitline { + height: 2px; + width: 100%; + background: radial-gradient(#3ce7ff, #3ce8ff92, #3ce8ff32, transparent); +} diff --git a/src/components/RightBar/EnergyCost/index.jsx b/src/components/RightBar/EnergyCost/index.jsx new file mode 100644 index 0000000..3906afa --- /dev/null +++ b/src/components/RightBar/EnergyCost/index.jsx @@ -0,0 +1,27 @@ +import cls from './index.module.less'; +import Container from '../../Container'; +import TechSplitline from './TechSplitline'; +import EnergyCostChart from './TechSplitline'; + +function EnergyCost(props) { + return ( + +
+
+ 余 热 发 电 + 922kwh +
+
+
水 耗 量 : 32Km³
+
天 然 气 I : 83m³
+
电 耗 量 : 52Km³
+
天 然 气 II: 32m³
+
+
+ + + + +
+ ); +} diff --git a/src/components/RightBar/EnergyCost/index.module.less b/src/components/RightBar/EnergyCost/index.module.less new file mode 100644 index 0000000..ceef02b --- /dev/null +++ b/src/components/RightBar/EnergyCost/index.module.less @@ -0,0 +1,23 @@ +.energyCost { + background: #b730305c; +} + +.info__item { + border-radius: 2px; + color: hsl(0, 0%, 100%, 0.9); + box-shadow: inset 0 0 17px 0px hsla(0, 0%, 100%, 0.15); + // width: 288px; + height: 43px; + font-size: 20px; + letter-spacing: 1.43px; + line-height: 40px; + text-align: center; + user-select: none; +} + +.info__item_groups { + margin-left: 8px; + display: grid; + grid-template-columns: 1fr 1fr; + gap: 8px; +}