Skip to content

Commit

Permalink
Add next.js blur image placeholders (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
asibs authored Mar 3, 2024
1 parent 5316ad0 commit 0d6bfe0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/footer/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ const Footer = ({ blok }: { blok: FooterStoryblok }) => (
src={mvmtFrwdQrCode}
alt="Movement Forward QR Code"
style={{ width: "100%", height: "auto" }}
placeholder="blur"
/>
</a>
</Col>
Expand All @@ -89,6 +90,7 @@ const Footer = ({ blok }: { blok: FooterStoryblok }) => (
src={mvmtFrwdLogo}
alt="Movement Forward Logo"
style={{ width: "4rem", height: "4rem" }}
placeholder="blur"
/>
<span className="mx-2 fw-bold">@MVTFWD</span>
</a>
Expand Down
1 change: 1 addition & 0 deletions components/navigation/Navigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ const Navigation = ({ blok }: { blok: NavbarStoryblok }) => {
alt="StopTheTories.vote logo"
className="d-inline-block me-2"
style={{ width: "2rem", height: "2rem" }}
placeholder="blur"
/>
<span>StopTheTories</span>
<span className="fw-bolder fst-italic">.Vote</span>
Expand Down
1 change: 1 addition & 0 deletions components/sections/MovementSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ const MovementSection = () => {
src={image}
alt={`Photo of ${name}`}
style={{ width: "100%", height: "100%" }}
placeholder="blur"
/>
</Col>
);
Expand Down

0 comments on commit 0d6bfe0

Please sign in to comment.