chore: remove junk

This commit is contained in:
enscribe 2024-09-10 10:36:58 -07:00
parent f6dcc302d4
commit 8f6872f739
No known key found for this signature in database
GPG key ID: 9BBD5C4114E25322
96 changed files with 1002 additions and 2485 deletions

View file

@ -1,29 +1,23 @@
---
import { cn } from "@lib/utils";
import { cn } from '@lib/utils'
type Props = {
href: string;
external?: boolean;
underline?: boolean;
group?: boolean;
};
href: string
external?: boolean
underline?: boolean
group?: boolean
}
const {
href,
external,
underline = true,
group = false,
...rest
} = Astro.props;
const { href, external, underline = true, group = false, ...rest } = Astro.props
---
<a
href={href}
target={external ? "_blank" : "_self"}
target={external ? '_blank' : '_self'}
class={cn(
"inline-block decoration-black/30 hover:decoration-black/50 focus-visible:decoration-black/50 dark:decoration-white/30 dark:hover:decoration-white/50 dark:focus-visible:decoration-white/50 hover:text-cyan-500 focus-visible:text-black dark:hover:text-orange-500 dark:focus-visible:text-white transition-colors duration-300 ease-in-out",
underline && "underline underline-offset-[3px]",
group && "group"
'inline-block decoration-black/30 hover:decoration-black/50 focus-visible:decoration-black/50 dark:decoration-white/30 dark:hover:decoration-white/50 dark:focus-visible:decoration-white/50 hover:text-cyan-500 focus-visible:text-black dark:hover:text-orange-500 dark:focus-visible:text-white transition-colors duration-300 ease-in-out',
underline && 'underline underline-offset-[3px]',
group && 'group',
)}
{...rest}
>