You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
847 B
TypeScript

import styles from './githubLink.module.scss';
import Link, { LinkProps } from 'next/link';
import GithubIcon from '@/assets/icons/github.svg';
import clsx from 'clsx';
import { CursorEffect } from '@/components/cursor';
type GithubLinkProps = Omit<LinkProps, 'href'> & { className?: string };
export function GithubLink(props: GithubLinkProps) {
const { className: restClassName, ...restProps } = props;
return (
<CursorEffect
effectDistance={48}
effectForce={4}
cursorPadding={0}
className={clsx(styles.linkWrapper)}
>
<Link
{...restProps}
className={clsx(styles.link, restClassName)}
target="_blank"
href="https://github.com/ztimms73/ridebus"
prefetch={false}
>
<GithubIcon className={styles.linkIcon} />
</Link>
</CursorEffect>
);
}