diff --git a/src/components/Weather/WeatherCloudy.css b/src/components/Weather/WeatherCloudy.css
index 1eeeb16..7107fcb 100644
--- a/src/components/Weather/WeatherCloudy.css
+++ b/src/components/Weather/WeatherCloudy.css
@@ -1,21 +1,18 @@
.cloud-group {
height: 80px;
+ display: flex;
+ justify-content: center;
+ align-items: center;
}
-.cloud {
- font-size: 45px;
- position: absolute;
-}
+
.cloud1 {
- left: 10px;
+ font-size: 45px;
animation: floatCloud 3s ease-in-out infinite;
}
-.cloud2 {
- left: 60px;
- animation: floatCloud 4s ease-in-out infinite;
-}
+
.weather-box{
width: 80px;
height: 80px;
diff --git a/src/components/Weather/WeatherCloudy.jsx b/src/components/Weather/WeatherCloudy.jsx
index 91f8658..1cf6353 100644
--- a/src/components/Weather/WeatherCloudy.jsx
+++ b/src/components/Weather/WeatherCloudy.jsx
@@ -4,7 +4,7 @@ export default function WeatherCloudy() {
return (
);
diff --git a/src/components/Weather/WeatherRainy.css b/src/components/Weather/WeatherRainy.css
index e8c0237..8c39cfc 100644
--- a/src/components/Weather/WeatherRainy.css
+++ b/src/components/Weather/WeatherRainy.css
@@ -1,16 +1,12 @@
-.cloud {
- font-size: 50px;
- position: absolute;
- top: 70px;
+
+.cloud{
+ font-size: 35px;
}
-
-
-
.rain span {
display: inline-block;
width: 4px;
- height: 20px;
+ height: 10px;
background: #4A90E2;
margin: 0 2px;
animation: rainDrop 1s linear infinite;
@@ -19,5 +15,5 @@
@keyframes rainDrop {
0% { transform: translateY(-10px); opacity: 0; }
50% { opacity: 1; }
- 100% { transform: translateY(30px); opacity: 0; }
+ 100% { transform: translateY(10px); opacity: 0; }
}
diff --git a/src/components/Weather/WeatherSunny.css b/src/components/Weather/WeatherSunny.css
index 7f97a6e..2cee41c 100644
--- a/src/components/Weather/WeatherSunny.css
+++ b/src/components/Weather/WeatherSunny.css
@@ -3,21 +3,16 @@
font-size: 18px;
width: 80px;
height: 80px;
+ display: flex;
+ justify-content: center;
+ align-items:center ;
+
}
-.sun {
- position: relative;
- width: 200px;
- height: 200px;
- margin: 0 auto;
-}
/* 太阳核心 */
.core {
- position: absolute;
- top: 50%;
- left: 50%;
- transform: translate(-50%, -50%);
+
width: 50px;
height: 50px;
background: radial-gradient(circle, #FFEB3B, #FF9800);
diff --git a/src/pages/Home.tsx b/src/pages/Home.tsx
index 8dd1a9d..547bca5 100644
--- a/src/pages/Home.tsx
+++ b/src/pages/Home.tsx
@@ -588,6 +588,8 @@ export default function StationDashboard() {
+ {/*
*/}
+
{weatherdata.temperature}℃
diff --git a/src/pages/Login.tsx b/src/pages/Login.tsx
index 94d31eb..1b072ed 100644
--- a/src/pages/Login.tsx
+++ b/src/pages/Login.tsx
@@ -114,9 +114,9 @@ export default function Login() {
rules={[{ validator: (_, value) => value ? Promise.resolve() : Promise.reject(new Error('请阅读并同意用户协议')) }]}
>
-
- 我已阅读并同意 用户协议 和 隐私政策
-
+
+ 我已阅读并同意 用户协议 和 隐私政策
+