Skip to content

Commit

Permalink
added pop up effect on the cards
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohitranag18 committed Nov 10, 2024
1 parent 0157bef commit 299602c
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 9 deletions.
6 changes: 4 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -563,11 +563,13 @@ <h3>Why is it important to sort waste?</h3>
<section class="feedback" id="feedback">
<h2>Your Feedback</h2>
<form id="feedback-form" name="feedback-form">
<input type="text" placeholder="Your Name" required="" />
<textarea placeholder="Your Feedback" required=""></textarea>
<input type="text" placeholder="Your Name" required />
<textarea placeholder="Your Feedback" required></textarea>
<button type="submit">Submit</button>
<div id="feedback-message" class="hidden">Your feedback has been submitted successfully!</div>
</form>
</section>



<section class="about-container">
Expand Down
2 changes: 0 additions & 2 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -572,5 +572,3 @@ document.addEventListener('DOMContentLoaded', () => {
body.classList.toggle('dark-mode');
});



24 changes: 19 additions & 5 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,11 @@ h2, h3, h4 {
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
padding: 15px;
transition: transform 0.3s ease;
}
.feature-card:hover {
transform: scale(1.05);
}

blockquote {
font-style: italic;
color: #777;
Expand Down Expand Up @@ -427,6 +430,7 @@ blockquote {
background-color: #1976d2;
}


/* About Us Section */
.about-container {
display: flex;
Expand All @@ -450,7 +454,9 @@ blockquote {
flex: 1;
padding: 15px;
}

.mission-container h3{
color: #333;
}
.mission-box {
display: flex;
flex-wrap: wrap;
Expand All @@ -464,8 +470,11 @@ blockquote {
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
text-align: center;
transition: transform 0.3s ease;
}
.mission-item:hover {
transform: scale(1.05);
}

.mission-item img {
width: 50px;
margin-bottom: 10px;
Expand All @@ -475,7 +484,9 @@ blockquote {
.values-container {
background-color: #f8f8f8;
}

.values-container h3{
color: #333;
}
.values-cards {
display: flex;
flex-wrap: wrap;
Expand All @@ -488,8 +499,11 @@ blockquote {
padding: 15px;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease;
}
.value-card:hover{
transform: scale(1.05);
}

.value-card h4 {
margin-bottom: 10px;
}
Expand Down

0 comments on commit 299602c

Please sign in to comment.