Skip to content

Commit

Permalink
Made styling changes
Browse files Browse the repository at this point in the history
  • Loading branch information
DiksonIvySon committed Oct 19, 2023
1 parent f0c22bb commit 1769a5e
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 9 deletions.
6 changes: 4 additions & 2 deletions weatherApp/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ <h1>Weather</h1>
</div>
<hr>
<div>
<p>Powered by weatherAPI.com</p>
<p>Powered by <a target="_blank" class="weatherAPI-link" href="https://www.weatherapi.com/weather/">weatherAPI.com</a></p>
</div>
</div>
</header>
Expand Down Expand Up @@ -208,7 +208,9 @@ <h3>Running</h3>
</div>

<div class="moreButton">
<button><a href="https://www.weatherapi.com/weather/">MORE</a></button>
<a target="_blank" href="https://www.weatherapi.com/weather/">
<button>More</button>
</a>
</div>
</section>

Expand Down
2 changes: 1 addition & 1 deletion weatherApp/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ function displayData() {
//function to display the current location information.
function displayCurrentLocation() {
document.querySelector('.locationName').textContent = locationName;
document.querySelector('.currentLocation').textContent = locationName; //make location to show 0n the button
document.querySelector('.currentLocation').textContent = locationName + " ⬇"; //make location to show 0n the button
document.querySelector('.locationRegion').textContent = region;
document.querySelector('.locationCountry').textContent = country;
document.querySelector('.locationLatitude').textContent = lat;
Expand Down
37 changes: 31 additions & 6 deletions weatherApp/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ body {
margin: 0px;
}

.weatherAPI-link:hover {
color: #6DAFFE;
}

/* styling the first page*/
.firstPage {
padding: 40px;
Expand Down Expand Up @@ -143,6 +147,24 @@ body {
color: white;
}

.currentLocation {
font-size: 23px;
font-weight: bold;
padding: 1px;
width: 15vw;
border-radius: 0px;
border: 0;
background-color: gray;
border-radius: 5px;
}

.currentLocation:hover {
background-color: #6DAFFE;
color: white;
cursor: pointer;
box-shadow: 5px 5px 8px gray;
}

.currentLocationInfo {
font-size: 12px;
font-weight: lighter;
Expand Down Expand Up @@ -279,19 +301,22 @@ body {
padding: 10px;
}

button {
.moreButton button {
font-size: 23px;
font-weight: bold;
padding: 1px;
width: 80px;
border-radius: 10px;
background-color: rgba(0, 0, 0, 0.5);;
width: 15vw;
border-radius: 0px;
border: 0;
background-color: gray;
border-radius: 5px;
}

button:hover {
.moreButton button:hover {
background-color: #6DAFFE;
color: white;
cursor: pointer;
box-shadow: 5px 5px 8px gray;
}

a {
Expand Down Expand Up @@ -458,7 +483,7 @@ a:hover {
/* Fading animation */
.fade {
animation-name: fade;
animation-duration: 1.5s;
animation-duration: 2.5s;
}

@keyframes fade {
Expand Down

0 comments on commit 1769a5e

Please sign in to comment.