import "./globals.css";
import { Header } from "@/components/header";
import { LoginButton } from "@/components/login-button";
import { Button } from "@/components/ui/button";
import { Separator } from "@/components/ui/separator";
import Icon from "@/public/icon.svg";
import { cn } from "@/utils/cn";
import { getBaseUrl } from "@/utils/urls";
import type { Metadata, Viewport } from "next";
import { Lexend, Noto_Sans_JP, Outfit } from "next/font/google";
import { cookies } from "next/headers";
import Image from "next/image";
import Link from "next/link";
import Script from "next/script";
import { CookiesProvider } from "next-client-cookies/server";
import { Provider } from "./provider";
const outfit = Outfit({ subsets: ["latin", "latin-ext"], variable: "--font-outfit" });
const notosansJP = Noto_Sans_JP({ subsets: ["cyrillic", "vietnamese"], variable: "--font-noto-sans-jp" });
const lexend = Lexend({ subsets: ["latin"] });
// TODO: get automatically from top.gg
const reviews = {
"@context": "https://schema.org",
"@type": "Product",
name: "wamellow",
aggregateRating: {
"@type": "AggregateRating",
ratingValue: "5",
reviewCount: "110",
bestRating: "5"
}
};
export const viewport: Viewport = {
themeColor: "#8957ff",
initialScale: 0.85
};
export const generateMetadata = (): Metadata => {
const title = "Wamellow: Next-gen of Discord Bots & Apps";
const description = "Accessibility where it's needed the most: Discord Voice Chats. Social notifications to stay connected and up to date with anyone, anywhere. Simple, customizable, free, and built in public.";
return {
metadataBase: new URL(getBaseUrl()),
manifest: "/manifest.json",
appleWebApp: {
capable: true,
title: "Wamellow",
startupImage: "/waya-v3.webp",
statusBarStyle: "black-translucent"
},
title: {
default: title,
template: "%s"
},
description,
alternates: {
canonical: getBaseUrl()
},
openGraph: {
title: {
default: title,
template: "%s on Wamellow"
},
description,
type: "website",
url: getBaseUrl(),
images: `${getBaseUrl()}/waya-v3.webp?v=3`
},
twitter: {
card: "summary",
site: "wamellow.com",
title,
description,
images: `${getBaseUrl()}/waya-v3.webp?v=3`
},
other: {
google: "notranslate"
},
creator: "Luna (shi.gg)",
publisher: "Luna (shi.gg)",
robots: "index, follow"
};
};
export default function RootLayout({ children }: { children: React.ReactNode; }) {
return (
{process.env.NODE_ENV === "development" && (
)}
);
}
function Noise() {
return (
);
}
async function NavBar({ className }: { className?: string; }) {
const jar = await cookies();
return (
);
}