Skip to content

Commit

Permalink
Improve images
Browse files Browse the repository at this point in the history
  • Loading branch information
haydenbleasel committed Nov 28, 2024
1 parent 1671240 commit 5ede499
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
7 changes: 2 additions & 5 deletions app/(pages)/stack/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const Tool: FC<{
readonly image?: string;
};
}> = ({ data }) => {
const { hostname } = new URL(data.href);
const { hostname } = new URL(data.image ?? data.href);

return (
<Link
Expand All @@ -43,10 +43,7 @@ const Tool: FC<{
)}
>
<Image
src={
data.image ??
`https://img.logo.dev/${hostname.replace('www.', '')}?token=${logoDevToken}`
}
src={`https://img.logo.dev/${hostname.replace('www.', '')}?token=${logoDevToken}`}
alt={hostname}
width={32}
height={32}
Expand Down
13 changes: 6 additions & 7 deletions data/stack.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,8 @@
},
{
"name": "GitHub Desktop",
"href": "https://desktop.github.com/",
"description": "Simple repository management.",
"image": "https://desktop.github.com/images/screenshot-macos-dark.png"
"href": "https://github.com/apps/desktop",
"description": "Simple repository management."
},
{
"name": "Postman",
Expand Down Expand Up @@ -157,7 +156,6 @@
"name": "Untitled UI",
"href": "https://store.untitledui.com?aff=VMdMv",
"description": "The ultimate UI Kit for Figma.",
"image": "https://assets-global.website-files.com/636496d3f0ebfdaba9784655/646b8e798fb7b11360121f75_untitled-ui-open-graph-img.webp",
"featured": true
},
{
Expand Down Expand Up @@ -228,7 +226,8 @@
{
"name": "Ray.so",
"href": "https://ray.so/",
"description": "Pretty code snippet screenshots."
"description": "Pretty code snippet screenshots.",
"image": "https://www.raycast.com/"
}
]
},
Expand All @@ -240,7 +239,7 @@
"href": "https://go.shopmy.us/p-5598980",
"description": "Premium Australian luggage.",
"featured": true,
"image": "https://july.com/static/julyOlympicBlack-1c34f88144d235f850129808b5f25bbe.svg"
"image": "https://july.com/"
}
]
},
Expand All @@ -258,7 +257,7 @@
"href": "https://inst.cr/t/9aea6b7f0",
"description": "Groceries delivered in minutes.",
"featured": true,
"image": "https://d2guulkeunn7d8.cloudfront.net/assets/[email protected]"
"image": "https://www.instacart.com/"
},
{
"name": "Spotify",
Expand Down

0 comments on commit 5ede499

Please sign in to comment.