2018-07-21 10:42:38 +00:00
|
|
|
import 'semantic-ui-css/semantic.min.css'
|
2019-01-28 07:37:24 +00:00
|
|
|
import { Modal,
|
|
|
|
Button,
|
|
|
|
Icon
|
|
|
|
} from 'semantic-ui-react'
|
|
|
|
|
|
|
|
import SmallImage from './SmallImage.png'
|
|
|
|
import LargeImage from './LargeImage.png'
|
|
|
|
import './styles.css'
|
2017-04-22 12:54:35 +00:00
|
|
|
|
|
|
|
export default () => (
|
2019-01-28 07:37:24 +00:00
|
|
|
<div className='centered'>
|
|
|
|
<Icon size='massive' name='world' />
|
|
|
|
<div className='separator' />
|
2017-04-22 12:54:35 +00:00
|
|
|
<Modal trigger={<Button>Show Modal</Button>}>
|
2019-01-28 07:37:24 +00:00
|
|
|
<Modal.Header><em>publicPath</em> should be set to <em>/_next/static/</em></Modal.Header>
|
|
|
|
<Modal.Content>
|
2017-04-22 12:54:35 +00:00
|
|
|
<Modal.Description>
|
2019-01-28 07:37:24 +00:00
|
|
|
<div className='wrapper'>
|
|
|
|
<div className='row'>
|
|
|
|
<p>
|
|
|
|
Larger content should be still availble as a fallback
|
|
|
|
to <em>fileLoader</em> but
|
|
|
|
it should not polute <em>/.next/static/css</em> folder.
|
|
|
|
You should see two images below.
|
|
|
|
One, smaller, loaded as data url, and one, bigger, loaded
|
|
|
|
via url.
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<div className='row'>
|
|
|
|
<img src={SmallImage} />
|
|
|
|
<p>
|
|
|
|
A small image should be loaded as data url: <em>{SmallImage.substr(0, 100)}...</em>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div className='row'>
|
|
|
|
<img src={LargeImage} />
|
|
|
|
<p>
|
|
|
|
A large image should be loaded as a url: <em>{LargeImage}</em>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<p className='border'>
|
|
|
|
You should also still be able to load regular css.
|
|
|
|
This text should have border.
|
|
|
|
</p>
|
|
|
|
</div>
|
2017-04-22 12:54:35 +00:00
|
|
|
</Modal.Description>
|
|
|
|
</Modal.Content>
|
|
|
|
</Modal>
|
|
|
|
</div>
|
|
|
|
)
|