From aa2a0e63a0bd80d962c04b15c0bf0c082cef444b Mon Sep 17 00:00:00 2001 From: Li1304553726 <1304553726@qq.com> Date: Mon, 17 Nov 2025 19:28:54 +0800 Subject: [PATCH] 1 --- app/components/WeatherDispaly2.tsx | 45 ------------------------------ app/components/WeatherDisplay.tsx | 44 +++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+), 45 deletions(-) delete mode 100644 app/components/WeatherDispaly2.tsx diff --git a/app/components/WeatherDispaly2.tsx b/app/components/WeatherDispaly2.tsx deleted file mode 100644 index b519075..0000000 --- a/app/components/WeatherDispaly2.tsx +++ /dev/null @@ -1,45 +0,0 @@ -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 diff --git a/app/components/WeatherDisplay.tsx b/app/components/WeatherDisplay.tsx index 6efd581..465256b 100644 --- a/app/components/WeatherDisplay.tsx +++ b/app/components/WeatherDisplay.tsx @@ -44,3 +44,47 @@ function WeatherIcon({ description, isDay, className = "w-16 h-16 md:w-20 md:h-2 } return isDaytime ? : ; } + +export function WeatherDisplay(){ + 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