mirror of
https://github.com/Aviortheking/next-template.git
synced 2025-07-30 00:39:51 +00:00
Added Image Component
Signed-off-by: Avior <florian.bouillon@delta-wings.net>
This commit is contained in:
@ -1,16 +1,21 @@
|
||||
import React from 'react'
|
||||
import '../styl/index.styl'
|
||||
import HelloWorld from '../components/HelloWorld'
|
||||
import Image from '../components/Image'
|
||||
|
||||
export default class Index extends React.Component {
|
||||
|
||||
public render() {
|
||||
return(
|
||||
<>
|
||||
<h1>Hello World !</h1>
|
||||
<style jsx>{`
|
||||
h1
|
||||
font-size: 39px
|
||||
`}</style>
|
||||
<HelloWorld>Hello World</HelloWorld>
|
||||
<Image
|
||||
max={{height:400,width:200}}
|
||||
default={{width:200,height:100}}
|
||||
deleteOnError={true}
|
||||
src="https://source.unusplash.com/random/800x600"
|
||||
/>
|
||||
<HelloWorld>Hello World</HelloWorld>
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
Reference in New Issue
Block a user