File size: 618 Bytes
e5ae926
2aa79c0
2f65818
 
 
65567a2
9d1931d
 
 
 
 
 
 
 
 
 
 
 
6c2bcb4
9d1931d
 
 
 
 
 
 
e5ae926
2f65818
 
 
 
 
e5ae926
 
9d1931d
6c2bcb4
e5ae926
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import Script from "next/script";
import Mousetrap from "mousetrap";
import confetti from "canvas-confetti";

import { useEffect } from "react";

const styles = (
	<style>
		{`
		* {
			margin: 0;
			padding: 0;
			box-sizing: border-box;
		}
		html, body {
			height: 100%;
			width: 100%;
			overflow: hidden;
			background: #a9a9a9;
		}
		#__next {
			display: contents;
		}
		`}
	</style>
);
export default function Page() {
	useEffect(() => {
		window.Mousetrap = Mousetrap;
		window.confetti = confetti;
	}, []);

	return (
		<>
			{styles}
			<canvas id="canvas" />
			<Script src="/js/utils.js" />
		</>
	);
}