优化天气图表显示
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -4,7 +4,7 @@ export default function WeatherCloudy() {
|
||||
return (
|
||||
<div className="weather-box cloudy">
|
||||
<div className="cloud-group">
|
||||
<span className="cloud cloud1">☁️</span>
|
||||
<div className="cloud cloud1">☁️</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -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; }
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -588,6 +588,8 @@ export default function StationDashboard() {
|
||||
<div style={{ display: 'flex', alignItems: 'center', justifyContent: 'start', gap: 20 }}>
|
||||
<div style={{ display: 'flex', alignItems: 'center', gap: 12 }}>
|
||||
<WeatherDisplay type={weatherType} />
|
||||
{/*<WeatherDisplay type="sunny" />*/}
|
||||
|
||||
<div style={{ flex: 1, flexDirection: "row" }}>
|
||||
<div style={{ fontSize: 28, fontWeight: 800, color: '#1890ff' }}>
|
||||
{weatherdata.temperature}℃
|
||||
|
||||
@@ -114,9 +114,9 @@ export default function Login() {
|
||||
rules={[{ validator: (_, value) => value ? Promise.resolve() : Promise.reject(new Error('请阅读并同意用户协议')) }]}
|
||||
>
|
||||
<Checkbox>
|
||||
<Text style={{ fontSize: 14, color: '#666' }}>
|
||||
我已阅读并同意 <Text type="link" style={{ padding: 0, color: '#1677ff' }}>用户协议</Text> 和 <Text type="link" style={{ padding: 0, color: '#1677ff' }}>隐私政策</Text>
|
||||
</Text>
|
||||
<p style={{ fontSize: 14, color: '#666' }}>
|
||||
我已阅读并同意 <span type="link" style={{ padding: 0, color: '#1677ff' }}>用户协议</span> 和 <span type="link" style={{ padding: 0, color: '#1677ff' }}>隐私政策</span>
|
||||
</p>
|
||||
</Checkbox>
|
||||
</Form.Item>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user