diff --git a/build-cards.js b/build-cards.js index 7e44436b3..b0f99d20c 100644 --- a/build-cards.js +++ b/build-cards.js @@ -33,6 +33,7 @@ async function getScreenshot(postId) { height: height, }) await page.goto(`${baseUrl}/cards/${postId}`) + await page.waitForTimeout(2000) // wait for page to load fully (2 seconds). This is a hacky way to wait for GitHub Avatars to fully load. await page.screenshot({ path: `${cardsDir}/${postId}.png`, diff --git a/public/cards/czi-eoss-grant-conclusion.png b/public/cards/czi-eoss-grant-conclusion.png index 711972d9e..36f0c0096 100644 Binary files a/public/cards/czi-eoss-grant-conclusion.png and b/public/cards/czi-eoss-grant-conclusion.png differ diff --git a/src/pages/cards/[id].js b/src/pages/cards/[id].js index 3b654e18b..539b99509 100644 --- a/src/pages/cards/[id].js +++ b/src/pages/cards/[id].js @@ -1,90 +1,89 @@ +import { Image } from '@/components/mdx' +import { MdOutlineCalendarToday, MdPeopleOutline } from 'react-icons/md' + import { formatDate } from '@/lib/date-formatting' import { getAllPostsIds, getPostData } from '@/lib/posts' import { Avatar, - AvatarGroup, - Box, - Center, + Container, Flex, Heading, Icon, - Image, + Stack, Text, + Wrap, + WrapItem, } from '@chakra-ui/react' import fs from 'fs' import matter from 'gray-matter' import path from 'path' -import { MdCalendarToday } from 'react-icons/md' const Card = ({ frontmatter, id }) => { - const boxBackground = 'white !important' - const iconColor = 'brand.200' + const boxBackground = 'gray.300' const date = new Date(frontmatter.date) return ( -
- - - + + + + + + xarray.dev / blog + + + {'xarray - - - - {frontmatter.title} - - - - - - - - - {formatDate(date)} - + + + {frontmatter.title} + + + + + {formatDate(date)} + + + + - + {frontmatter.authors.map((author) => { return ( - + + + + + {author.name} + + + ) })} - - + + -
+ ) }