Skip to content

Commit 6e95f29

Browse files
committed
updating cover image
1 parent 38aaba1 commit 6e95f29

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed
11.2 KB
Binary file not shown.

reactjsfoundations.com/src/Introduction.js

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,18 @@ function Introduction(props) {
44
return (
55
<>
66
<div style={{ textAlign: 'center' }}>
7-
<a href="https://www.amazon.com/React-Foundations-Building-Interfaces-ReactJS/dp/1119685540">
8-
<img
9-
src="/images/cover.jpg"
10-
width="300"
11-
height="378"
12-
style={{ maxWidth: '100%', height: 'auto' }}
13-
alt="React JS Foundations"
14-
/>
7+
<a href="https://amzn.to/3wVXbqk">
8+
<picture style={{ maxWidth: '100%', height: 'auto' }}>
9+
<source srcset="/images/cover.webp" type="image/webp" />
10+
<source srcset="/images/cover.jpg" type="image/jpeg" />
11+
<img
12+
src="/images/cover.jpg"
13+
width="300"
14+
height="378"
15+
style={{ maxWidth: '100%', height: 'auto' }}
16+
alt="React JS Foundations"
17+
/>
18+
</picture>
1519
</a>
1620
</div>
1721
<div style={{ textAlign: 'center', spadding: '4px 12px 0px 0px' }}>
@@ -27,10 +31,7 @@ function Introduction(props) {
2731
backgroundColor: '#2da44e',
2832
}}
2933
>
30-
<a
31-
style={{ color: '#fff' }}
32-
href="https://www.amazon.com/React-Foundations-Building-Interfaces-ReactJS/dp/1119685540"
33-
>
34+
<a style={{ color: '#fff' }} href="https://amzn.to/3wVXbqk">
3435
Preview and Buy Now @ Amazon.com
3536
</a>
3637
</button>

0 commit comments

Comments
 (0)