/
client-side.js
77 lines (75 loc) · 1.55 KB
/
client-side.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
import React from 'react'
import Image from 'next/image'
import Link from 'next/link'
const ClientSide = () => {
return (
<div>
<p id="stubtext">This is a client side page</p>
<Image
id="basic-image"
src="foo.jpg"
loading="eager"
width={300}
height={400}
quality={60}
></Image>
<Image
id="attribute-test"
data-demo="demo-value"
src="bar.jpg"
loading="eager"
width={300}
height={400}
/>
<Image
id="secondary-image"
data-demo="demo-value"
host="secondary"
src="foo2.jpg"
loading="eager"
width={300}
height={400}
/>
<Image
id="unoptimized-image"
unoptimized
src="https://arbitraryurl.com/foo.jpg"
loading="eager"
width={300}
height={400}
/>
<Image
id="priority-image-client"
priority
src="withpriorityclient.png"
width={300}
height={400}
/>
<Image
id="preceding-slash-image"
src="/fooslash.jpg"
priority
width={300}
height={400}
/>
<Image
id="icon-image-64"
src="/icon.png"
loading="eager"
width={64}
height={64}
/>
<Image
id="icon-image-16"
src="/icon.png"
loading="eager"
width={16}
height={16}
/>
<Link href="/errors">
<a id="errorslink">Errors</a>
</Link>
</div>
)
}
export default ClientSide