-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replacing the navbar in the quiz mode with a navigation that only dis…
…plays an 'X'.
- Loading branch information
1 parent
dc7635e
commit c1df1e3
Showing
3 changed files
with
135 additions
and
105 deletions.
There are no files selected for viewing
This file contains 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 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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
'use client'; | ||
import Link from 'next/link'; | ||
import { X } from 'lucide-react'; | ||
import { usePathname } from 'next/navigation'; | ||
|
||
const ExerciseNavbar = () => { | ||
const pathname = usePathname(); | ||
if (pathname.includes('quiz')) | ||
return ( | ||
<nav className='bg-white border-gray-200 md:hidden '> | ||
<div className='flex flex-wrap justify-between items-center mx-auto max-w-screen-xl p-4'> | ||
<Link | ||
href='/' | ||
className='flex items-center space-x-3 rtl:space-x-reverse' | ||
> | ||
<span className='self-center text-2xl font-bold text-gray-900 whitespace-nowrap font-stretch'> | ||
<X /> | ||
</span> | ||
</Link> | ||
</div> | ||
</nav> | ||
); | ||
}; | ||
|
||
export default ExerciseNavbar; |
This file contains 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