thumbnail stuff

This commit is contained in:
Graham Hall
2022-12-09 09:59:22 -05:00
parent 28be6d311b
commit 18287083b9
5 changed files with 17 additions and 4 deletions
+5
View File
@@ -20,6 +20,11 @@ const posts = await response.json();
{
posts.objects.map((post) => (
<article>
{post.thumbnail ? (
<div style={{ marginBottom: "25px" }}>
<img src={post.thumbnail} alt={`Thumbnail for ${post.title}`} />
</div>
) : null}
<div>
<div style={{ display: "flex", justifyContent: "space-between" }}>
<h4>{post.title}</h4>