diff --git a/src/components/weather/DayComponent.js b/src/components/weather/DayComponent.js index 05a7ff0..95a1a79 100644 --- a/src/components/weather/DayComponent.js +++ b/src/components/weather/DayComponent.js @@ -5,10 +5,12 @@ import getWeatherIcon from '../../utils/WeatherIcon' import FormatTime from './../../utils/FormatTime' import {PropTypes} from 'prop-types' import WeatherIconComponent from './WeatherIconComponent' +import {ThemeContext} from '../../context/ThemeContext' const DayComponent = props => { const {day, index, selectedIndex} = props const {weatherUnit} = useContext(WeatherUnitContext) + const {theme, colorTheme} = useContext(ThemeContext) /** * type can be 'High' or 'Low' @@ -26,8 +28,8 @@ const DayComponent = props => { return (
diff --git a/src/components/weather/TimeframeComponent.js b/src/components/weather/TimeframeComponent.js index 4a87abf..c79e378 100644 --- a/src/components/weather/TimeframeComponent.js +++ b/src/components/weather/TimeframeComponent.js @@ -5,9 +5,11 @@ import getWeatherIcon from '../../utils/WeatherIcon' import FormatTime from './../../utils/FormatTime' import {PropTypes} from 'prop-types' import WeatherIconComponent from './WeatherIconComponent' +import {ThemeContext} from '../../context/ThemeContext' const TimeframeComponent = ({Timeframe}) => { const {weatherUnit} = useContext(WeatherUnitContext) + const {colorTheme} = useContext(ThemeContext) /** * type can be `temperature` or `apparentTemperature` @@ -20,7 +22,8 @@ const TimeframeComponent = ({Timeframe}) => { } return ( -
+
{getWeatherIcon(Timeframe).startsWith('wi') ? (

diff --git a/src/containers/weather/WeatherContainer.js b/src/containers/weather/WeatherContainer.js index ed3da0b..b4e4778 100644 --- a/src/containers/weather/WeatherContainer.js +++ b/src/containers/weather/WeatherContainer.js @@ -94,7 +94,7 @@ const WeatherContainer = () => { 'flex flex-col justify-center items-center lg:px-5 pt-10' }>

+ className={`sm:w-full lg:w-5/6 xl:max-w-6xl bg-${theme} text-${colorTheme} border border-${colorTheme} md:border-none rounded-t-2xl shadow-lg`}>