Skip to content

Commit

Permalink
Un-optimize images
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabian Hurnaus committed Dec 6, 2023
1 parent c8a15cf commit 7630a4a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
11 changes: 1 addition & 10 deletions app/components/activity-teaser.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,25 +64,16 @@ export const ActivityTeaserComponent = ({
return (
<header className="h-96 flex-none basis-full rounded-xl px-2 sm:basis-1/2 lg:basis-1/3 2xl:basis-1/4">
<div className="flex flex-col">
<picture>
<source type="image/webp" srcSet={webpSrcSet}></source>
<source type="image/jpg" srcSet={jpgSrcSet}></source>
<img
className="top-0 m-0 h-64 w-auto rounded-xl object-cover"
src={CloudinaryImageRequestHelper.getImageUrl(
cloudinaryImageName,
CloudinaryImageFormat.JPG,
CloudinaryImageDensity.SINGLE,
undefined,
256
CloudinaryImageDensity.SINGLE
)}
srcSet={jpgSrcSet}
alt={altText}
loading="lazy"
height="256"
/>
</picture>

<div className="prose mt-4">
<h3 className="text-2xl">{title}</h3>
</div>
Expand Down
6 changes: 0 additions & 6 deletions app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,6 @@ export const links: LinksFunction = () => {
return [
{ rel: "icon", href: "data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🥾</text></svg>"},
{ rel: "stylesheet", href: tailwindStylesheetUrl },
{ rel: "preconnect", href: "https://res.cloudinary.com" },
{
rel: "preload",
as: "image",
href: "https://res.cloudinary.com/dbsjhw9tp/image/upload/f_auto/v1653757476/der-almohi/der-almohi-hero-illustration.ai",
},
];
};

Expand Down

0 comments on commit 7630a4a

Please sign in to comment.