Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
rakkkkkesh committed Feb 5, 2024
1 parent 3b5fc3d commit 8de33d6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions src/Weather App/Weather.css
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,18 @@ button:hover {
margin-left: 10px;
}

.error{
color: red;
font-weight: bold;
font-size: 1.2rem;
margin-top: 20px;
background-color: rgba(175, 174, 174, 0.512);
border-radius: 10px;
padding: 10px 0;
width: 80%;
margin: 0 auto;
}

@media screen and (max-width: 600px) {
.sec2 {
width: 500px;
Expand Down
2 changes: 1 addition & 1 deletion src/Weather App/Weather.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const App = () => {
<p>Description: <b>{weather.weather[0].description}</b> <i class="fa-solid fa-cloud"></i></p>
<p>Country: <b>{weather.sys.country}</b> <i class="fa-solid fa-location-dot"></i></p>
</div>
</div>) : (<><p>No City Found!!! 😣</p><br></br><p>Please Search For Another City</p></>)}
</div>) : (<div className='error'><p>No City Found!!! 😣</p><p>Please Search For Another City.</p></div>)}
</div>}
</section>

Expand Down

0 comments on commit 8de33d6

Please sign in to comment.