Skip to content

Commit 379e19b

Browse files
committed
Fix_links
1 parent 350169e commit 379e19b

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/components/QuickLinks.jsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,19 @@ export function QuickLinks({ children }) {
88
)
99
}
1010

11-
export function QuickLink({ title, description, icon }) {
11+
export function QuickLink({ title, description, icon, href }) {
1212
return (
13-
<div className="group relative rounded-xl border border-slate-200 dark:border-slate-800">
13+
<a href={href} className="group relative rounded-xl border border-slate-200 dark:border-slate-800 block no-underline">
1414
<div className="absolute -inset-px rounded-xl border-2 border-transparent opacity-0 [background:linear-gradient(var(--quick-links-hover-bg,theme(colors.sky.50)),var(--quick-links-hover-bg,theme(colors.sky.50)))_padding-box,linear-gradient(to_top,theme(colors.indigo.400),theme(colors.cyan.400),theme(colors.sky.500))_border-box] group-hover:opacity-100 dark:[--quick-links-hover-bg:theme(colors.slate.800)]" />
1515
<div className="relative overflow-hidden rounded-xl p-6">
1616
<Icon icon={icon} className="h-8 w-8" />
1717
<h2 className="mt-4 font-display text-base text-slate-900 dark:text-white">
18-
<span className="absolute -inset-px rounded-xl" />
1918
{title}
2019
</h2>
2120
<p className="mt-1 text-sm text-slate-700 dark:text-slate-400">
2221
{description}
2322
</p>
2423
</div>
25-
</div>
26-
)
24+
</a>
25+
);
2726
}

0 commit comments

Comments
 (0)