mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-24 15:47:08 +00:00
Update home page and logo in header
This commit is contained in:
18
src/app/components/ToolCard.tsx
Normal file
18
src/app/components/ToolCard.tsx
Normal file
@@ -0,0 +1,18 @@
|
||||
import type { ComponentChildren } from 'preact'
|
||||
import { Icons } from './Icons'
|
||||
|
||||
type ToolCardProps = {
|
||||
title: string,
|
||||
link: string,
|
||||
icon?: keyof typeof Icons,
|
||||
children?: ComponentChildren,
|
||||
}
|
||||
export function ToolCard({ title, link, icon, children }: ToolCardProps) {
|
||||
return <a class="tool-card" href={link}>
|
||||
{icon && Icons[icon]}
|
||||
<div>
|
||||
<h3>{title}</h3>
|
||||
{children}
|
||||
</div>
|
||||
</a>
|
||||
}
|
||||
Reference in New Issue
Block a user