-
Notifications
You must be signed in to change notification settings - Fork 86
/
Copy pathimage.js
38 lines (35 loc) · 1.33 KB
/
image.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import Image from 'next/image'
import img from './unsplash.jpg'
import logo from './logomark.svg'
const Images = () => (
<div>
<Image src={img} width={1200} height={800} alt="shiba inu dog looks through a window" />
<p>
<a href="https://unsplash.com/photos/DVCyb0lssMk">Photo</a> by{' '}
<a href="https://unsplash.com/@veraduez?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText">
Vera Duez
</a>{' '}
on <a href="https://unsplash.com/?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText">Unsplash</a>
</p>
<p>
<Image src={logo} alt="netlify logomark" />
<Image
src="https://raw.githubusercontent.com/netlify/next-runtime/main/demos/default/public/next-on-netlify.png"
alt="Picture of the author"
width={500}
height={500}
/>
<Image src="https://i.imgur.com/bxSRS3Jb.png" alt="Tawny Frogmouth" width={160} height={160} />
</p>
<p>
The following image should be broken as the domain is not added to domains or remotePatterns in next.config.js:
</p>
<Image
src="https://upload.wikimedia.org/wikipedia/commons/thumb/b/b6/SIPI_Jelly_Beans_4.1.07.tiff/lossy-page1-256px-SIPI_Jelly_Beans_4.1.07.tiff.jpg"
alt="Jellybeans"
width={146}
height={32}
/>
</div>
)
export default Images