mirror of
https://gitlab.com/MrFry/qmining-page
synced 2025-04-01 20:23:44 +02:00
Added sleep
This commit is contained in:
22
src/components/sleep.js
Normal file
22
src/components/sleep.js
Normal 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
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user