File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
examples/demo/src/app/components Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change 22import { useUI } from '@react-zero-ui/core' ;
33import clsx from 'clsx' ;
44import Link from 'next/link' ;
5+ import { Icon } from './Icon' ;
56
67export const MobileMenu : React . FC < { navItems : { name : string ; href : string } [ ] } > = ( { navItems } ) => {
78 const [ , setMenuOpen ] = useUI < 'closed' | 'open' > ( 'mobile-menu' , 'closed' ) ;
@@ -22,10 +23,17 @@ export const MobileMenu: React.FC<{ navItems: { name: string; href: string }[] }
2223 ) ) }
2324 < li className = { clsx ( 'mobile-menu-item transform pt-3 transition-all duration-300 ease-in-out' ) } >
2425 < Link
25- href = "/#contact"
26+ href = "https://github.com/react-zero-ui"
27+ target = "_blank"
2628 onClick = { ( ) => setMenuOpen ( ( prev ) => ( prev === 'closed' ? 'open' : 'closed' ) ) }
27- className = "bubble-hover block rounded-full border border-gray-200 bg-white px-3 py-2 text-center font-medium shadow-lg duration-300 hover:border-white" >
28- Contact
29+ className = "bubble-hover flex rounded-full border border-gray-200 bg-white px-3 py-2 text-center font-medium shadow-lg duration-300 hover:border-white items-center justify-center gap-2 " >
30+ < Icon
31+ name = "github"
32+ height = { 24 }
33+ width = { 24 }
34+ className = "text-black"
35+ />
36+ GitHub
2937 </ Link >
3038 </ li >
3139 </ ul >
You can’t perform that action at this time.
0 commit comments