From f340656c3fc73b1652135eaf46bb337c9b2611ff Mon Sep 17 00:00:00 2001 From: Alayna Shaheen Date: Mon, 5 Aug 2024 20:05:32 +0530 Subject: [PATCH 01/14] changed colors of quick links and email in footer --- index.html | 39 +++++++++++++++++++++++++++------------ 1 file changed, 27 insertions(+), 12 deletions(-) diff --git a/index.html b/index.html index ff3f364e..9303d5bc 100644 --- a/index.html +++ b/index.html @@ -131,7 +131,22 @@ #quicklinks .foot-quick a i { margin-right: 5px; /* Adjust spacing between icon and text */ } - +.dark-mode .fas{ + color:white; +} +.dark-mode .flinks{ + color:white; +} +.dark-mode .finput{ + color: white; + background-color: transparent; + padding: 10px; + border: 1px solid white; + +} +.dark-mode .finput::placeholder { + color: rgba(255, 255, 255, 0.6); + } .socialmediaicons a { display: inline; text-align: center; @@ -3156,20 +3171,20 @@

Quick Links

@@ -3232,7 +3247,7 @@

Quick Links

- From 155219bc41134a8128d8b044c0ea5c5d0107e6d1 Mon Sep 17 00:00:00 2001 From: Suswetha Date: Tue, 6 Aug 2024 12:20:16 +0530 Subject: [PATCH 02/14] fixed the instagram icon on the sidebar --- index.html | 35 ++++++++++++++++++++++++----------- 1 file changed, 24 insertions(+), 11 deletions(-) diff --git a/index.html b/index.html index e2f27575..8877fd02 100644 --- a/index.html +++ b/index.html @@ -141,18 +141,31 @@ font-size: 20px; } - - -.socialmediaicons .fa-instagram:hover{ - background: radial-gradient(circle at 30% 110%, - #ffdb8b 0%, - #ee653d 25%, - #d42e81 50%, - #a237b6 75%, - #3e57bc 100%); + .socialmediaicons .fa-instagram { + display: inline-block; + width: 30px; + height: 30px; + text-align: center; + line-height: 30px; border-radius: 10px; - color: white; -} + background: transparent; + color: #000000; + transition: background 0.3s, transform 0.3s; +} + +.socialmediaicons .fa-instagram:hover { + background: radial-gradient(circle at 30% 110%, + #ffdb8b 0%, + #ee653d 25%, + #d42e81 50%, + #a237b6 75%, + #3e57bc 100%); + background-clip: padding-box; + border-radius: 10px; + color: white; + transform: scale(1.1); + +} .socialmediaicons .fa-facebook:hover{ color: blue; } From ca9581f4b4925e1dc4841cd03f6cf582968c64b2 Mon Sep 17 00:00:00 2001 From: mahek0620 <136893675+mahek0620@users.noreply.github.com> Date: Tue, 6 Aug 2024 12:45:39 +0530 Subject: [PATCH 03/14] Update profile.html --- profile.html | 200 ++++++++++++++++++++++++++++++--------------------- 1 file changed, 118 insertions(+), 82 deletions(-) diff --git a/profile.html b/profile.html index f05857fb..2c6ff2bf 100644 --- a/profile.html +++ b/profile.html @@ -19,14 +19,14 @@ padding: 0; box-sizing: border-box; font-family: Arial, sans-serif; - height: 100vh; /* Ensure body takes full height of the viewport */ - overflow: hidden; /* Prevent scrolling on the body */ + height: 100vh; + overflow: hidden; } .profile-container { display: flex; - height: 100vh; /* Ensure it takes the full height of the viewport */ - overflow-y:scroll; + height: 100vh; + overflow-y: scroll; } .profile-sidebar { @@ -35,14 +35,14 @@ background: #f57d7d; border-right: 1px solid #ddd; box-sizing: border-box; - overflow-y: auto; /* Allow scrolling if content overflows */ + overflow-y: auto; } .profile-main { flex: 1; padding: 20px; box-sizing: border-box; - overflow-y: auto; /* Allow scrolling if content overflows */ + overflow-y: auto; } .profile-last-login { @@ -141,6 +141,21 @@ margin-bottom: 20px; text-align: center; } + + .clear-item-btn, .clear-wishlist-btn { + background: #f44336; + color: white; + border: none; + padding: 5px 10px; + cursor: pointer; + border-radius: 5px; + margin-left: 10px; + transition: background 0.3s; + } + + .clear-item-btn:hover, .clear-wishlist-btn:hover { + background: #d32f2f; + } @@ -176,11 +191,12 @@

Order History

Wishlist

-
    -
  • Product 1
  • -
  • Product 2
  • -
  • Product 3
  • +
      +
    • Product 1
    • +
    • Product 2
    • +
    • Product 3
    +

Saved Addresses

@@ -236,109 +252,129 @@

Notifications

} if (lastLoginTime) { const loginTimeElement = document.getElementById("last-login-time"); - loginTimeElement.textContent = `Last login: ${new Date(lastLoginTime).toLocaleString()}`; - loginTimeElement.style.opacity = 1; // Ensure it's visible after animation + loginTimeElement.textContent = `Last login: ${lastLoginTime}`; + loginTimeElement.style.opacity = 1; + } + + // Update Profile Completion + updateProfileCompletion(); + + // Set personalized greeting + setPersonalizedGreeting(); + + // Load activities + loadActivities(); + + // Load notifications + loadNotifications(); + }); + + function setPersonalizedGreeting() { + const now = new Date(); + const hours = now.getHours(); + let greeting = "Hello"; + + if (hours < 12) { + greeting = "Good morning"; + } else if (hours < 18) { + greeting = "Good afternoon"; } else { - // Set last login time if not already set - setLastLoginTime(); + greeting = "Good evening"; } - // Calculate profile completion percentage - calculateProfileCompletion(); + const profileName = document.querySelector(".profile-name").textContent; + document.getElementById("greeting").textContent = `${greeting}, ${profileName}!`; + } + + function updateProfileCompletion() { + const requiredFields = ["profileName", "profileEmail", "profilePhone"]; + let filledFields = 0; + + requiredFields.forEach(field => { + if (localStorage.getItem(field)) { + filledFields++; + } + }); + + const completionPercentage = Math.round((filledFields / requiredFields.length) * 100); + document.getElementById("completion-percentage").textContent = `${completionPercentage}%`; + document.getElementById("progress-bar").style.width = `${completionPercentage}%`; + } - // Add personalized greeting - addPersonalizedGreeting(); + function editProfile() { + // Redirect to the profile editing page + window.location.href = "edit_profile.html"; + } - // Dynamically add recent activities + function loadActivities() { const activities = [ - "Logged in", - "Viewed product 'Product 1'", - "Added 'Product 2' to wishlist", - "Checked out order #1234" + "You viewed Product 1", + "You added Product 2 to your cart", + "You made a purchase of Product 3" ]; + const activityList = document.getElementById("activity-list"); activities.forEach((activity, index) => { const li = document.createElement("li"); li.textContent = activity; - if (index < 2) { + if (index < 3) { li.classList.add("visible"); } activityList.appendChild(li); }); + } - // Dynamically add notifications + function toggleActivities() { + const activityListItems = document.querySelectorAll(".activity-list li"); + const readMoreBtn = document.getElementById("read-more"); + + activityListItems.forEach(item => { + item.classList.toggle("visible"); + }); + + if (readMoreBtn.textContent === "Read More") { + readMoreBtn.textContent = "Show Less"; + } else { + readMoreBtn.textContent = "Read More"; + } + } + + function loadNotifications() { const notifications = [ - "Your order #5678 has been shipped", - "New product 'Product 4' added to wishlist", - "Price drop alert on 'Product 3'" + "Your order #1234 has been shipped", + "Your order #5678 is out for delivery", + "Your order #91011 has been delivered" ]; + const notificationList = document.getElementById("notification-list"); notifications.forEach(notification => { const li = document.createElement("li"); li.textContent = notification; notificationList.appendChild(li); }); - }); - - function editProfile() { - window.location.href = "./assets/html/profileedit.html"; } - // Set last login time when the user logs in (first visit) - function setLastLoginTime() { - const now = new Date().toISOString(); - localStorage.setItem("lastLoginTime", now); - const loginTimeElement = document.getElementById("last-login-time"); - loginTimeElement.textContent = `Last login: ${new Date(now).toLocaleString()}`; - loginTimeElement.style.opacity = 1; // Ensure it's visible after animation + function clearWishlist() { + const wishlist = document.getElementById("wishlist"); + wishlist.innerHTML = ""; // Clear all items from the wishlist + // Optionally, you can also clear the wishlist from localStorage if needed + // localStorage.removeItem("wishlistItems"); } - function calculateProfileCompletion() { - let completedFields = 0; - const totalFields = 3; // Assuming name, email, and phone are the fields - - if (localStorage.getItem("profileName")) completedFields++; - if (localStorage.getItem("profileEmail")) completedFields++; - if (localStorage.getItem("profilePhone")) completedFields++; - - const completionPercentage = Math.round((completedFields / totalFields) * 100); - document.getElementById("completion-percentage").textContent = `${completionPercentage}%`; - document.getElementById("progress-bar").style.width = `${completionPercentage}%`; + function clearWishlistItem(button) { + const item = button.parentElement; // Get the parent list item + item.remove(); // Remove the item from the list + // Optionally, you can also update the wishlist in localStorage if needed + // updateWishlistInLocalStorage(); } - function addPersonalizedGreeting() { - const now = new Date(); - const hour = now.getHours(); - let greeting = "Hello"; - - if (hour < 12) { - greeting = "Good morning"; - } else if (hour < 18) { - greeting = "Good afternoon"; - } else { - greeting = "Good evening"; - } - - const name = localStorage.getItem("profileName") || "User"; - document.getElementById("greeting").textContent = `${greeting}, ${name}!`; - } - - function toggleActivities() { - const activityList = document.getElementById("activity-list"); - const readMore = document.getElementById("read-more"); - const activities = activityList.querySelectorAll("li"); - - activities.forEach((activity, index) => { - if (index >= 2) { - activity.classList.toggle("visible"); - } + // Example function to update the wishlist in localStorage (if you're using localStorage) + function updateWishlistInLocalStorage() { + const wishlistItems = []; + document.querySelectorAll(".wishlist li").forEach(item => { + wishlistItems.push(item.textContent.trim()); }); - - if (readMore.textContent === "Read More") { - readMore.textContent = "Show Less"; - } else { - readMore.textContent = "Read More"; - } + localStorage.setItem("wishlistItems", JSON.stringify(wishlistItems)); } From 01c4f7af741a3433e661bcbf43b5c1b2016ac79d Mon Sep 17 00:00:00 2001 From: mahek0620 <136893675+mahek0620@users.noreply.github.com> Date: Tue, 6 Aug 2024 12:53:42 +0530 Subject: [PATCH 04/14] Update index.html --- index.html | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/index.html b/index.html index e2f27575..febbcdd6 100644 --- a/index.html +++ b/index.html @@ -1290,16 +1290,27 @@

Logout Account

}) - + +
+
+ + + + - -
+ +
@@ -847,7 +1029,7 @@

Quick Links

- +
@@ -856,22 +1038,26 @@

Quick Links

- +
-
- - - -
+ +
+
+
+
+ + + -
+ @@ -961,6 +1149,7 @@

Privacy Notice

+ -
+
+
- + From 16dbe7eda8d31ec1918716952951fac07f5392bf Mon Sep 17 00:00:00 2001 From: Vin205 Date: Wed, 7 Aug 2024 22:33:13 +0530 Subject: [PATCH 11/14] Added Event Calender --- assets/html/event.html | 297 +++++++++++++++++++++++++++++++++++++++++ index.html | 4 +- 2 files changed, 300 insertions(+), 1 deletion(-) create mode 100644 assets/html/event.html diff --git a/assets/html/event.html b/assets/html/event.html new file mode 100644 index 00000000..cfe7a448 --- /dev/null +++ b/assets/html/event.html @@ -0,0 +1,297 @@ + + + + + + Reading Events + + + +
+

SwapReads

+ +
+
+
+

Reading Event Calendar

+
+
+ +

+ +
+ + + + + + + + + + + + + + + +
SunMonTueWedThuFriSat
+
+
+

Event Details

+
    + +
+
+
+
+
+

© 2024 SwapReads. All Rights Reserved.

+
+ + + diff --git a/index.html b/index.html index 0dee3041..58c5d8a4 100644 --- a/index.html +++ b/index.html @@ -794,7 +794,9 @@ - + From 4ea6d35262459e3f6d2bf666049c5851afb121ef Mon Sep 17 00:00:00 2001 From: Saksham2k3s Date: Thu, 8 Aug 2024 00:40:27 +0530 Subject: [PATCH 12/14] enhanced cookies cross button --- assets/css/styles.css | 6 ++++++ index.html | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/assets/css/styles.css b/assets/css/styles.css index 948f6f07..69daf84f 100644 --- a/assets/css/styles.css +++ b/assets/css/styles.css @@ -9,6 +9,12 @@ color: #050505; font-size: 24px; cursor: pointer; + padding: 5px !important; + border-radius: 100%; +} + +.cookie-consent .close-btn{ + background: #000; } /*repetition*/ diff --git a/index.html b/index.html index e65dfcfa..7bf193d7 100644 --- a/index.html +++ b/index.html @@ -1134,7 +1134,7 @@