mirror of
https://gitlab.com/MrFry/qmining-page
synced 2025-04-01 20:23:44 +02:00
Snow click and flake amount fix
This commit is contained in:
parent
dd97c7cbeb
commit
0c69bf931f
1 changed files with 3 additions and 1 deletions
|
@ -33,18 +33,20 @@ export default function Layout(props) {
|
|||
setWindowSize([window.innerWidth, window.innerHeight])
|
||||
})
|
||||
}, [])
|
||||
const snowflakeCount = (windowSize[0] + windowSize[1]) / 8
|
||||
|
||||
return (
|
||||
<div>
|
||||
<div
|
||||
style={{
|
||||
pointerEvents: 'none',
|
||||
zIndex: 900,
|
||||
position: 'fixed',
|
||||
width: `${windowSize[0]}px`,
|
||||
height: `${windowSize[1]}px`,
|
||||
}}
|
||||
>
|
||||
<Snowfall snowflakeCount={300} />
|
||||
<Snowfall snowflakeCount={snowflakeCount} />
|
||||
</div>
|
||||
<div className="sidebar">
|
||||
<div className="headercontainer">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue