2022-01-11 06:16:58 +00:00
|
|
|
import Link from 'next/link'
|
2022-01-13 22:09:13 +00:00
|
|
|
import Image from 'next/image'
|
2022-01-11 06:16:58 +00:00
|
|
|
import clsx from 'clsx'
|
|
|
|
|
2022-01-18 19:16:35 +00:00
|
|
|
export function ManifoldLogo(props: {
|
|
|
|
className?: string
|
|
|
|
darkBackground?: boolean
|
|
|
|
}) {
|
|
|
|
const { darkBackground, className } = props
|
2022-01-11 06:16:58 +00:00
|
|
|
|
|
|
|
return (
|
|
|
|
<Link href="/">
|
2022-01-18 19:16:35 +00:00
|
|
|
<a className={clsx('flex flex-row gap-4 flex-shrink-0', className)}>
|
2022-01-13 22:09:13 +00:00
|
|
|
<Image
|
2022-01-11 06:16:58 +00:00
|
|
|
className="hover:rotate-12 transition-all"
|
|
|
|
src={darkBackground ? '/logo-white.svg' : '/logo.svg'}
|
|
|
|
width={45}
|
|
|
|
height={45}
|
|
|
|
/>
|
|
|
|
<div
|
|
|
|
className={clsx(
|
|
|
|
'sm:hidden font-major-mono lowercase mt-1 text-lg',
|
|
|
|
darkBackground && 'text-white'
|
|
|
|
)}
|
|
|
|
>
|
|
|
|
Manifold
|
|
|
|
<br />
|
|
|
|
Markets
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
className={clsx(
|
|
|
|
'hidden sm:flex font-major-mono lowercase mt-1 sm:text-2xl md:whitespace-nowrap',
|
|
|
|
darkBackground && 'text-white'
|
|
|
|
)}
|
|
|
|
>
|
|
|
|
Manifold Markets
|
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
</Link>
|
|
|
|
)
|
|
|
|
}
|