Skip to content

Commit

Permalink
changed buttons colour
Browse files Browse the repository at this point in the history
  • Loading branch information
naturuplift committed Dec 23, 2023
1 parent 6af9c0b commit 788ab51
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
13 changes: 13 additions & 0 deletions assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,19 @@ body {
width: 100%;
}

/* set the search button color */
.btn.btn-primary {
background-color: rgb(87, 80, 117);
color: white;
}

/* set the search history button color
#searchHistory.list-group {
background-color: rgb(87, 80, 117);
color: white;
border: none;
} */

/* set the 5-day forecast card color */
.card-0,
.card-1,
Expand Down
6 changes: 3 additions & 3 deletions assets/scripts/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function updateSearchHistory(updateCity) {
// created button into html and add city searched
const cityCard = `
<li class="list-group-item">
<button class="btn btn-secondary btn-block cityButton" data-location="${updateCity}">${extractedString}</button>
<button class="btn btn-secondary btn-block cityButton" style="background-color: rgb(87, 80, 117); color: white;" data-location="${updateCity}">${extractedString}</button>
</li>
`;

Expand Down Expand Up @@ -150,13 +150,13 @@ function currentAndForecastWeather(city, lat, lon) {
const weatherIconForecast = weatherIcon.slice(1);
const tempForecast = temp.slice(1);
const windSpeedForecast = windSpeed.slice(1);
const humidityDateForecast = humidity.slice(1);
const humidityForecast = humidity.slice(1);

// check API data output for forecast weather location
// console.log(DateForecast, weatherIconForecast, tempForecast, windSpeedForecast, humidityDateForecast) // TODO comment when tested

// Call function to display city 5-day forecast
viewForescastWeather(DateForecast, weatherIconForecast, tempForecast, windSpeedForecast, humidityDateForecast);
viewForescastWeather(DateForecast, weatherIconForecast, tempForecast, windSpeedForecast, humidityForecast);

})
// catch error for Geo API call
Expand Down

0 comments on commit 788ab51

Please sign in to comment.