mirror of
https://gitlab.com/MrFry/qmining-page
synced 2025-04-01 20:23:44 +02:00
Added sleep
This commit is contained in:
parent
06c0b0b43a
commit
83ff9576e7
1 changed files with 22 additions and 0 deletions
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
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue