+
-
-
+
+
+
+
-
-
+
+
+
+
-
-
+
+
{
[{
k: '高度',
@@ -112,22 +451,24 @@ function Index (props) {
s: '',
},].map(s => {
return (
-
- {s.k}
- {s.v}
- {s.s}
+
+
+ {
+ s.k ?
+ <>
+
{s.k}
+
{s.v}
+
{s.s}
+ >
+ : ''
+ }
+
)
})
}
-
+
diff --git a/console/client/src/sections/console/style.less b/console/client/src/sections/console/style.less
index 224800c..b781f52 100644
--- a/console/client/src/sections/console/style.less
+++ b/console/client/src/sections/console/style.less
@@ -1,53 +1,31 @@
.card {
- border: 1px solid #dcdcdc;
- border-radius: 5px;
- box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
- padding: 20px;
- margin: 10px;
- width: 300px;
- transition: all 0.2s ease-in-out;
background-color: #ffffff;
+ border-radius: 8px;
+ box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
+ padding: 16px;
+ height: 100%;
display: flex;
+ justify-content: space-between;
flex-direction: column;
- justify-content: center;
- align-items: center;
- }
-
- .card:hover {
- transform: translateY(-5px);
- box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
- }
-
- .card-title {
+}
+
+.card h2 {
font-size: 24px;
- margin: 0;
- padding-bottom: 10px;
- color: #333333;
- text-align: center;
- text-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
- }
-
- .card-content {
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- width: 100%;
- margin-top: 20px;
- }
-
- .card-number {
- font-size: 36px;
- font-weight: bold;
- color: #ff5500;
- text-shadow: 0 2px 5px rgba(255, 85, 0, 0.2);
- margin-bottom: 10px;
- }
-
- .card-status {
- font-size: 18px;
- font-weight: bold;
- color: #008000;
- text-shadow: 0 2px 5px rgba(0, 128, 0, 0.2);
- }
-
\ No newline at end of file
+ margin-bottom: 8px;
+}
+
+.card p {
+ font-size: 16px;
+ color: #777777;
+ margin-bottom: 16px;
+}
+
+.card .status {
+ background-color: #00cc66;
+ color: #ffffff;
+ padding: 4px 8px;
+ border-radius: 4px;
+ font-size: 14px;
+ text-transform: uppercase;
+ text-align: right;
+}
\ No newline at end of file