Skip to content

Commit

Permalink
The author of Rye was unhappy with our gen’d img
Browse files Browse the repository at this point in the history
  • Loading branch information
mxcl committed Feb 25, 2024
1 parent 1564745 commit 58cac04
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/pkgx.dev/HomeFeed.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,10 @@ function FeedItemBox(item: FeedItem) {
fontVariant: 'small-caps'
}} />

// the author of rye is strangely hostile to our project
const imgsrc = title == 'rye' ? undefined : image


return (
<Card
variant={color ? 'outlined' : undefined}
Expand All @@ -155,7 +159,7 @@ function FeedItemBox(item: FeedItem) {
<CardMedia
height={isxs ? 150 : 300}
component={Box}
image={image}
image={imgsrc}
textAlign='right'
>
{chip}
Expand Down
5 changes: 4 additions & 1 deletion src/pkgx.dev/PackageListing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,12 @@ function Package({ project, dirs }: { project: string, dirs: string[] }) {
<Button variant='outlined' href={description.value.github} target='_blank' rel='noreferrer' endIcon={<ArrowOutwardIcon />}>GitHub</Button>
</>

// the author of rye is strangely hostile to our project
const imgsrc = project == 'rye-up.com' ? undefined : `https://gui.tea.xyz/prod/${project}/1024x1024.webp`

return <Stack direction={{xs: "column", md: "row"}} spacing={4}>
<Card sx={{height: 'fit-content', minWidth: 375}}>
<img style={{display: 'block'}} src={`https://gui.tea.xyz/prod/${project}/1024x1024.webp`} width={375} height={375} />
<img style={{display: 'block'}} src={imgsrc} width={375} height={375} />
</Card>
<Stack spacing={2}>
<Box>
Expand Down

0 comments on commit 58cac04

Please sign in to comment.