diff --git a/src/components/CategoryNav.css b/src/components/CategoryNav.css
index 16b03da..4f0b960 100644
--- a/src/components/CategoryNav.css
+++ b/src/components/CategoryNav.css
@@ -1,8 +1,16 @@
.category-nav {
- width: 100%;
- box-shadow: inset 0px -1px 0px var(--border-muted);
- white-space: nowrap;
- overflow-x: scroll;
+ width: 100%;
+ box-shadow: inset 0px -1px 0px var(--border-muted);
+ white-space: nowrap;
+ overflow-x: scroll;
+ position: sticky;
+ top: 0;
+ background-color: var(--background);
+ --shadow-color: rgb(0 0 0 / 0.04);
+ box-shadow: 0px 0px 0px 0px var(--shadow-color),
+ 0px 1px 1px -0.5px var(--shadow-color),
+ 0px 3px 3px -1.5px var(--shadow-color);
+ z-index: 999999;
}
/* hide scrollbar
@@ -13,4 +21,4 @@
.category-nav::-webkit-scrollbar{
display: none;
}
-*/
\ No newline at end of file
+*/
diff --git a/src/components/CategoryNav.jsx b/src/components/CategoryNav.jsx
index 8e9a658..b080784 100644
--- a/src/components/CategoryNav.jsx
+++ b/src/components/CategoryNav.jsx
@@ -3,21 +3,24 @@ import data from "../data/tools.json";
import CategoryNavItem from "./CategoryNavItem";
-export default function CategoryNav({ filter, setFilter }) {
- const navItems = [
- {title: "All Tools", category: "all"},
- ...data.tools
- ];
+export default function CategoryNav({ filter }) {
+ const navItems = [{ title: "All Tools", category: "all" }, ...data.tools];
- return
-}
\ No newline at end of file
+ return (
+
+ );
+}