diff --git a/src/components/layout.tsx b/src/components/layout.tsx new file mode 100644 index 0000000..1b64cea --- /dev/null +++ b/src/components/layout.tsx @@ -0,0 +1,33 @@ +import Head from "next/head"; + +export default function Layout({ children }: { children: React.ReactNode }) { + const bgs = [ + "/bg/webp/bg1.webp", + "/bg/webp/bg2.webp", + "/bg/webp/bg3.webp", + "/bg/webp/bg4.webp", + "/bg/webp/bg5.webp", + "/bg/webp/bg6.webp", + "/bg/webp/bg7.webp", + "/bg/webp/bg8.webp", + "/bg/webp/bg9.webp", + ]; + + const randomBg = bgs[Math.floor(Math.random() * bgs.length)] as string; + + return ( + <> +
+