mirror of
https://github.com/netbirdio/docs.git
synced 2026-04-18 00:16:36 +00:00
separate logo for API
This commit is contained in:
@@ -1,10 +1,17 @@
|
||||
import {useRouter} from "next/router";
|
||||
|
||||
export function Logo(props) {
|
||||
let router = useRouter()
|
||||
return (
|
||||
<div>
|
||||
<img src='/img/logo/logo.svg' alt="some file" height='200'
|
||||
width='180' className="dark:hidden"/>
|
||||
<img src='/img/logo/logo-dark.svg' alt="some file" height='200'
|
||||
width='180' className="hidden dark:block"/>
|
||||
{router.route.startsWith('/docs') && <img src='/img/logo/logo-docs.svg' alt="some file" height='200'
|
||||
width='180' className="dark:hidden"/> ||
|
||||
<img src='/img/logo/logo-docs-dark.svg' alt="some file" height='200'
|
||||
width='180' className="hidden dark:block"/>}
|
||||
{router.route.startsWith('/ipa') && <img src='/img/logo/logo-api.svg' alt="some file" height='200'
|
||||
width='180' className="dark:hidden"/> ||
|
||||
<img src='/img/logo/logo-api-dark.svg' alt="some file" height='200'
|
||||
width='180' className="hidden dark:block"/>}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user