Skip to content
Open
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
125 changes: 73 additions & 52 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@
]
},
"devDependencies": {
"autoprefixer": "^10.4.20",
"postcss": "^8.4.47",
"tailwindcss": "^3.4.13"
"autoprefixer": "^10.4.21",
"postcss": "^8.5.3",
"tailwindcss": "^3.4.17"
}
}
6 changes: 6 additions & 0 deletions postcss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}
16 changes: 8 additions & 8 deletions src/components/Navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ const Navbar = () => {
};

return (
<div className="navbar fixed top-0 left-0 w-full flex justify-between items-center p-4 shadow-md bg-white z-50">
<div className="navbar fixed top-0 left-0 w-full flex justify-between items-center p-4 shadow-md bg-white z-50 dark:bg-[#2a4060] z-50">
<div className="flex items-center gap-2">
<img className="w-10" src={logo} alt="Logo" />
<p className="text- text-lg md:text-2xl font-semibold">
<p className="text- text-lg md:text-2xl font-semibold transition">
Shopper's Stop
</p>
</div>
Expand Down Expand Up @@ -108,45 +108,45 @@ const Navbar = () => {
<Link to="/">
<button
onClick={() => setMenu("shop")}
className={`text- ${menu === "shop" ? "font-bold" : ""} hover:bg-black hover:text-white`}
className={`text- ${menu === "shop" ? "font-bold" : ""} hover:bg-black hover:text-white w-full px-[8px] py-[8px] rounded-[8px] text- font-medium`}
>
Shop
</button>
</Link>
<Link to="/men">
<button
onClick={() => setMenu("men")}
className={`text- ${menu === "men" ? "font-bold" : ""}hover:bg-black hover:text-white`}
className={`text- ${menu === "men" ? "font-bold" : ""}hover:bg-black hover:text-white w-full px-[8px] py-[8px] rounded-[8px] text- font-medium`}
>
Men
</button>
</Link>
<Link to="/kids">
<button
onClick={() => setMenu("kids")}
className={`text- ${menu === "kids" ? "font-bold" : ""}hover:bg-black hover:text-white`}
className={`text- ${menu === "kids" ? "font-bold" : ""}hover:bg-black hover:text-white w-full px-[8px] py-[8px] rounded-[8px] text- font-medium`}
>
Kids
</button>
</Link>
<Link to="/women">
<button
onClick={() => setMenu("women")}
className={`text- ${menu === "women" ? "font-bold" : ""}hover:bg-black hover:text-white`}
className={`text- ${menu === "women" ? "font-bold" : ""}hover:bg-black hover:text-white w-full px-[8px] py-[8px] rounded-[8px] text- font-medium`}
>
Women
</button>
</Link>
</div>
<Link to="/login">
<button className="px-4 py-2 bg-transparent text- font-semibold rounded-lg border border-gray-400 hover:bg-black hover:text-white transition duration-300 ease-in-out">
<button className="px-4 py-2 bg-transparent text- font-semibold rounded-lg border border-gray-400 hover:bg-black hover:text-white ease-in-out">
Login
</button>
</Link>
<Link to="/cart">
<ShoppingCartIcon fontSize="large"/>
</Link>
<div className="flex justify-center items-center w-5 h-5 mt-[-10px] ml-[-25px] text-xs rounded-full bg-[#FF4141] text">
<div className="flex justify-center items-center w-5 h-5 mt-[-10px] ml-[-25px] text-xs rounded-full bg-[#FF4141]">
{getTotalCartItems()}
</div>
</div>
Expand Down
3 changes: 2 additions & 1 deletion src/pages/DarkModeToggle.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@ button {
}

button:hover {
background-color: #444;
background-color: #787878;
border-radius: 8px;
}