2021-07-29 16:56:47 -04:00
|
|
|
import React from "react";
|
2021-08-13 04:16:37 -04:00
|
|
|
|
2021-07-29 16:56:47 -04:00
|
|
|
import { Image } from "./Image";
|
2021-08-13 04:16:37 -04:00
|
|
|
|
2021-07-29 16:56:47 -04:00
|
|
|
import styles from "./MiniTechTalkCard.module.css";
|
|
|
|
|
|
|
|
interface MiniTechTalkProps {
|
2021-08-25 10:54:21 -04:00
|
|
|
title: string;
|
|
|
|
presentors: string[];
|
|
|
|
poster: string;
|
2021-07-29 16:56:47 -04:00
|
|
|
}
|
|
|
|
|
2021-08-25 10:54:21 -04:00
|
|
|
export function MiniTechTalkCard({
|
|
|
|
title,
|
|
|
|
presentors,
|
|
|
|
poster,
|
|
|
|
}: MiniTechTalkProps) {
|
2021-07-29 16:56:47 -04:00
|
|
|
return (
|
|
|
|
<article className={styles.card}>
|
2021-08-25 10:54:21 -04:00
|
|
|
<aside>
|
|
|
|
<Image
|
|
|
|
alt={`Thumbnail of tech talk by ${presentors.join(", ")}: ${title}`}
|
|
|
|
src={poster}
|
|
|
|
/>
|
|
|
|
</aside>
|
2021-07-29 16:56:47 -04:00
|
|
|
<div className={styles.content}>
|
2021-08-25 10:54:21 -04:00
|
|
|
<h1>{title}</h1>
|
|
|
|
<p>{presentors.join(", ")}</p>
|
2021-07-29 16:56:47 -04:00
|
|
|
</div>
|
|
|
|
</article>
|
|
|
|
);
|
|
|
|
}
|