diff --git a/src/app/(blog)/components/header/index.tsx b/src/app/(blog)/components/header/index.tsx index 532e3f08..7d11c87c 100644 --- a/src/app/(blog)/components/header/index.tsx +++ b/src/app/(blog)/components/header/index.tsx @@ -5,9 +5,9 @@ import Link from 'next/link' import { useGlitch } from 'react-powerglitch' import { ToggleTheme } from './toggle-theme' -import { Search } from './search' import { CategorySelector } from './category-selector' -import { MobileMenu } from './mobile-menu/index' +import { MobileMenu } from './mobile-menu' +import { Search } from './search' export function Header() { const [percentScrollPosition, setPercentScrollPosition] = useState(0) @@ -62,12 +62,10 @@ export function Header() { return (
diff --git a/src/app/(blog)/components/header/search.tsx b/src/app/(blog)/components/header/search.tsx new file mode 100644 index 00000000..593a8884 --- /dev/null +++ b/src/app/(blog)/components/header/search.tsx @@ -0,0 +1,21 @@ +import { MagnifyingGlass } from '@/shared/lib/phosphor-icons' +import { useKBar } from 'kbar' + +export function Search() { + const { + query: { toggle } + } = useKBar() + + return ( + + ) +} diff --git a/src/styles/components.css b/src/styles/components.css index 5792d313..02306218 100644 --- a/src/styles/components.css +++ b/src/styles/components.css @@ -11,6 +11,7 @@ @apply bg-neutral-100 p-1 dark:bg-neutral-900; @apply rounded-lg border border-neutral-200 dark:border-neutral-700; @apply text-neutral-500; + @apply leading-none; } .post-content {