mirror of
https://gitlab.com/MrFry/qmining-page
synced 2025-04-01 20:23:44 +02:00
npm packages update
This commit is contained in:
parent
ed507dc39f
commit
32522097c0
51 changed files with 3247 additions and 5187 deletions
25
src/components/sleep.jsx
Normal file
25
src/components/sleep.jsx
Normal file
|
@ -0,0 +1,25 @@
|
|||
import React from 'react'
|
||||
import constants from '../constants.json'
|
||||
|
||||
export default function Sleep() {
|
||||
const hours = new Date().getHours()
|
||||
if (hours < 4 || hours > 23) {
|
||||
return (
|
||||
<div>
|
||||
<center>
|
||||
<img
|
||||
style={{
|
||||
margin: '10px',
|
||||
width: '300px',
|
||||
border: '2px solid white',
|
||||
}}
|
||||
src={constants.siteUrl + 'img/aludni.jpeg'}
|
||||
title="Ezt a képet azert látod, mert ilyenkor már igazán nem ezen az oldalon kellene járnod"
|
||||
/>
|
||||
</center>
|
||||
</div>
|
||||
)
|
||||
} else {
|
||||
return null
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue