Switch header links to underline
This commit is contained in:
parent
5e980a7863
commit
085e6d868f
|
@ -12,14 +12,15 @@ const navigation = [
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
|
const hoverClasses =
|
||||||
|
'hover:underline hover:decoration-indigo-400 hover:decoration-2'
|
||||||
|
|
||||||
function SignInLink(props: { darkBackground?: boolean }) {
|
function SignInLink(props: { darkBackground?: boolean }) {
|
||||||
const { darkBackground } = props
|
const { darkBackground } = props
|
||||||
|
|
||||||
const user = useUser()
|
const user = useUser()
|
||||||
|
|
||||||
const themeClasses = darkBackground
|
const themeClasses = (darkBackground ? 'text-white ' : '') + hoverClasses
|
||||||
? 'text-white hover:text-gray-300'
|
|
||||||
: 'hover:text-gray-500'
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
@ -33,7 +34,7 @@ function SignInLink(props: { darkBackground?: boolean }) {
|
||||||
|
|
||||||
<Link href="/account">
|
<Link href="/account">
|
||||||
<a className={clsx('text-base font-medium', themeClasses)}>
|
<a className={clsx('text-base font-medium', themeClasses)}>
|
||||||
{user.name}
|
Your account
|
||||||
</a>
|
</a>
|
||||||
</Link>
|
</Link>
|
||||||
</>
|
</>
|
||||||
|
@ -60,7 +61,7 @@ export function Header(props: { darkBackground?: boolean }) {
|
||||||
<a className="flex flex-row items-center align-items-center h-6 sm:h-10">
|
<a className="flex flex-row items-center align-items-center h-6 sm:h-10">
|
||||||
<div className="inline-block mr-3">
|
<div className="inline-block mr-3">
|
||||||
<img
|
<img
|
||||||
className="h-6 sm:h-10 w-6 sm:w-10"
|
className="h-6 sm:h-10 w-6 sm:w-10 hover:rotate-12 transition-all"
|
||||||
src="/logo-icon.svg"
|
src="/logo-icon.svg"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
@ -82,10 +83,8 @@ export function Header(props: { darkBackground?: boolean }) {
|
||||||
<a
|
<a
|
||||||
target="_blank"
|
target="_blank"
|
||||||
className={clsx(
|
className={clsx(
|
||||||
'text-base font-medium',
|
'text-base font-medium ' + hoverClasses,
|
||||||
darkBackground
|
darkBackground ? 'text-white' : ''
|
||||||
? 'text-white hover:text-gray-300'
|
|
||||||
: 'hover:text-gray-500'
|
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
{item.name}
|
{item.name}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user