added plausible

This commit is contained in:
Hassan El Mghari
2026-01-29 10:35:50 -05:00
parent 35c78db57d
commit 6b6f316f21
3 changed files with 42 additions and 16 deletions
+25 -16
View File
@@ -1,40 +1,46 @@
import type React from "react";
import type { Metadata } from "next";
import { Inter, Bangers, Space_Grotesk, Instrument_Serif } from "next/font/google";
import { Analytics } from "@vercel/analytics/next";
import { Toaster } from "@/components/ui/toaster";
import { ClerkProvider } from "@clerk/nextjs";
import "./globals.css";
import type React from "react"
import type { Metadata } from "next"
import {
Inter,
Bangers,
Space_Grotesk,
Instrument_Serif,
} from "next/font/google"
import { Analytics } from "@vercel/analytics/next"
import { Toaster } from "@/components/ui/toaster"
import PlausibleProvider from "next-plausible"
import { ClerkProvider } from "@clerk/nextjs"
import "./globals.css"
const inter = Inter({ subsets: ["latin"], variable: "--font-inter" });
const inter = Inter({ subsets: ["latin"], variable: "--font-inter" })
const bangers = Bangers({
weight: "400",
subsets: ["latin"],
variable: "--font-bangers",
});
})
const spaceGrotesk = Space_Grotesk({
subsets: ["latin"],
variable: "--font-space-grotesk",
});
})
const instrumentSerif = Instrument_Serif({
weight: ["400"],
subsets: ["latin"],
variable: "--font-instrument-serif",
});
})
export const metadata: Metadata = {
title: "MakeComics - AI Comic Generator",
description:
"Create stunning AI-generated comics in seconds. Choose your style, describe your story, and watch the magic happen.",
openGraph: {
images: "https://www.makecomics.io/og.png"
}
};
images: "https://www.makecomics.io/og.png",
},
}
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
children: React.ReactNode
}>) {
return (
<ClerkProvider>
@@ -42,6 +48,9 @@ export default function RootLayout({
lang="en"
className={`${inter.variable} ${bangers.variable} ${spaceGrotesk.variable} ${instrumentSerif.variable}`}
>
<head>
<PlausibleProvider domain="makecomics.io" />
</head>
<body className="font-sans antialiased">
{children}
<Analytics />
@@ -49,5 +58,5 @@ export default function RootLayout({
</body>
</html>
</ClerkProvider>
);
)
}