Skip to content

Commit

Permalink
fixed StateContextProvider.jsx (#69)
Browse files Browse the repository at this point in the history
updated api
  • Loading branch information
mishradev1 authored Oct 2, 2024
1 parent 561be35 commit 25f2a61
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/weather/WeatherCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ const WeatherCard = ({
<p className='flex-1 text-center p-2'>{time}</p>
</div>
<div className='w-full flex justify-between items-center mt-4 gap-4'>
<p className='flex-1 text-center p-2 font-bold bg-blue-600 shadow rounded-lg'>Wind Speed <p className='font-normal'>{windspeed} km/h</p></p>
<p className='flex-1 text-center p-2 font-bold rounded-lg bg-green-600'>Humidity <p className='font-normal'>{humidity} gm/m&#179;</p></p>
<p className='flex-1 text-center p-2 font-bold bg-blue-600 shadow rounded-lg text-white'>Wind Speed <p className='font-normal'>{windspeed} km/h</p></p>
<p className='flex-1 text-center p-2 font-bold rounded-lg bg-green-600 text-white'>Humidity <p className='font-normal'>{humidity} gm/m&#179;</p></p>
</div>
<div className='w-full p-3 mt-4 flex justify-between text-green-500 items-center'>
<p className='font-semibold text-lg'>Heat Index</p>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/context/StateContextProvider.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const StateContextProvider = ({ children }) => {
},
headers: {
// 'X-RapidAPI-Key': import.meta.env.VITE_API_KEY,
// 'X-RapidAPI-Key': '3e80f9cba0mshb23d5515029b67cp143a90jsnc12e97b5a918',
'X-RapidAPI-Key': '3e80f9cba0mshb23d5515029b67cp143a90jsnc12e97b5a918',
'X-RapidAPI-Host': 'visual-crossing-weather.p.rapidapi.com'
}
}
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/pages/Forecast.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ function Forecast() {
}} type="text" placeholder='Search city' className='focus:outline-none w-full text-green-500 text-lg' value={input} onChange={e => setInput(e.target.value)} />
</div>
</nav>
<BackgroundLayout></BackgroundLayout>
<main className='w-full flex flex-wrap gap-8 py-4 px-[10%] text-white items-center justify-center'>
{/* <BackgroundLayout></BackgroundLayout> */}
<main className='w-full flex flex-wrap gap-8 py-4 px-[10%] text-green-500 items-center justify-center'>
<WeatherCard
place={thisLocation}
windspeed={weather.wspd}
Expand Down

0 comments on commit 25f2a61

Please sign in to comment.