Skip to content

Commit e949503

Browse files
committed
moving homepage image
1 parent 3a811b3 commit e949503

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

reactjsfoundations.com/src/App.js

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ function App(props) {
3333
property="og:description"
3434
content="Code examples, tutorials, updates, downloads, and blog for ReactJS Foundations by Chris Minnick. Get up to speed on building applications with ReactJS."
3535
/>
36+
<link rel="preload" as="image" href="/images/cover.webp" />
3637
</Helmet>
3738
<div className="container">
3839
<Suspense fallback={<div>loading...</div>}>
@@ -57,13 +58,17 @@ function App(props) {
5758
/>
5859
</div>
5960
<a href="https://www.amazon.com/dp/1119685540?&linkCode=li3&tag=chrismincom-20&linkId=6c69efbcfd2ca6ae74a870e3a88a40db&language=en_US&ref_=as_li_ss_il">
60-
<img
61-
alt="ReactJS Foundations"
62-
border="0"
63-
width="200"
64-
height="250"
65-
src="//ws-na.amazon-adsystem.com/widgets/q?_encoding=UTF8&ASIN=1119685540&Format=_SL250_&ID=AsinImage&MarketPlace=US&ServiceVersion=20070822&WS=1&tag=chrismincom-20&language=en_US"
66-
/>
61+
<picture style={{ maxWidth: '100%', height: 'auto' }}>
62+
<source srcSet="/images/cover.webp" type="image/webp" />
63+
<source srcSet="/images/cover.jpg" type="image/jpeg" />
64+
<img
65+
src="/images/cover.jpg"
66+
width="200"
67+
height="250"
68+
style={{ maxWidth: '100%', height: 'auto' }}
69+
alt="React JS Foundations"
70+
/>
71+
</picture>
6772
</a>
6873

6974
<br />

reactjsfoundations.com/src/Introduction.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function Introduction(props) {
4848
everything you need to understand what React is and how to start
4949
building applications with it."
5050
/>
51-
<link rel="preload" as="image" href="/images/cover.webp" />
51+
{/* <link rel="preload" as="image" href="/images/cover.webp" /> */}
5252
</Helmet>
5353
<p
5454
style={{

0 commit comments

Comments
 (0)