hookshot/web/components/ConnectionCard.tsx
Christian Paul 188eb4004e
A11y: Add alt tags to all images (#602)
* A11y: Add alt tags to all images

* Add newsfile
2023-01-08 12:04:40 +01:00

20 lines
498 B
TypeScript

import { h } from "preact";
import style from "./ConnectionCard.module.scss";
interface IProps {
imageSrc: string;
serviceName: string;
description: string;
key: string;
onClick: () => void;
}
export function ConnectionCard(props: IProps) {
return <div className={style.card} onClick={props.onClick}>
<img alt="" src={props.imageSrc} />
<div>
<span>{props.serviceName}</span>
<p>{props.description}</p>
</div>
</div>;
}