Skip to content

Commit 587772c

Browse files
committed
Add placeholder=blur to next/image expressions
1 parent 750d673 commit 587772c

File tree

19 files changed

+21
-0
lines changed

19 files changed

+21
-0
lines changed

src/app/conf/2023/gallery/page.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ export default function GalleryPage() {
3030
c[index] && (
3131
<Zoom>
3232
<NextImage
33+
placeholder="blur"
3334
alt="Gallery"
3435
className="aspect-video w-full rounded-md object-cover hover:opacity-75"
3536
src={c[index]}

src/app/conf/2024/about.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ export function About() {
8484
</p>
8585
</div>
8686
<NextImage
87+
placeholder="blur"
8788
src={ConfImage}
8889
className="aspect-video w-full rounded-md object-cover"
8990
alt="GraphQL Conf Image"
@@ -95,6 +96,7 @@ export function About() {
9596
alt="GraphQL Conf Image"
9697
src={ConfImage2}
9798
className="aspect-square w-full rounded-md object-cover max-lg:order-2"
99+
placeholder="blur"
98100
/>
99101
<div className="flex flex-col gap-14">
100102
<p className="lg:text-lg">

src/app/conf/2024/page.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ export default function Page() {
102102
alt="Lee Byron"
103103
className="aspect-video rounded-md object-cover"
104104
src={leeImage}
105+
placeholder="blur"
105106
/>
106107
</div>
107108
</div>

src/app/conf/2024/sponsors.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ function List({
7878
alt={`${name} logo`}
7979
src={icon}
8080
className="max-h-full lg:w-auto lg:max-w-60"
81+
placeholder="blur"
8182
/>
8283
<span className="absolute right-5 top-5 font-sans leading-none text-white lg:text-2xl">
8384

src/app/conf/2024/venue.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ export function Venue() {
3333
src={cityViewImage}
3434
alt="San Francisco city view"
3535
className="mx-auto my-8 aspect-video rounded-md object-cover"
36+
placeholder="blur"
3637
/>
3738
</div>
3839
<div>

src/app/conf/2025/components/gallery-strip/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ function GalleryStripImage({
7171
<Image
7272
data-index={index}
7373
src={image}
74+
placeholder="blur"
7475
alt=""
7576
role="presentation"
7677
// intrinsic 799x533

src/app/conf/2025/components/hero/hero-image.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ export function HeroImage() {
77
<div className="z-[2] bg-blk">
88
<Image
99
src={heroPhoto}
10+
placeholder="blur"
1011
width={1920}
1112
height={560}
1213
alt="five speakers at GraphQLConf 2024"

src/app/conf/2025/components/register-today/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export function RegisterToday({ className }: RegisterTodayProps) {
2525
width="450"
2626
height="566"
2727
className="aspect-[312/392] w-full object-cover max-sm:hidden sm:aspect-[2] lg:aspect-[450/566] lg:h-[566px] lg:w-[450px]"
28+
placeholder="blur"
2829
/>
2930
<div className="flex flex-col justify-between">
3031
<div>

src/app/conf/2025/components/speaker-card.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ export function SpeakerCard({
4949
{speaker.avatar ? (
5050
<Image
5151
src={speaker.avatar}
52+
placeholder="blur"
5253
alt=""
5354
width={176}
5455
height={176}

src/app/conf/2025/components/top-minds/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ function TopMindCard({
150150
width={312}
151151
height={312}
152152
className="aspect-square size-[312px] w-full object-cover saturate-[0.1] transition-transform sm:h-[236px]"
153+
placeholder="blur"
153154
/>
154155
<Stripes mask={stripes} />
155156
</div>

0 commit comments

Comments
 (0)