Skip to content

Commit 5f0afee

Browse files
authored
Replace placeimg URLs (#2130)
1 parent 9e2eac4 commit 5f0afee

File tree

10 files changed

+13
-7
lines changed

10 files changed

+13
-7
lines changed

src/components/card/card.stories.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const singleDemoStory = (args) => {
3838
};
3939
const singleDemoBlockExamples = {
4040
heading: 'Lorem ipsum dolor sit amet',
41-
cover: `<img src="https://placeimg.com/800/450/animals" alt="">`,
41+
cover: `<img src="/media/feature-ozzie-wide.jpg" alt="">`,
4242
content: `<p>Consectetur adipiscing elit...</p>`,
4343
footer: `<p>{{'now'|date('M j, Y')}}</p>`,
4444
};

src/components/card/demo/div.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
{% endblock %}
88
{% block cover %}
99
{%- if show_cover -%}
10-
<img src="https://placeimg.com/800/450/animals" alt="">
10+
<img src="/media/feature-ozzie-wide.jpg" alt="">
1111
{%- endif -%}
1212
{% endblock %}
1313
{% block content %}

src/components/card/demo/single.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
{% endblock %}
77
{% block cover %}
88
{%- if show_cover -%}
9-
<img src="https://placeimg.com/800/450/animals" alt="">
9+
<img src="/media/feature-ozzie-wide.jpg" alt="">
1010
{%- endif -%}
1111
{% endblock %}
1212
{% block content %}

src/components/comment/demo/data.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,13 @@ const themeWords = [
7171
'integration',
7272
];
7373

74-
const placeImgCategories = ['animals', 'arch', 'nature', 'people', 'tech'];
74+
const avatars = [
75+
`/media/avatar-buster-a.jpg`,
76+
`/media/avatar-buster-b.jpg`,
77+
`/media/avatar-ozzie-a.jpg`,
78+
`/media/avatar-ozzie-b.jpg`,
79+
`/media/avatar-default.svg`,
80+
];
7581

7682
const jabber = new Jabber(themeWords, 1.5);
7783

@@ -91,7 +97,7 @@ export const makeComment = ({
9197
const result = {
9298
ID: id,
9399
date: new Date(),
94-
avatar: `https://placeimg.com/92/92/${sample(placeImgCategories)}`,
100+
avatar: sample(avatars),
95101
author: {
96102
name: jabber.createFullName().split(' ').slice(1).join(' '),
97103
},

src/prototypes/quotes/example/example.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"ID": "5",
4444
"link": "#comment-5",
4545
"date": "2021-09-21T17:34:01.148Z",
46-
"avatar": "https://placeimg.com/92/92/people",
46+
"avatar": "/media/avatar-ozzie-a.jpg",
4747
"author": {
4848
"name": "Buyap Narirido"
4949
},
@@ -54,7 +54,7 @@
5454
"ID": "6",
5555
"link": "#comment-6",
5656
"date": "2021-09-21T17:34:01.148Z",
57-
"avatar": "https://placeimg.com/92/92/tech",
57+
"avatar": "/media/avatar-buster-b.jpg",
5858
"author": {
5959
"name": "Biko Bacupuyal"
6060
},

static/media/avatar-buster-a.jpg

36.4 KB
Loading

static/media/avatar-buster-b.jpg

54.5 KB
Loading

static/media/avatar-ozzie-a.jpg

41.9 KB
Loading

static/media/avatar-ozzie-b.jpg

42.6 KB
Loading
118 KB
Loading

0 commit comments

Comments
 (0)