File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ import Snowfall from 'react-snowfall'
34
34
<ViewTransitions />
35
35
</head >
36
36
<body class =" bg-lightgrey w-full h-full min-h-screen text-black dark:text-white transition ease-in-out delay-50 flex flex-col items-center bg-[url('/img/skies.svg')] bg-cover" >
37
- <div class =" top-0 absolute -z-10 min-h-screen w-screen" >
37
+ <div id = " snowfall " class =" top-0 absolute -z-10 min-h-screen w-screen" >
38
38
<Snowfall color =" #c7d0e6" client:only />
39
39
</div >
40
40
<Nav />
@@ -72,6 +72,13 @@ import Snowfall from 'react-snowfall'
72
72
window.localStorage.setItem("theme", theme);
73
73
</script >
74
74
75
+ <script is:inline >
76
+ const snowfallHeight = document.body.scrollHeight;
77
+ const snowfallElement = document.getElementById('snowfall');
78
+
79
+ snowfallElement.style.height = `${snowfallHeight}px`;
80
+ </script >
81
+
75
82
<style is:global >
76
83
*::-webkit-scrollbar {
77
84
height: 5px;
You can’t perform that action at this time.
0 commit comments