Skip to content

Commit

Permalink
Add aspectRatio to demo apps
Browse files Browse the repository at this point in the history
  • Loading branch information
simonihmig committed Dec 27, 2024
1 parent 095f7a2 commit c281061
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 12 deletions.
12 changes: 9 additions & 3 deletions apps/ember-vite/app/templates/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,27 @@
<h2>Netlify</h2>

<ResponsiveImage
@src={{responsive-image-netlify "aurora-original.jpg"}}
@src={{responsive-image-netlify
"aurora-original.jpg"
aspectRatio=1.4971927636
}}
data-test-netlify-image
/>

<h2>Cloudinary</h2>

<ResponsiveImage
@src={{responsive-image-cloudinary "aurora-original_w0sk6h"}}
@src={{responsive-image-cloudinary
"aurora-original_w0sk6h"
aspectRatio=1.4971927636
}}
data-test-cloudinary-image
/>

<h2>imgix</h2>

<ResponsiveImage
@src={{responsive-image-imgix "aurora-original.jpg"}}
@src={{responsive-image-imgix "aurora-original.jpg" aspectRatio=1.4971927636}}
data-test-imgix-image
/>

Expand Down
12 changes: 9 additions & 3 deletions apps/ember-webpack/app/templates/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,27 @@
<h2>Netlify</h2>

<ResponsiveImage
@src={{responsive-image-netlify "aurora-original.jpg"}}
@src={{responsive-image-netlify
"aurora-original.jpg"
aspectRatio=1.4971927636
}}
data-test-netlify-image
/>

<h2>Cloudinary</h2>

<ResponsiveImage
@src={{responsive-image-cloudinary "aurora-original_w0sk6h"}}
@src={{responsive-image-cloudinary
"aurora-original_w0sk6h"
aspectRatio=1.4971927636
}}
data-test-cloudinary-image
/>

<h2>imgix</h2>

<ResponsiveImage
@src={{responsive-image-imgix "aurora-original.jpg"}}
@src={{responsive-image-imgix "aurora-original.jpg" aspectRatio=1.4971927636}}
data-test-imgix-image
/>

Expand Down
8 changes: 5 additions & 3 deletions apps/solid-start/src/routes/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,19 @@ export default function Home() {
<main>
<h2>Netlify</h2>
<ResponsiveImage
src={netlify('aurora-original.jpg')}
src={netlify('aurora-original.jpg', { aspectRatio: 1.4971927636 })}
data-test-netlify-image
/>
<h2>Cloudinary</h2>
<ResponsiveImage
src={cloudinary('aurora-original_w0sk6h')}
src={cloudinary('aurora-original_w0sk6h', {
aspectRatio: 1.4971927636,
})}
data-test-cloudinary-image
/>
<h2>imgix</h2>
<ResponsiveImage
src={imgix('aurora-original.jpg')}
src={imgix('aurora-original.jpg', { aspectRatio: 1.4971927636 })}
data-test-imgix-image
/>
<h2>Local</h2>
Expand Down
6 changes: 3 additions & 3 deletions apps/wc-lit/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,21 +33,21 @@ export class MyApp extends LitElement {
<h2>Netlify</h2>
<responsive-image
.src=${netlify('aurora-original.jpg')}
.src=${netlify('aurora-original.jpg', { aspectRatio: 1.4971927636 })}
data-test-netlify-image
></responsive-image>
<h2>Cloudinary</h2>
<responsive-image
.src=${cloudinary('aurora-original_w0sk6h')}
.src=${cloudinary('aurora-original_w0sk6h', { aspectRatio: 1.4971927636 })}
data-test-cloudinary-image
></responsive-image>
<h2>imgix</h2>
<responsive-image
.src=${imgix('aurora-original.jpg')}
.src=${imgix('aurora-original.jpg', { aspectRatio: 1.4971927636 })}
data-test-imgix-image
></responsive-image>
Expand Down

0 comments on commit c281061

Please sign in to comment.