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:
@@ -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">
|
||||
|
Reference in New Issue
Block a user