From 93b467ba13b543dbce009f146b413ea492863a23 Mon Sep 17 00:00:00 2001 From: qiuchenfan <2035024011@qq.com> Date: Mon, 17 Nov 2025 19:26:09 +0800 Subject: [PATCH] 1114 --- app/components/WeatherDetailsGird.tsx | 1 + app/components/WeatherDispaly2.tsx | 45 -------------------------- app/components/WeatherDisplay.tsx | 46 +++++++++++++++++++++++++++ 3 files changed, 47 insertions(+), 45 deletions(-) delete mode 100644 app/components/WeatherDispaly2.tsx diff --git a/app/components/WeatherDetailsGird.tsx b/app/components/WeatherDetailsGird.tsx index 30bf498..d4fe5ff 100644 --- a/app/components/WeatherDetailsGird.tsx +++ b/app/components/WeatherDetailsGird.tsx @@ -1,5 +1,6 @@ import { Cloud, Droplets, Gauge, ThermometerSun, Wind } from "lucide-react"; import { useWeatherStore } from "@/store/weatherStore"; +import { MapPin, Thermometer } from "lucide-react"; interface WeatherDetailsGridProps { icon: React.ReactNode; 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..c6e3415 100644 --- a/app/components/WeatherDisplay.tsx +++ b/app/components/WeatherDisplay.tsx @@ -9,6 +9,7 @@ import { CloudSnow, CloudSun, MapPin, Moon, Sun, + Thermometer, ThermometerSun } from 'lucide-react'; @@ -44,3 +45,48 @@ function WeatherIcon({ description, isDay, className = "w-16 h-16 md:w-20 md:h-2 } return isDaytime ? : ; } + + +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