Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Popup Effect on Card Hover #424

Merged
merged 1 commit into from
Nov 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading