- I referenced and image as
<img src="public/assets/images/sydney.jpg" alt=""/>
- I put my jpg image in
public/assets/images
folder. - I then build successfully with
npm start
, however, when I go onto my site the image isn't there. Please comment if you need any more information. Here are some screenshots
Thanks
Here is the app, I want the image to appear in the Sydney FC Box.
import React from 'react';
import React from 'react';
export const ALeagueTeam = () => {
return (
<div>
<section id="one" class="tiles">
<article>
<span class="image">
<img src="public/assets/images/sydney.jpg" alt=""/>
</span>
<header class="major">
<h3><a href="landing.html" class="link">SYDNEY FC</a></h3>
<p>FOUNDED IN 2004</p>
</header>
</article>
<article>
<span class="image">
<img src="images/pic02.jpg" alt=""/>
</span>
<header class="major">
<h3><a href="landing.html" class="link">VIEW PLAYERS</a></h3>
<p>CURRENTLY 1st</p>
</header>
</article>
<article>
<span class="image">
<img src="images/pic03.jpg" alt=""/>
</span>
<header class="major">
<h3><a href="landing.html" class="link">MELBOURNE CITY</a></h3>
<p>FOUNDED IN</p>
</header>
</article>
<article>
<span class="image">
<img src="images/pic04.jpg" alt=""/>
</span>
<header class="major">
<h3><a href="landing.html" class="link">VIEW PLAYERS</a></h3>
<p>CURRENTLY 2ND</p>
</header>
</article>
<article>
<span class="image">
<img src="images/pic05.jpg" alt=""/>
</span>
<header class="major">
<h3><a href="landing.html" class="link">WELLINGTON PHOENIX</a></h3>
<p>FOUNDED IN </p>
</header>
</article>
<article>
<span class="image">
<img src="images/pic06.jpg" alt=""/>
</span>
<header class="major">
<h3><a href="landing.html" class="link">VIEW PLAYERS</a></h3>
<p>CURRENTLY 3RD</p>
</header>
</article>
</section>
</div>
);
};