layout.tsx 625 B

12345678910111213141516171819202122232425262728293031323334
  1. import { Orbitron, Noto_Sans_JP, Roboto_Mono } from "next/font/google"
  2. import './globals.css'
  3. const orbitron = Orbitron({
  4. subsets: ["latin"],
  5. variable: "--font-orbitron",
  6. })
  7. const noto = Noto_Sans_JP({
  8. subsets: ["latin"],
  9. variable: "--font-noto-sans-jp",
  10. })
  11. const robotoMono = Roboto_Mono({
  12. subsets: ["latin"],
  13. variable: "--font-roboto-mono",
  14. })
  15. export default function RootLayout({
  16. children,
  17. }: {
  18. children: React.ReactNode
  19. }) {
  20. return (
  21. <html lang="en" className={`${orbitron.variable} ${noto.variable} ${robotoMono.variable}`}>
  22. <body>
  23. {children}
  24. </body>
  25. </html>
  26. )
  27. }