From 85994055eddcece1b362b6fdcba479a7b243ce2f Mon Sep 17 00:00:00 2001 From: Li1304553726 <1304553726@qq.com> Date: Mon, 17 Nov 2025 19:23:58 +0800 Subject: [PATCH] 1 --- app/components/WeatherDispaly2.tsx | 45 ++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 app/components/WeatherDispaly2.tsx diff --git a/app/components/WeatherDispaly2.tsx b/app/components/WeatherDispaly2.tsx new file mode 100644 index 0000000..b519075 --- /dev/null +++ b/app/components/WeatherDispaly2.tsx @@ -0,0 +1,45 @@ +import { MapPin, Thermometer } from "lucide-react"; + +export function WeatherDisplay2(){ + const {currentWeather} = useWeatherStore(); + if(!currentWeather) return null; + + return( +
+
+
+
+
+
+

{currentWeather.location.name}

+
+ + {currentWeather.location.country} +
+
+ +
+
+
+ + {formatTemperature(currentWeather.current.temperature)} + + + °C + +
+

+ {currentWeather.current.weather_descriptions[0]} +

+
+ + 体感{formatTemperature(currentWeather.current.feelslike)}°C +
+
+
+
+ ) +} \ No newline at end of file