diff --git a/src/components/RootLayout.tsx b/src/components/RootLayout.tsx index c7759d8..ae79bad 100644 --- a/src/components/RootLayout.tsx +++ b/src/components/RootLayout.tsx @@ -17,6 +17,24 @@ type LayoutProps = { export default function RootLayout({ children, protectedPage }: LayoutProps) { const {status} = useSession() + const snowflakeElements = [] + + for (let i = 0; i < 50; i++) { + snowflakeElements.push( +
+
{type}
diff --git a/src/styles/globals.css b/src/styles/globals.css index bf523a3..eedd7fe 100644 --- a/src/styles/globals.css +++ b/src/styles/globals.css @@ -3,5 +3,18 @@ @tailwind utilities; body { - font-family: 'Poppins', sans-serif + font-family: 'Poppins', sans-serif; + overflow-y:hidden; + overflow-x:hidden; } + +@keyframes fall { + 0% { transform: translateY(0); opacity: 1; } + 100% { transform: translateY(90vh); opacity: 0; } +} + +.snowflake { + animation: fall linear infinite; + position:absolute; + user-select:none; +} \ No newline at end of file