From d9835d24800258952e30964f47ae98113b0e8223 Mon Sep 17 00:00:00 2001
From: tathagata2410 <146247991+tathagata2410@users.noreply.github.com>
Date: Wed, 19 Jun 2024 02:34:15 +0530
Subject: [PATCH] Change a lot of ui and functionality
---
index.html | 144 +++++++++++++++++++++++++++++++++++++++-----------
products.html | 27 ++++++----
signin.html | 105 +++++++++++++++++++++++++++++++++---
signup.html | 74 ++++++++++++++++++++++++--
style.css | 59 ++++++++++++++++-----
5 files changed, 345 insertions(+), 64 deletions(-)
diff --git a/index.html b/index.html
index 60da41e..98832ef 100644
--- a/index.html
+++ b/index.html
@@ -14,6 +14,53 @@
/>
+
@@ -26,37 +73,31 @@
-
-
+
+
+
+
+
@@ -373,6 +414,47 @@ Resources
}
});
});
+
+
+ /* Add this to your script */
+
+document.addEventListener("DOMContentLoaded", () => {
+ const toggleButton = document.getElementById("nav-toggle");
+ const navLinks = document.getElementById("nav-links");
+ const icon = document.getElementById("icon");
+
+ // Toggle navbar links on mobile
+ toggleButton.addEventListener("click", () => {
+ navLinks.classList.toggle("active");
+ });
+
+ // Toggle dark mode
+ icon.addEventListener("click", () => {
+ document.body.classList.toggle("dark-theme");
+ document.body.classList.toggle("light-theme");
+ if (document.body.classList.contains("dark-theme")) {
+ icon.src = "sun.png";
+ } else {
+ icon.src = "moon.png";
+ }
+ });
+
+ // Blur effect on scroll
+ window.addEventListener("scroll", () => {
+ const navbar = document.querySelector(".navbar");
+ if (window.scrollY > 50) {
+ navbar.classList.add("scrolled");
+ } else {
+ navbar.classList.remove("scrolled");
+ }
+ });
+});
+
+
+
+
+
+
diff --git a/products.html b/products.html
index ca94c96..dbfdc30 100644
--- a/products.html
+++ b/products.html
@@ -9,10 +9,12 @@
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
+ background-color: #f8f9fa; /* Updated background color */
}
header {
- background-color: #f0f0f0;
+ background-color: #007bff; /* Updated header background color */
+ color: #fff; /* Updated header text color */
padding: 20px;
text-align: center;
}
@@ -25,20 +27,24 @@
}
.product {
- width: 300px;
- margin: 20px;
- padding: 20px;
- border: 1px solid #ddd;
- border-radius: 5px;
- }
+ width: 300px;
+ margin: 20px;
+ padding: 50px;
+ border: 1px solid #ddd;
+ border-radius: 5px;
+ background-color: #fff;
+ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
+}
.product img {
width: 100%;
border-radius: 5px;
+ margin-bottom: 10px; /* Added margin to separate image from text */
}
.product h2 {
margin-top: 10px;
+ color: #333; /* Updated heading color */
}
.product p {
@@ -58,10 +64,11 @@
border-radius: 5px;
text-decoration: none;
margin-top: 15px;
+ transition: background-color 0.3s ease; /* Added transition for button */
}
.button:hover {
- background-color: #0056b3;
+ background-color: #0056b3; /* Updated hover background color */
}
@@ -73,7 +80,7 @@ Products
-
+
Product 1
Description of Product 1. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Price: $XX.XX
@@ -81,7 +88,7 @@ Product 1
-
+
Product 2
Description of Product 2. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Price: $XX.XX
diff --git a/signin.html b/signin.html
index 8093c20..ff5c001 100644
--- a/signin.html
+++ b/signin.html
@@ -6,18 +6,109 @@
Sign In
+
-