From 299602c401df7115dbafff08fc3c389ae146973a Mon Sep 17 00:00:00 2001 From: Mohit Rana Date: Sun, 10 Nov 2024 04:32:55 -0500 Subject: [PATCH 1/3] added pop up effect on the cards --- index.html | 6 ++++-- script.js | 2 -- styles.css | 24 +++++++++++++++++++----- 3 files changed, 23 insertions(+), 9 deletions(-) diff --git a/index.html b/index.html index 0586c5e..0aa3818 100644 --- a/index.html +++ b/index.html @@ -563,11 +563,13 @@

Why is it important to sort waste?

Your Feedback

- - + + +
+
diff --git a/script.js b/script.js index c42022e..e16a450 100644 --- a/script.js +++ b/script.js @@ -572,5 +572,3 @@ document.addEventListener('DOMContentLoaded', () => { body.classList.toggle('dark-mode'); }); - - diff --git a/styles.css b/styles.css index 24d0f89..bba5575 100644 --- a/styles.css +++ b/styles.css @@ -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; @@ -427,6 +430,7 @@ blockquote { background-color: #1976d2; } + /* About Us Section */ .about-container { display: flex; @@ -450,7 +454,9 @@ blockquote { flex: 1; padding: 15px; } - +.mission-container h3{ + color: #333; +} .mission-box { display: flex; flex-wrap: wrap; @@ -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; @@ -475,7 +484,9 @@ blockquote { .values-container { background-color: #f8f8f8; } - +.values-container h3{ + color: #333; +} .values-cards { display: flex; flex-wrap: wrap; @@ -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; } From adf8b70897f953436337c8bb2c924d04546fa03e Mon Sep 17 00:00:00 2001 From: Mohit Rana Date: Sun, 10 Nov 2024 06:01:11 -0500 Subject: [PATCH 2/3] implimented dark mode --- index.html | 30 +++++++++++++++--------------- script.js | 5 ----- styles.css | 37 ++++++++++++++++--------------------- styles.js | 15 ++++++++++++++- 4 files changed, 45 insertions(+), 42 deletions(-) diff --git a/index.html b/index.html index 0aa3818..e8482cf 100644 --- a/index.html +++ b/index.html @@ -70,7 +70,7 @@

Efficient Waste Management

Upload Preview
-

Upload Your Files

+

Upload Your Files

-

Waste Classification

+

Waste Classification

Your classification result will appear here.

-

Disposal Information

+

Disposal Information

Disposal information will be displayed here.

-

Waste Categories

+

Waste Categories

@@ -453,7 +453,7 @@

Our Commitment to Sustainability

-

Discover Our Features

+

Discover Our Features

@@ -492,7 +492,7 @@

Community Engagement

-

Frequently Asked Questions (FAQs)

+

Frequently Asked Questions (FAQs)

What is the difference between biodegradable and @@ -561,12 +561,11 @@

Why is it important to sort waste?

@@ -574,10 +573,10 @@

Your Feedback

-

About Us

+

About Us

-

+

At Waste Management, we are passionate about creating a sustainable future through effective waste disposal solutions. Our goal is to not only reduce @@ -585,7 +584,7 @@

About Us

educate communities and empower individuals with sustainable waste practices.

-

+

By leveraging our state-of-the-art waste classification system and encouraging community engagement, we aim to inspire @@ -600,8 +599,8 @@

About Us

-
-

Our Mission

+
+

Our Mission

Reduce Waste @@ -636,8 +635,8 @@

Build a Cleaner Future

-
-

Our Core Values

+
+

Our Core Values

Innovation

@@ -764,6 +763,7 @@

Our Commitment to Sustainability

+ \ No newline at end of file diff --git a/script.js b/script.js index e16a450..4bd02ea 100644 --- a/script.js +++ b/script.js @@ -565,10 +565,5 @@ document.addEventListener('DOMContentLoaded', () => { window.addEventListener('load', updateSlider); - const themeToggle = document.getElementById('theme-toggle'); - const body = document.body; - themeToggle.addEventListener('click', () => { - body.classList.toggle('dark-mode'); - }); diff --git a/styles.css b/styles.css index bba5575..627b30d 100644 --- a/styles.css +++ b/styles.css @@ -142,10 +142,10 @@ nav .btn-nav { /* Upload Section */ .upload { - background-color: #ffffff; padding: 2rem; margin: 2rem 0; text-align: center; + border: 2px solid gray; border-radius: 8px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); } @@ -198,8 +198,8 @@ nav .btn-nav { .classification { padding: 2rem; text-align: center; - background-color: #f9f9f9; margin-top: 2rem; + border: 2px solid gray; border-top: 3px solid #4caf50; } @@ -238,7 +238,6 @@ nav .btn-nav { section { padding: 20px; margin: 20px 0; - background-color: #f8f8f8; border-radius: 8px; } @@ -254,7 +253,7 @@ h2, h3, h4 { /* Disposal Information Section */ .disposal { - background-color: #e3f2fd; + border: 2px solid gray; border-left: 5px solid #2196f3; padding-left: 20px; } @@ -310,9 +309,6 @@ h2, h3, h4 { } /* Features Section */ -.features { - background-color: #f1f1f1; -} .features h2{ text-align: center; font-size: 2.3rem; @@ -404,9 +400,6 @@ blockquote { } /* Feedback Section */ -.feedback { - background-color: #fafafa; -} #feedback-form input, #feedback-form textarea { @@ -481,9 +474,6 @@ blockquote { } /* Values Section */ -.values-container { - background-color: #f8f8f8; -} .values-container h3{ color: #333; } @@ -603,7 +593,6 @@ blockquote { /* FAQ Section */ .faqisection { padding: 50px 0; - background-color: #f9f9f9; color: #333; } @@ -636,7 +625,7 @@ blockquote { /* Feedback Section */ .feedback { padding: 50px 20px; - background-color: #eef4f7; + border: 2px solid gray; color: #333; text-align: center; } @@ -680,7 +669,6 @@ blockquote { padding: 50px 20px; justify-content: space-between; align-items: center; - background-color: #f1f1f1; } .about-text { @@ -709,11 +697,10 @@ blockquote { /* Mission Section */ .mission-container { padding: 50px 20px; - background-color: #f9f9f9; text-align: center; } -.mission-container h3 { +.mission-container h2 { font-size: 32px; margin-bottom: 30px; } @@ -752,10 +739,9 @@ blockquote { /* Values Section */ .values-container { padding: 50px 20px; - background-color: #eef4f7; } -.values-container h3 { +.values-container h2 { font-size: 32px; text-align: center; margin-bottom: 30px; @@ -792,7 +778,6 @@ blockquote { justify-content: center; align-items: center; padding: 50px 20px; - background-color: #f9f9f9; } .form_area { @@ -952,3 +937,13 @@ blockquote { margin: 0; } +.dark-mode{ + background-color: black; +} +.dark-mode2{ + background-color: #2a2a2a; + color: white; +} +.dark-mode3{ + color: #ffffff; +} \ No newline at end of file diff --git a/styles.js b/styles.js index 9d245f9..a807ed7 100644 --- a/styles.js +++ b/styles.js @@ -15,4 +15,17 @@ function showForm(formNumber) { button.classList.remove('button-active'); } }); -} \ No newline at end of file +} + +const themeToggle = document.getElementById('theme-toggle'); +const body = document.body; +const whitetext = document.querySelectorAll(".darkmodetext"); + +themeToggle.addEventListener('click', () => { + body.classList.toggle('dark-mode'); + + // Loop through each element with the .whitetext class and toggle .dark-mode3 + whitetext.forEach(element => { + element.classList.toggle("dark-mode3"); + }); +}); From 501a9bc6a0c676f3fd51649adef783edc4953f7b Mon Sep 17 00:00:00 2001 From: Mohit Rana Date: Sun, 10 Nov 2024 06:40:16 -0500 Subject: [PATCH 3/3] improved navbar styling and fix some dark mode issues also --- styles.css | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/styles.css b/styles.css index 627b30d..c1c9ee2 100644 --- a/styles.css +++ b/styles.css @@ -71,11 +71,13 @@ nav .btn-nav { } .button { - background-color: #4caf50; + background-color: transparent; border: none; padding: 0.5rem 1rem; border-radius: 4px; transition: background-color 0.3s ease; + font-weight: 500; + font-size: 1rem; } .button a { @@ -239,6 +241,7 @@ section { padding: 20px; margin: 20px 0; border-radius: 8px; + border: 2px solid gray; } h2, h3, h4 { @@ -600,6 +603,7 @@ blockquote { max-width: 1200px; margin: 0 auto; padding: 0 20px; + border: 0; } .faqs h2 { @@ -778,6 +782,8 @@ blockquote { justify-content: center; align-items: center; padding: 50px 20px; + border: 2px solid gray; + margin-bottom: 5rem; } .form_area {