diff --git a/src/assets/warn-bg.png b/src/assets/warn-bg.png
new file mode 100644
index 0000000..65b5022
Binary files /dev/null and b/src/assets/warn-bg.png differ
diff --git a/src/assets/warn-icon.png b/src/assets/warn-icon.png
new file mode 100644
index 0000000..2b2f81c
Binary files /dev/null and b/src/assets/warn-icon.png differ
diff --git a/src/components/Common/WarnAlert/3.png b/src/components/Common/WarnAlert/3.png
new file mode 100644
index 0000000..3215251
Binary files /dev/null and b/src/components/Common/WarnAlert/3.png differ
diff --git a/src/components/Common/WarnAlert/index.jsx b/src/components/Common/WarnAlert/index.jsx
new file mode 100644
index 0000000..feb4893
--- /dev/null
+++ b/src/components/Common/WarnAlert/index.jsx
@@ -0,0 +1,20 @@
+// import cls from "./index.module.css";
+import "./warn-alert.css";
+import AlertIcon from "./warn-icon.png";
+
+function WarnAlert(props) {
+ return (
+
+
+
+ {props.title || "test"}
+
+
+ {props.content ||
+ "Lorem ipsum dolor sit amet consectetur."}
+
+
+ );
+}
+
+export default WarnAlert;
diff --git a/src/components/Common/WarnAlert/warn-alert.css b/src/components/Common/WarnAlert/warn-alert.css
new file mode 100644
index 0000000..28a5ed0
--- /dev/null
+++ b/src/components/Common/WarnAlert/warn-alert.css
@@ -0,0 +1,58 @@
+.warn-alert {
+ position: fixed;
+ top: 200px;
+ left: 200px;
+ /* height: 72px; */
+ z-index: 10000;
+ display: inline-block;
+ /* background: url(../../../assets/warn-bg.png) 0 0 / 116px 100% repeat-x; */
+ background: url(./3.png) 0 0 / 116px 100% repeat-x;
+ box-shadow: 0 0 24px 6px rgba(0, 0, 0, 0.5);
+ user-select: none;
+ transform: scale(.64);
+}
+
+.warn-alert::before {
+ box-sizing: border-box;
+ content: "";
+ position: absolute;
+ top: 0;
+ left: -24px;
+ width: 24px;
+ height: 100%;
+ display: inline-block;
+ border: 12px solid transparent;
+ border-right-color: #ff2c2c;
+}
+.warn-alert::after {
+ box-sizing: border-box;
+ content: "";
+ position: absolute;
+ top: 0;
+ right: -24px;
+ width: 24px;
+ height: 100%;
+ display: inline-block;
+ border: 12px solid transparent;
+ border-left-color: #ff2c2c;
+}
+
+.warn-alert > h1 {
+ display: flex;
+ margin: 8px 0 0;
+ align-items: center;
+ color: #fff;
+ font-size: 16px;
+ text-transform: uppercase;
+}
+
+.warn-alert > h1 img {
+ padding-top: 3px;
+ margin-left: 10px;
+}
+
+.warn-alert > p {
+ color: #fff;
+ margin: 0 22px 16px 14px;
+ font-size: 14px;
+}
diff --git a/src/components/Common/WarnAlert/warn-icon.png b/src/components/Common/WarnAlert/warn-icon.png
new file mode 100644
index 0000000..2b2f81c
Binary files /dev/null and b/src/components/Common/WarnAlert/warn-icon.png differ
diff --git a/src/pages/Home/index.jsx b/src/pages/Home/index.jsx
index e492b97..0cc23a3 100644
--- a/src/pages/Home/index.jsx
+++ b/src/pages/Home/index.jsx
@@ -14,6 +14,8 @@ import { useSelector } from "react-redux";
import { useEffect, useRef } from "react";
import useRefresh from "../../hooks/useRefresh";
+import WarnAlert from "../../components/Common/WarnAlert";
+
export default function Home({ active }) {
useRefresh(true);
@@ -33,6 +35,7 @@ export default function Home({ active }) {
return (
+ {active == "窑炉总览" &&
}
{active != "窑炉总览" &&
}
{active == "窑炉总览" &&
}
@@ -103,38 +106,6 @@ export default function Home({ active }) {
)}
- {/* {fireDir && fireDir == "东火" && (
-
- )}
-
- {fireDir && fireDir == "西火" && (
-
- )} */}
-