()
| 3 | import { Link } from 'react-router-dom'; |
| 4 | |
| 5 | function Nav() { |
| 6 | return ( |
| 7 | <div |
| 8 | className='h-20 bg-gradient-to-r from-gray-800 to-gray-900 |
| 9 | px-8 py-4 text-lg flex-none' |
| 10 | > |
| 11 | <div |
| 12 | className='flex max-w-3xl justify-between items-center h-full |
| 13 | ml-auto mr-auto' |
| 14 | > |
| 15 | <Link to='/' className='z-10 group'> |
| 16 | <div className='flex items-center' title='Return home'> |
| 17 | <img src={logo} alt='logo' height='36' width='36' /> |
| 18 | <div className='text-white group-hover:text-gray-300'> |
| 19 | Home |
| 20 | </div> |
| 21 | </div> |
| 22 | </Link> |
| 23 | <a |
| 24 | href='https://github.com/Free-APIs/Free-APIs.github.io' |
| 25 | target='_blank' |
| 26 | rel='noreferrer' |
| 27 | className='text-white hover:text-gray-300 cursor-pointer |
| 28 | z-10' |
| 29 | title='View source on GitHub' |
| 30 | > |
| 31 | <img src={githubIcon} alt='GitHub' height='28' width='28' /> |
| 32 | </a> |
| 33 | </div> |
| 34 | <div |
| 35 | className='hidden xs:block absolute top-0 left-0 |
| 36 | text-center my-4 py-2.5 w-full z-0' |
| 37 | > |
| 38 | <Link |
| 39 | to='/categories' |
| 40 | title='Browse APIs by category' |
| 41 | className='text-white hover:text-gray-300 z-10' |
| 42 | > |
| 43 | Browse APIs |
| 44 | </Link> |
| 45 | </div> |
| 46 | </div> |
| 47 | ); |
| 48 | } |
| 49 | |
| 50 | export default Nav; |
nothing calls this directly
no outgoing calls
no test coverage detected