fix: change colour on hover for links
This commit is contained in:
parent
bfdaafeb0a
commit
dcfb60e9e3
|
@ -7,8 +7,10 @@ export type Props = {
|
||||||
|
|
||||||
export default function BlueLink({ to, children }: Props) {
|
export default function BlueLink({ to, children }: Props) {
|
||||||
return (
|
return (
|
||||||
<Link href={to} className="hover:underline text-sky-500 dark:text-sky-400">
|
<Link href={to}>
|
||||||
{children}
|
<a className="hover:underline text-sky-500 dark:text-sky-400">
|
||||||
|
{children}
|
||||||
|
</a>
|
||||||
</Link>
|
</Link>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,11 +9,10 @@ export interface Props {
|
||||||
|
|
||||||
export default function NavItem(props: Props) {
|
export default function NavItem(props: Props) {
|
||||||
const ret = (
|
const ret = (
|
||||||
<Link
|
<Link href={props.href}>
|
||||||
className="hover:text-sky-500 dark:hover:text-sky-400"
|
<a className="hover:text-sky-500 dark:hover:text-sky-400">
|
||||||
href={props.href}
|
{props.children}
|
||||||
>
|
</a>
|
||||||
{props.children}
|
|
||||||
</Link>
|
</Link>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -56,9 +56,7 @@ export default function Navigation() {
|
||||||
|
|
||||||
const nav = user ? (
|
const nav = user ? (
|
||||||
<>
|
<>
|
||||||
<NavItem href={`/u/${user.username}`}>
|
<NavItem href={`/u/${user.username}`}>@{user.username}</NavItem>
|
||||||
<a>@{user.username}</a>
|
|
||||||
</NavItem>
|
|
||||||
<NavItem href="/settings">Settings</NavItem>
|
<NavItem href="/settings">Settings</NavItem>
|
||||||
<NavItem href="/logout">Log out</NavItem>
|
<NavItem href="/logout">Log out</NavItem>
|
||||||
</>
|
</>
|
||||||
|
|
|
@ -18,6 +18,7 @@ import {
|
||||||
HeartFill,
|
HeartFill,
|
||||||
People,
|
People,
|
||||||
} from "react-bootstrap-icons";
|
} from "react-bootstrap-icons";
|
||||||
|
import BlueLink from "../../../components/BlueLink";
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
user: User;
|
user: User;
|
||||||
|
@ -38,12 +39,7 @@ export default function Index({ user }: Props) {
|
||||||
<span className="font-bold">public</span> profile.
|
<span className="font-bold">public</span> profile.
|
||||||
</span>
|
</span>
|
||||||
<br />
|
<br />
|
||||||
<Link
|
<BlueLink to="/edit/profile">Edit your profile</BlueLink>
|
||||||
href="/edit/profile"
|
|
||||||
className="hover:underline text-sky-500 dark:text-sky-400"
|
|
||||||
>
|
|
||||||
Edit your profile
|
|
||||||
</Link>
|
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
<div className="container mx-auto">
|
<div className="container mx-auto">
|
||||||
|
|
Loading…
Reference in New Issue