Skip to content
This repository has been archived by the owner on Mar 14, 2024. It is now read-only.

Commit

Permalink
Add fallback size to hero so it doesn't shift. (#2125)
Browse files Browse the repository at this point in the history
  • Loading branch information
robdodson authored Feb 6, 2020
1 parent 2dd2d6d commit f170859
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/site/_includes/components/Hero.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ module.exports = ({page, hero, alt, heroPosition, heroFit = "cover"}) => {
return html`
<img
class="w-hero w-hero--${heroFit} ${heroPosition ? `w-hero--${heroPosition}` : ""}"
width="1600"
height="480"
sizes="100vw"
srcset="${srcsetRange.map((width) => html`
${imagePath}?auto=format&fit=max&w=${width} ${width}w,
Expand Down

0 comments on commit f170859

Please sign in to comment.