47 lines
1.5 KiB
TypeScript
47 lines
1.5 KiB
TypeScript
import { type Metadata } from 'next'
|
|
import Script from 'next/script'
|
|
import { Mulish } from 'next/font/google'
|
|
import clsx from 'clsx'
|
|
|
|
import '@/styles/tailwind.css'
|
|
|
|
const mulish = Mulish({
|
|
subsets: ['latin'],
|
|
display: 'swap',
|
|
variable: '--font-mulish',
|
|
})
|
|
|
|
export const metadata: Metadata = {
|
|
title: {
|
|
template: '%s - Mycelium',
|
|
default: 'Mycelium - Unleash the Power of Decentralized Networks',
|
|
},
|
|
description:
|
|
'Discover Mycelium, an end-to-end encrypted IPv6 overlay network. The future of secure, efficient, and scalable networking.',
|
|
}
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: {
|
|
children: React.ReactNode
|
|
}) {
|
|
return (
|
|
<html lang="en" className={clsx('antialiased', mulish.variable)}>
|
|
<head>
|
|
{/* MailerLite Universal */}
|
|
<Script id="mailerlite-universal" strategy="afterInteractive">
|
|
{`(function(m,a,i,l,e,r){ m['MailerLiteObject']=e;function f(){
|
|
var c={ a:arguments,q:[]};var r=this.push(c);return "number"!=typeof r?r:f.bind(c.q);}
|
|
f.q=f.q||[];m[e]=m[e]||f.bind(f.q);m[e].q=m[e].q||f.q;r=a.createElement(i);
|
|
var _=a.getElementsByTagName(i)[0];r.async=1;r.src=l+'?v'+(~~(new Date().getTime()/1000000));
|
|
_.parentNode.insertBefore(r,_);})(window, document, 'script', 'https://static.mailerlite.com/js/universal.js', 'ml');
|
|
|
|
var ml_account = ml('accounts', '1778010', 'x2d3d9f8n1', 'load');`}
|
|
</Script>
|
|
{/* End MailerLite Universal */}
|
|
</head>
|
|
<body className="bg-black text-white">{children}</body>
|
|
</html>
|
|
)
|
|
}
|