Added sleep

This commit is contained in:
MrFry 2020-04-13 10:16:40 +02:00
parent 06c0b0b43a
commit 83ff9576e7

22
src/components/sleep.js Normal file
View file

@ -0,0 +1,22 @@
import constants from '../constants.json'
export default function Sleep (props) {
const hours = new Date().getHours()
if (hours < 4 || hours > 12) {
return (
<div>
<center>
<img
style={{
margin: '10px',
width: '300px'
}}
src={constants.siteUrl + 'img/aludni.jpeg'}
/>
</center>
</div>
)
} else {
return null
}
}