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