Skip to content

Commit 34e1d25

Browse files
committed
fix(docs): replace broken external image URLs with local assets
- Image lazy demo: use local /avatar/ paths instead of GitHub raw URLs - Image fallback demo: use local avatar instead of via.placeholder.com - Card media demo: use local plants.jpg instead of dead pixabay URL
1 parent 47bdcae commit 34e1d25

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

packages/react/src/card/demo/image.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ A card using an image to reinforce the content.
88
<Card actions={[
99
<a key={1} href="">Learn more</a>
1010
]}>
11-
<Image width="100%" src="https://cdn.pixabay.com/photo/2015/10/10/22/47/koala-981571__480.jpg"/>
11+
<Image width="100%" src="/avatar/plants.jpg"/>
1212
<Card.Content>
1313
<h2 style={{ margin: 0 }}>Koala</h2>
1414
<p style={{ marginBottom: 0 }}>The koala is an arboreal herbivorous marsupial native to Australia. It is the only extant representative of the family Phascolarctidae and its closest living relatives are the wombats, which comprise the family Vombatidae. </p>

packages/react/src/image/demo/fallback.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Providing a fallback image for when there is an error loading the src of the image.
66

77
```jsx live
8-
<Image src="" fallback="https://via.placeholder.com/150"/>
8+
<Image src="" fallback="/avatar/avatar2.png"/>
99
```
1010

1111
</Demo>

packages/react/src/image/demo/lazy.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ Set `lazy` and `placehoulder` properties to implement the lazy load.
88
<div style={{ height: 250, overflowY: 'scroll' }}>
99
<p>Scroll up to make images into the view area.</p>
1010
<div style={{ height: 350 }}/>
11-
<Image lazy round src="https://github.com/wangdicoder/tiny-design/blob/master/site/public/avatar/avatar3.png?raw=true" placeholder="https://github.com/wangdicoder/tiny-design/blob/master/site/public/avatar/avatar3_blur.png?raw=true"/>
11+
<Image lazy round src="/avatar/avatar3.png" placeholder="/avatar/avatar3_blur.png"/>
1212
<div style={{ height: 350 }}/>
13-
<Image lazy width={300} height={200} src="https://github.com/wangdicoder/tiny-design/blob/master/site/public/avatar/plants.jpg?raw=true" placeholder="https://github.com/wangdicoder/tiny-design/blob/master/site/public/avatar/plants_blur.png?raw=true"/>
13+
<Image lazy width={300} height={200} src="/avatar/plants.jpg" placeholder="/avatar/plants_blur.png"/>
1414
<div style={{ height: 100 }}/>
1515
</div>
1616
```

0 commit comments

Comments
 (0)