Moved some contstants to a constants.ts file.

Added LinkedIn link in footer.

Added option to add icon to ExternalLinks

Refactored some code in ExternalLink.

Signed-off-by: Martin Berg Alstad <git@martials.no>
This commit is contained in:
2024-10-22 20:46:53 +02:00
parent b9f7b63aa9
commit 4724b0a0e0
13 changed files with 88 additions and 36 deletions

View File

@ -7,4 +7,4 @@ interface Props {
const { class: clazz } = Astro.props
---
<PajamasIcon name="pajamas:gitea" class={clazz}></PajamasIcon>
<PajamasIcon name="pajamas:gitea" aria-label="Gitea" class={clazz} />

View File

@ -4,9 +4,10 @@ import type { ComponentProps } from "@/types/props"
import { Icon } from "astro-icon/components"
interface Props extends ComponentProps {
name: PajamasIcon
"aria-label": string
}
const { name, class: clazz, ...props } = Astro.props
---
<Icon name={name} class:list={[clazz]} {...props} />
<Icon name={name} class:list={["w-6 h-6", clazz]} {...props} />