Skip to content

Commit

Permalink
added on hover transitions
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberSphinxxx committed Sep 22, 2024
1 parent 9e1ff38 commit 4fb7d2e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
12 changes: 5 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
<body>
<div id="containerWrapper">
<div id="bg_container">
<h1 style="text-align: center;">Weather App☀️</h1>
<h1 style="text-align: center;">WeatherNow</h1> <!-- Title -->

<input type="text" id="cityInput" placeholder="Enter city name">
<button id="getWeatherBtn">Get Weather</button>

<div class="weather-info">
<div class="info_container">
<h2 id="cityName"></h2>
Expand All @@ -25,16 +25,13 @@ <h2 id="cityName"></h2>
<div class="info_container">
<p id="weatherDescription"></p>
</div>

<div id="weatherType"></div>



</div>

<button id="showMoreBtn">Show More Info</button>
</div>

<!-- New Detailed Weather Info Container -->
<!-- Detailed Weather Info Container -->
<div id="moreInfoContainer" style="display: none;">
<h2>More Weather Info</h2>
<div class="info_container">
Expand All @@ -46,6 +43,7 @@ <h2>More Weather Info</h2>
</div>


<!-- Footer buttons -->
<a href="https://github.com/CyberSphinxxx">
<div class="footer">
App by: @John Lemar Gonzales
Expand Down
9 changes: 6 additions & 3 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ body {
background-size: cover;
}

/* Universal Box Sizing */
* {
box-sizing: border-box; /* Ensures padding and border are included in width */
}
Expand All @@ -27,7 +26,7 @@ body {

/* Main Container */
#bg_container {
background-color: rgba(255, 255, 255, 0.85);
background-color: rgba(255, 255, 255, 0.80);
padding: 40px 30px;
border-radius: 15px;
box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
Expand All @@ -36,6 +35,11 @@ body {
margin-right: 20px; /* Space between containers */
border: 1px, rgb(0, 0, 0);
border-style: solid;
transition: background-color 0.5s ease-in-out;
}

#bg_container:hover{
background-color: rgba(185, 185, 185, 0.8);
}

/* More Info Container */
Expand Down Expand Up @@ -98,7 +102,6 @@ button:hover {
margin-top: 5px;
}

/* Footer Styles */
.footer {
position: fixed;
bottom: 10px;
Expand Down

0 comments on commit 4fb7d2e

Please sign in to comment.