diff --git a/public/weather_img/img/weather_bg_mdeium.webp b/public/weather_img/img/weather_bg_mdeium.webp new file mode 100644 index 0000000..dce075c Binary files /dev/null and b/public/weather_img/img/weather_bg_mdeium.webp differ diff --git a/src/widgets/weather/Middle.tsx b/src/widgets/weather/Middle.tsx index 9c16be7..f24e718 100644 --- a/src/widgets/weather/Middle.tsx +++ b/src/widgets/weather/Middle.tsx @@ -1,5 +1,35 @@ import { defineComponent } from 'vue' +import useWeatherStore from './useWeatherStore' export default defineComponent(() => { - return () =>
+ const weather = useWeatherStore() + + return () => ( +
+
+ {weather.weatherData?.base.stemp}° +
+
+ + {weather.weatherData?.city.name} + +
+ + + {weather.weatherData?.base.ltemp}°/{weather.weatherData?.base.htemp}° + + +
+ {weather.weatherData?.base.weather} +
+
+
+ ) }) diff --git a/src/widgets/weather/Small.tsx b/src/widgets/weather/Small.tsx index dad61a7..ef55e43 100644 --- a/src/widgets/weather/Small.tsx +++ b/src/widgets/weather/Small.tsx @@ -5,7 +5,7 @@ export default defineComponent(() => { const weather = useWeatherStore() return () => (
{
{weather.weatherData?.city.name}
- + {weather.weatherData?.base.weather} -   {weather.weatherData?.base.ltemp}°/{weather.weatherData?.base.htemp}°