Update home page and logo in header

This commit is contained in:
Misode
2021-06-30 05:36:26 +02:00
parent 2fb4848425
commit cabd97cb39
10 changed files with 140 additions and 79 deletions

View 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>
}