天气 动图 接入

This commit is contained in:
mmc
2026-05-12 14:13:54 +08:00
parent 5c15215a99
commit 78ee2d5c09
10 changed files with 2588 additions and 18 deletions

View File

@@ -0,0 +1,25 @@
import "./WeatherSunny.css";
export default function WeatherSunny() {
const rays = Array.from({ length: 12 }).map((_, i) => {
const angle = i * 30; // 每根 30°
return (
<span
key={i}
className="ray"
style={{
transform: `rotate(${angle}deg) translateY(-120px)`
}}
/>
);
});
return (
<div className="weather-sunny">
<div className="sun">
{/*{rays}*/}
<div className="core"></div>
</div>
</div>
);
}