-
Notifications
You must be signed in to change notification settings - Fork 26.4k
/
fill.js
42 lines (39 loc) · 841 Bytes
/
fill.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
import React from 'react'
import Image from 'next/future/image'
import test from '../public/test.jpg'
const Page = () => {
return (
<div>
<h1>Fill Mode</h1>
<div
id="image-container-1"
style={{
height: '300px',
width: '300px',
position: 'relative',
overflow: 'hidden',
}}
>
<Image id="fill-image-1" src="/wide.png" sizes="300px" fill />
</div>
<div
id="image-container-blur"
style={{
height: '300px',
width: '300px',
position: 'relative',
overflow: 'hidden',
}}
>
<Image
id="fill-image-blur"
src={test}
sizes="300px"
placeholder="blur"
fill
/>
</div>
</div>
)
}
export default Page