e5d0a30a2e
Some fairly minor changes to the image-component example app. Switches all instances of images from `/public` over to use static images and adds a page with an example image with blurry placeholder enabled.
20 lines
463 B
JavaScript
20 lines
463 B
JavaScript
import Image from 'next/image'
|
|
import ViewSource from '../components/view-source'
|
|
import mountains from '../public/mountains.jpg'
|
|
|
|
const Responsive = () => (
|
|
<div>
|
|
<ViewSource pathname="pages/layout-responsive.js" />
|
|
<h1>Image Component With Layout Responsive</h1>
|
|
<Image
|
|
alt="Mountains"
|
|
src={mountains}
|
|
layout="responsive"
|
|
placeholder="blur"
|
|
width={700}
|
|
height={475}
|
|
/>
|
|
</div>
|
|
)
|
|
|
|
export default Responsive
|