feat: links update

This commit is contained in:
KazooTTT
2024-10-17 13:08:13 +08:00
parent 5b6bd29c15
commit c4a18a6d69
7 changed files with 44 additions and 3 deletions

View File

@ -9,7 +9,7 @@ interface Props {
name: string
description: string
href?: string
iconPath: string
iconPath?: string
iconBgColour: string
}[]
}
@ -35,7 +35,7 @@ const { class: className, title, tools, ...props } = Astro.props
>
<div class='relative flex flex-row items-center gap-x-4 px-2 py-0.5 transition-all'>
<div class='absolute -inset-0 z-10 rounded-lg border border-border bg-muted opacity-0 transition-all group-hover:opacity-50' />
<Icon name={tool.iconPath} class='z-20 h-10 w-10 rounded-lg bg-muted p-2' />
<Icon name={tool.iconPath ?? 'tool'} class='z-20 h-10 w-10 rounded-lg bg-muted p-2' />
<div class='z-20 flex flex-col'>
<h3 class='font-medium'>{tool.name}</h3>
<p class='text-muted-foreground'>{tool.description}</p>