refactor: major nitpicks

- refactor: change default import alias
- feat: add icons to breadcrumbs
- fix: add `site_name` og tag
- feat: hover on feedback for `Link`s and `TableofContentsHeadings`
- fix: add `external` to `SocialIcons`
This commit is contained in:
enscribe 2024-09-19 22:16:13 -07:00
parent 6764644c2e
commit 1ad80ac5bc
No known key found for this signature in database
GPG key ID: 9BBD5C4114E25322
26 changed files with 104 additions and 104 deletions

View file

@ -1,23 +1,15 @@
---
import { cn } from '@lib/utils'
import { cn } from '@/lib/utils'
type Props = {
href: string
external?: boolean
class?: string
underline?: boolean
'data-heading'?: string
[key: string]: any
}
const {
href,
external,
class: className,
underline,
'data-heading': dataHeading,
...rest
} = Astro.props
const { href, external, class: className, underline, ...rest } = Astro.props
---
<a
@ -25,10 +17,10 @@ const {
target={external ? '_blank' : '_self'}
class={cn(
'inline-block transition-colors duration-300 ease-in-out',
underline && 'underline underline-offset-[3px]',
underline &&
'underline decoration-muted-foreground underline-offset-[3px] hover:decoration-foreground',
className,
)}
data-heading={dataHeading}
{...rest}
>
<slot />