@@ -487,7 +491,7 @@
$20
@@ -518,7 +522,7 @@
Who we are
-
Categories
+ Categories
@@ -553,7 +557,7 @@
Shoes
diff --git a/script.js b/script.js
index 94b0e66..1a0a2ac 100644
--- a/script.js
+++ b/script.js
@@ -3,3 +3,24 @@ function topFunction() {
document.body.scrollTop = 0; // For Safari
document.documentElement.scrollTop = 0; // For Chrome, Firefox, IE and Opera
}
+ $(document).ready(function(){
+ $(window).scroll(function(){
+ var scroll = $(window).scrollTop();
+ if (scroll > 100) {
+ $(".navbar").removeClass('rgb(255, 239, 239)').css( "backdrop-filter","blur(6px)");
+ }else{
+ $(".navbar").css("background" , "").addClass('rgb(255, 239, 239)');
+ }
+ });
+ });
+ // function to Toggle Light and Dark Mode
+var icon = document.getElementById("icon");
+icon.onclick = function(){
+ document.body.classList.toggle("dark-theme");
+ if(document.body.classList.contains("dark-theme")){
+ icon.src = "/images/sun (1).png";
+ }
+ else{
+ icon.src = "/images/moon.png";
+ }
+}
\ No newline at end of file
diff --git a/style.css b/style.css
index 713dd91..8cd74f1 100644
--- a/style.css
+++ b/style.css
@@ -3,14 +3,16 @@
html {
scroll-behavior: smooth;
}
-
+:root{
+ --primary-color:rgb(255, 239, 239);
+ --secondary-color:black;
+}
body {
font-family: "Abel", sans-serif;
font-size: large;
- background-color: rgb(255, 239, 239);
+ background-color: var(--primary-color);
}
-
h2{
font-size: 2.5rem;
}
@@ -25,7 +27,21 @@ p {
cursor: pointer;
}
-
+.dark-theme{
+ --primary-color:rgb(38, 37, 37);
+ --secondary-color:white;
+}
+#icon{
+ width:20px;
+ height:20px;
+ cursor:pointer;
+ margin-top:10px;
+}
+#smartphone, #MenTshirt , #WomanMenTshirt,
+#Kids, #categories, #About ,#contact {.container .fo{
+ color: var(--secondary-color);
+}
+}
/* Header nav start */
a.nav-link {
@@ -39,7 +55,12 @@ a.nav-link {
nav.fill ul li a.nav-link {
transition: all 0.5s;
}
-
+header{
+ position:sticky;
+ top:0px;
+ z-index:20;
+ /* style="background-color: #ffffffcc;" */
+}
nav.fill ul li a.nav-link:after {
text-align: left;
content: ".";
@@ -76,7 +97,12 @@ nav.fill ul li a.nav-link:after {
}
/* End */
-
+#mack-book .row .me{
+ color:var(--secondary-color);
+}
+#mack-book .row .for{
+ color:var(--secondary-color);
+}
/* section Mack book start */
section#mack-book {
@@ -236,6 +262,7 @@ a.laptop-btn:hover svg.bi.bi-arrow-right {
hr {
width: 130px;
+
background-image: linear-gradient(145deg, #f1c40f, #e67e22);
height: 10px;
border: none;
@@ -243,6 +270,7 @@ hr {
margin-bottom: 50px;
}
.categories-card {
+ background-color:rgb(255, 239, 239);
box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);;
padding: 5%;
transition: ease-in-out 0.2s;