next.js/test/integration/next-image-new/app-dir/app/fill/page.js
page.js43 lines837 B
import React from 'react'
import Image from 'next/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
Quest for Codev2.0.0
/
SIGN IN