Skip to content

Commit cae56f9

Browse files
author
satyendra
committed
fix: replace imgur domains with official proxy to fix UK access issues (#8110)
1 parent 2da4f7f commit cae56f9

18 files changed

+195
-195
lines changed

src/content/learn/adding-interactivity.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -139,73 +139,73 @@ export const sculptureList = [{
139139
name: 'Homenaje a la Neurocirugía',
140140
artist: 'Marta Colvin Andrade',
141141
description: 'Although Colvin is predominantly known for abstract themes that allude to pre-Hispanic symbols, this gigantic sculpture, an homage to neurosurgery, is one of her most recognizable public art pieces.',
142-
url: 'https://i.imgur.com/Mx7dA2Y.jpg',
142+
url: 'https://i.imgur.com.prx.react.dev/Mx7dA2Y.jpg',
143143
alt: 'A bronze statue of two crossed hands delicately holding a human brain in their fingertips.'
144144
}, {
145145
name: 'Floralis Genérica',
146146
artist: 'Eduardo Catalano',
147147
description: 'This enormous (75 ft. or 23m) silver flower is located in Buenos Aires. It is designed to move, closing its petals in the evening or when strong winds blow and opening them in the morning.',
148-
url: 'https://i.imgur.com/ZF6s192m.jpg',
148+
url: 'https://i.imgur.com.prx.react.dev/ZF6s192m.jpg',
149149
alt: 'A gigantic metallic flower sculpture with reflective mirror-like petals and strong stamens.'
150150
}, {
151151
name: 'Eternal Presence',
152152
artist: 'John Woodrow Wilson',
153153
description: 'Wilson was known for his preoccupation with equality, social justice, as well as the essential and spiritual qualities of humankind. This massive (7ft. or 2,13m) bronze represents what he described as "a symbolic Black presence infused with a sense of universal humanity."',
154-
url: 'https://i.imgur.com/aTtVpES.jpg',
154+
url: 'https://i.imgur.com.prx.react.dev/aTtVpES.jpg',
155155
alt: 'The sculpture depicting a human head seems ever-present and solemn. It radiates calm and serenity.'
156156
}, {
157157
name: 'Moai',
158158
artist: 'Unknown Artist',
159159
description: 'Located on the Easter Island, there are 1,000 moai, or extant monumental statues, created by the early Rapa Nui people, which some believe represented deified ancestors.',
160-
url: 'https://i.imgur.com/RCwLEoQm.jpg',
160+
url: 'https://i.imgur.com.prx.react.dev/RCwLEoQm.jpg',
161161
alt: 'Three monumental stone busts with the heads that are disproportionately large with somber faces.'
162162
}, {
163163
name: 'Blue Nana',
164164
artist: 'Niki de Saint Phalle',
165165
description: 'The Nanas are triumphant creatures, symbols of femininity and maternity. Initially, Saint Phalle used fabric and found objects for the Nanas, and later on introduced polyester to achieve a more vibrant effect.',
166-
url: 'https://i.imgur.com/Sd1AgUOm.jpg',
166+
url: 'https://i.imgur.com.prx.react.dev/Sd1AgUOm.jpg',
167167
alt: 'A large mosaic sculpture of a whimsical dancing female figure in a colorful costume emanating joy.'
168168
}, {
169169
name: 'Ultimate Form',
170170
artist: 'Barbara Hepworth',
171171
description: 'This abstract bronze sculpture is a part of The Family of Man series located at Yorkshire Sculpture Park. Hepworth chose not to create literal representations of the world but developed abstract forms inspired by people and landscapes.',
172-
url: 'https://i.imgur.com/2heNQDcm.jpg',
172+
url: 'https://i.imgur.com.prx.react.dev/2heNQDcm.jpg',
173173
alt: 'A tall sculpture made of three elements stacked on each other reminding of a human figure.'
174174
}, {
175175
name: 'Cavaliere',
176176
artist: 'Lamidi Olonade Fakeye',
177177
description: "Descended from four generations of woodcarvers, Fakeye's work blended traditional and contemporary Yoruba themes.",
178-
url: 'https://i.imgur.com/wIdGuZwm.png',
178+
url: 'https://i.imgur.com.prx.react.dev/wIdGuZwm.png',
179179
alt: 'An intricate wood sculpture of a warrior with a focused face on a horse adorned with patterns.'
180180
}, {
181181
name: 'Big Bellies',
182182
artist: 'Alina Szapocznikow',
183183
description: "Szapocznikow is known for her sculptures of the fragmented body as a metaphor for the fragility and impermanence of youth and beauty. This sculpture depicts two very realistic large bellies stacked on top of each other, each around five feet (1,5m) tall.",
184-
url: 'https://i.imgur.com/AlHTAdDm.jpg',
184+
url: 'https://i.imgur.com.prx.react.dev/AlHTAdDm.jpg',
185185
alt: 'The sculpture reminds a cascade of folds, quite different from bellies in classical sculptures.'
186186
}, {
187187
name: 'Terracotta Army',
188188
artist: 'Unknown Artist',
189189
description: 'The Terracotta Army is a collection of terracotta sculptures depicting the armies of Qin Shi Huang, the first Emperor of China. The army consisted of more than 8,000 soldiers, 130 chariots with 520 horses, and 150 cavalry horses.',
190-
url: 'https://i.imgur.com/HMFmH6m.jpg',
190+
url: 'https://i.imgur.com.prx.react.dev/HMFmH6m.jpg',
191191
alt: '12 terracotta sculptures of solemn warriors, each with a unique facial expression and armor.'
192192
}, {
193193
name: 'Lunar Landscape',
194194
artist: 'Louise Nevelson',
195195
description: 'Nevelson was known for scavenging objects from New York City debris, which she would later assemble into monumental constructions. In this one, she used disparate parts like a bedpost, juggling pin, and seat fragment, nailing and gluing them into boxes that reflect the influence of Cubism’s geometric abstraction of space and form.',
196-
url: 'https://i.imgur.com/rN7hY6om.jpg',
196+
url: 'https://i.imgur.com.prx.react.dev/rN7hY6om.jpg',
197197
alt: 'A black matte sculpture where the individual elements are initially indistinguishable.'
198198
}, {
199199
name: 'Aureole',
200200
artist: 'Ranjani Shettar',
201201
description: 'Shettar merges the traditional and the modern, the natural and the industrial. Her art focuses on the relationship between man and nature. Her work was described as compelling both abstractly and figuratively, gravity defying, and a "fine synthesis of unlikely materials."',
202-
url: 'https://i.imgur.com/okTpbHhm.jpg',
202+
url: 'https://i.imgur.com.prx.react.dev/okTpbHhm.jpg',
203203
alt: 'A pale wire-like sculpture mounted on concrete wall and descending on the floor. It appears light.'
204204
}, {
205205
name: 'Hippos',
206206
artist: 'Taipei Zoo',
207207
description: 'The Taipei Zoo commissioned a Hippo Square featuring submerged hippos at play.',
208-
url: 'https://i.imgur.com/6o5Vuyu.jpg',
208+
url: 'https://i.imgur.com.prx.react.dev/6o5Vuyu.jpg',
209209
alt: 'A group of bronze hippo sculptures emerging from the sett sidewalk as if they were swimming.'
210210
}];
211211
```
@@ -423,7 +423,7 @@ export default function Form() {
423423
artwork: {
424424
title: 'Blue Nana',
425425
city: 'Hamburg',
426-
image: 'https://i.imgur.com/Sd1AgUOm.jpg',
426+
image: 'https://i.imgur.com.prx.react.dev/Sd1AgUOm.jpg',
427427
}
428428
});
429429

@@ -531,7 +531,7 @@ export default function Form() {
531531
artwork: {
532532
title: 'Blue Nana',
533533
city: 'Hamburg',
534-
image: 'https://i.imgur.com/Sd1AgUOm.jpg',
534+
image: 'https://i.imgur.com.prx.react.dev/Sd1AgUOm.jpg',
535535
}
536536
});
537537

src/content/learn/describing-the-ui.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ React applications are built from isolated pieces of UI called *components*. A R
3232
function Profile() {
3333
return (
3434
<img
35-
src="https://i.imgur.com/MK3eW3As.jpg"
35+
src="https://i.imgur.com.prx.react.dev/MK3eW3As.jpg"
3636
alt="Katherine Johnson"
3737
/>
3838
);
@@ -98,7 +98,7 @@ export default function Gallery() {
9898
export default function Profile() {
9999
return (
100100
<img
101-
src="https://i.imgur.com/QIrZWGIs.jpg"
101+
src="https://i.imgur.com.prx.react.dev/QIrZWGIs.jpg"
102102
alt="Alan L. Hart"
103103
/>
104104
);
@@ -131,7 +131,7 @@ export default function TodoList() {
131131
// This doesn't quite work!
132132
<h1>Hedy Lamarr's Todos</h1>
133133
<img
134-
src="https://i.imgur.com/yXOvdOSs.jpg"
134+
src="https://i.imgur.com.prx.react.dev/yXOvdOSs.jpg"
135135
alt="Hedy Lamarr"
136136
class="photo"
137137
>
@@ -160,7 +160,7 @@ export default function TodoList() {
160160
<>
161161
<h1>Hedy Lamarr's Todos</h1>
162162
<img
163-
src="https://i.imgur.com/yXOvdOSs.jpg"
163+
src="https://i.imgur.com.prx.react.dev/yXOvdOSs.jpg"
164164
alt="Hedy Lamarr"
165165
className="photo"
166166
/>
@@ -207,7 +207,7 @@ export default function TodoList() {
207207
<h1>{person.name}'s Todos</h1>
208208
<img
209209
className="avatar"
210-
src="https://i.imgur.com/7vQD0fPs.jpg"
210+
src="https://i.imgur.com.prx.react.dev/7vQD0fPs.jpg"
211211
alt="Gregorio Y. Zara"
212212
/>
213213
<ul>
@@ -282,7 +282,7 @@ function Card({ children }) {
282282
```js src/utils.js
283283
export function getImageUrl(person, size = 's') {
284284
return (
285-
'https://i.imgur.com/' +
285+
'https://i.imgur.com.prx.react.dev/' +
286286
person.imageId +
287287
size +
288288
'.jpg'
@@ -435,7 +435,7 @@ export const people = [{
435435
```js src/utils.js
436436
export function getImageUrl(person) {
437437
return (
438-
'https://i.imgur.com/' +
438+
'https://i.imgur.com.prx.react.dev/' +
439439
person.imageId +
440440
's.jpg'
441441
);

src/content/learn/importing-and-exporting-components.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ In [Your First Component](/learn/your-first-component), you made a `Profile` com
2828
function Profile() {
2929
return (
3030
<img
31-
src="https://i.imgur.com/MK3eW3As.jpg"
31+
src="https://i.imgur.com.prx.react.dev/MK3eW3As.jpg"
3232
alt="Katherine Johnson"
3333
/>
3434
);
@@ -80,7 +80,7 @@ export default function App() {
8080
function Profile() {
8181
return (
8282
<img
83-
src="https://i.imgur.com/QIrZWGIs.jpg"
83+
src="https://i.imgur.com.prx.react.dev/QIrZWGIs.jpg"
8484
alt="Alan L. Hart"
8585
/>
8686
);
@@ -198,7 +198,7 @@ export default function App() {
198198
export function Profile() {
199199
return (
200200
<img
201-
src="https://i.imgur.com/QIrZWGIs.jpg"
201+
src="https://i.imgur.com.prx.react.dev/QIrZWGIs.jpg"
202202
alt="Alan L. Hart"
203203
/>
204204
);
@@ -286,7 +286,7 @@ export default function App() {
286286
export function Profile() {
287287
return (
288288
<img
289-
src="https://i.imgur.com/QIrZWGIs.jpg"
289+
src="https://i.imgur.com.prx.react.dev/QIrZWGIs.jpg"
290290
alt="Alan L. Hart"
291291
/>
292292
);
@@ -354,7 +354,7 @@ export default function Gallery() {
354354
export function Profile() {
355355
return (
356356
<img
357-
src="https://i.imgur.com/QIrZWGIs.jpg"
357+
src="https://i.imgur.com.prx.react.dev/QIrZWGIs.jpg"
358358
alt="Alan L. Hart"
359359
/>
360360
);
@@ -404,7 +404,7 @@ export default function Gallery() {
404404
export default function Profile() {
405405
return (
406406
<img
407-
src="https://i.imgur.com/QIrZWGIs.jpg"
407+
src="https://i.imgur.com.prx.react.dev/QIrZWGIs.jpg"
408408
alt="Alan L. Hart"
409409
/>
410410
);

src/content/learn/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ You can put more complex expressions inside the JSX curly braces too, for exampl
143143
```js
144144
const user = {
145145
name: 'Hedy Lamarr',
146-
imageUrl: 'https://i.imgur.com/yXOvdOSs.jpg',
146+
imageUrl: 'https://i.imgur.com.prx.react.dev/yXOvdOSs.jpg',
147147
imageSize: 90,
148148
};
149149

src/content/learn/javascript-in-jsx-with-curly-braces.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default function Avatar() {
2828
return (
2929
<img
3030
className="avatar"
31-
src="https://i.imgur.com/7vQD0fPs.jpg"
31+
src="https://i.imgur.com.prx.react.dev/7vQD0fPs.jpg"
3232
alt="Gregorio Y. Zara"
3333
/>
3434
);
@@ -41,15 +41,15 @@ export default function Avatar() {
4141

4242
</Sandpack>
4343

44-
Here, `"https://i.imgur.com/7vQD0fPs.jpg"` and `"Gregorio Y. Zara"` are being passed as strings.
44+
Here, `"https://i.imgur.com.prx.react.dev/7vQD0fPs.jpg"` and `"Gregorio Y. Zara"` are being passed as strings.
4545

4646
But what if you want to dynamically specify the `src` or `alt` text? You could **use a value from JavaScript by replacing `"` and `"` with `{` and `}`**:
4747

4848
<Sandpack>
4949

5050
```js
5151
export default function Avatar() {
52-
const avatar = 'https://i.imgur.com/7vQD0fPs.jpg';
52+
const avatar = 'https://i.imgur.com.prx.react.dev/7vQD0fPs.jpg';
5353
const description = 'Gregorio Y. Zara';
5454
return (
5555
<img
@@ -190,7 +190,7 @@ export default function TodoList() {
190190
<h1>{person.name}'s Todos</h1>
191191
<img
192192
className="avatar"
193-
src="https://i.imgur.com/7vQD0fPs.jpg"
193+
src="https://i.imgur.com.prx.react.dev/7vQD0fPs.jpg"
194194
alt="Gregorio Y. Zara"
195195
/>
196196
<ul>
@@ -266,7 +266,7 @@ export default function TodoList() {
266266
<h1>{person}'s Todos</h1>
267267
<img
268268
className="avatar"
269-
src="https://i.imgur.com/7vQD0fPs.jpg"
269+
src="https://i.imgur.com.prx.react.dev/7vQD0fPs.jpg"
270270
alt="Gregorio Y. Zara"
271271
/>
272272
<ul>
@@ -314,7 +314,7 @@ export default function TodoList() {
314314
<h1>{person.name}'s Todos</h1>
315315
<img
316316
className="avatar"
317-
src="https://i.imgur.com/7vQD0fPs.jpg"
317+
src="https://i.imgur.com.prx.react.dev/7vQD0fPs.jpg"
318318
alt="Gregorio Y. Zara"
319319
/>
320320
<ul>
@@ -358,7 +358,7 @@ export default function TodoList() {
358358
<h1>{person.name}'s Todos</h1>
359359
<img
360360
className="avatar"
361-
src="https://i.imgur.com/7vQD0fPs.jpg"
361+
src="https://i.imgur.com.prx.react.dev/7vQD0fPs.jpg"
362362
alt="Gregorio Y. Zara"
363363
/>
364364
<ul>
@@ -388,7 +388,7 @@ Move the image URL into a property called `person.imageUrl` and read it from the
388388
```js
389389
const person = {
390390
name: 'Gregorio Y. Zara',
391-
imageUrl: "https://i.imgur.com/7vQD0fPs.jpg",
391+
imageUrl: "https://i.imgur.com.prx.react.dev/7vQD0fPs.jpg",
392392
theme: {
393393
backgroundColor: 'black',
394394
color: 'pink'
@@ -428,15 +428,15 @@ body > div > div { padding: 20px; }
428428
429429
In the object below, the full image URL is split into four parts: base URL, `imageId`, `imageSize`, and file extension.
430430
431-
We want the image URL to combine these attributes together: base URL (always `'https://i.imgur.com/'`), `imageId` (`'7vQD0fP'`), `imageSize` (`'s'`), and file extension (always `'.jpg'`). However, something is wrong with how the `<img>` tag specifies its `src`.
431+
We want the image URL to combine these attributes together: base URL (always `'https://i.imgur.com.prx.react.dev/'`), `imageId` (`'7vQD0fP'`), `imageSize` (`'s'`), and file extension (always `'.jpg'`). However, something is wrong with how the `<img>` tag specifies its `src`.
432432
433433
Can you fix it?
434434
435435
<Sandpack>
436436
437437
```js
438438

439-
const baseUrl = 'https://i.imgur.com/';
439+
const baseUrl = 'https://i.imgur.com.prx.react.dev/';
440440
const person = {
441441
name: 'Gregorio Y. Zara',
442442
imageId: '7vQD0fP',
@@ -487,7 +487,7 @@ You can write it as `src={baseUrl + person.imageId + person.imageSize + '.jpg'}`
487487
<Sandpack>
488488
489489
```js
490-
const baseUrl = 'https://i.imgur.com/';
490+
const baseUrl = 'https://i.imgur.com.prx.react.dev/';
491491
const person = {
492492
name: 'Gregorio Y. Zara',
493493
imageId: '7vQD0fP',
@@ -564,7 +564,7 @@ export default function TodoList() {
564564
```js src/utils.js
565565
export function getImageUrl(person) {
566566
return (
567-
'https://i.imgur.com/' +
567+
'https://i.imgur.com.prx.react.dev/' +
568568
person.imageId +
569569
person.imageSize +
570570
'.jpg'

src/content/learn/keeping-components-pure.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ export default function App() {
451451
```js src/utils.js hidden
452452
export function getImageUrl(person, size = 's') {
453453
return (
454-
'https://i.imgur.com/' +
454+
'https://i.imgur.com.prx.react.dev/' +
455455
person.imageId +
456456
size +
457457
'.jpg'
@@ -549,7 +549,7 @@ export default function App() {
549549
```js src/utils.js hidden
550550
export function getImageUrl(person, size = 's') {
551551
return (
552-
'https://i.imgur.com/' +
552+
'https://i.imgur.com.prx.react.dev/' +
553553
person.imageId +
554554
size +
555555
'.jpg'

src/content/learn/passing-data-deeply-with-context.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -998,7 +998,7 @@ export const places = [{
998998
```js src/utils.js
999999
export function getImageUrl(place) {
10001000
return (
1001-
'https://i.imgur.com/' +
1001+
'https://i.imgur.com.prx.react.dev/' +
10021002
place.imageId +
10031003
'l.jpg'
10041004
);
@@ -1137,7 +1137,7 @@ export const places = [{
11371137
```js src/utils.js
11381138
export function getImageUrl(place) {
11391139
return (
1140-
'https://i.imgur.com/' +
1140+
'https://i.imgur.com.prx.react.dev/' +
11411141
place.imageId +
11421142
'l.jpg'
11431143
);

0 commit comments

Comments
 (0)