-
Notifications
You must be signed in to change notification settings - Fork 0
Redesign header and navigation components for improved UX #6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
9bc129f
Redesign site header and navigation components for improved layout an…
m-prosper-10 5d5a781
Improve navigation active-link matching logic and update header UI wi…
m-prosper-10 185c501
Refactor sidebar and mobile navigation components with updated typogr…
m-prosper-10 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,24 +1,16 @@ | ||
| 'use client' | ||
|
|
||
| import Link from 'next/link' | ||
| import { Search as SearchIcon } from 'lucide-react' | ||
| import { Button } from '@/components/ui/button' | ||
|
|
||
| export function Search() { | ||
| return ( | ||
| <Button | ||
| type='button' | ||
| variant='outline' | ||
| className='relative h-9 w-full cursor-default justify-start text-sm text-muted-foreground sm:pr-12 md:w-40 lg:w-64' | ||
| disabled | ||
| aria-disabled='true' | ||
| title='Search is not implemented yet' | ||
| <Link | ||
| href='/docs' | ||
| className='flex h-10 w-[220px] items-center gap-2 rounded-lg border border-zinc-200 bg-zinc-50 px-3 text-sm text-zinc-500 transition-colors hover:border-zinc-300 hover:bg-white hover:text-zinc-700 dark:border-zinc-800 dark:bg-zinc-900 dark:text-zinc-400 dark:hover:border-zinc-700 dark:hover:bg-zinc-950 dark:hover:text-zinc-200 lg:w-[260px]' | ||
| > | ||
| <SearchIcon className='mr-2 h-4 w-4' /> | ||
| <span className='hidden lg:inline-flex'>Search coming soon</span> | ||
| <span className='inline-flex lg:hidden'>Search</span> | ||
| <kbd className='pointer-events-none absolute right-1.5 top-1.5 hidden h-6 select-none items-center gap-1 rounded border bg-muted px-1.5 font-mono text-[10px] font-medium opacity-100 sm:flex'> | ||
| <span className='text-xs'>⌘</span>K | ||
| </kbd> | ||
| </Button> | ||
| <SearchIcon className='size-4' /> | ||
| <span className='truncate'>Search documentation</span> | ||
| </Link> | ||
| ) | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.