From 92e90739398507f5aac6ee674acd5a3032345a21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com> Date: Wed, 17 Apr 2024 09:31:47 -0500 Subject: [PATCH] things --- src/app/page.tsx | 29 ++++++++++--- .../Navbar/components/EverythingSearch.tsx | 42 +++++++++++++++++++ src/components/Navbar/index.tsx | 15 +++---- 3 files changed, 70 insertions(+), 16 deletions(-) create mode 100644 src/components/Navbar/components/EverythingSearch.tsx diff --git a/src/app/page.tsx b/src/app/page.tsx index 935a341ea..e121a3cad 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -11,13 +11,30 @@ import * as styles from './page.css'; export default function Page() { return ( - - {/* - - - - */} + {/* + + + + + */} + + {TOOLS.map((tool) => ( ) { + const [search, setSearch] = useState(''); + + return ( + <> + { + setSearch(event.target.value.trim()); + }} + {...props} + > + + + + + {search.length > 0 && ( + + + + )} + + + ); +} diff --git a/src/components/Navbar/index.tsx b/src/components/Navbar/index.tsx index a388720d0..8d538eb1e 100644 --- a/src/components/Navbar/index.tsx +++ b/src/components/Navbar/index.tsx @@ -1,12 +1,14 @@ -import { HamburgerMenuIcon, MagnifyingGlassIcon } from '@radix-ui/react-icons'; -import { Flex, IconButton, TextField } from '@radix-ui/themes'; +import { HamburgerMenuIcon } from '@radix-ui/react-icons'; +import { Flex, IconButton } from '@radix-ui/themes'; import Link from 'next/link'; import { useFullScreen } from '../../hooks/useFullScreen'; import { BlitzkriegWormWide } from '../../icons/BlitzkriegWormWide'; import { theme } from '../../stitches.config'; +import { EverythingSearch } from './components/EverythingSearch'; export default function Navbar() { const isFullScreen = useFullScreen(); + // const pathName = usePathname(); if (isFullScreen) return null; @@ -44,14 +46,7 @@ export default function Navbar() { - - - - - +