From cece444d679d19b16b6b61f6f98603decff15625 Mon Sep 17 00:00:00 2001 From: Felix Schulze Date: Tue, 3 Sep 2024 22:34:03 +0200 Subject: [PATCH] plausible tracker, main layout --- app/layout.tsx | 34 ++++++++++++++++++++++++++++++---- 1 file changed, 30 insertions(+), 4 deletions(-) diff --git a/app/layout.tsx b/app/layout.tsx index bcf6525..a4990a6 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -1,9 +1,19 @@ -import type { Metadata } from "next"; +import type { Metadata, Viewport } from "next"; import { Inter } from "next/font/google"; +import PlausibleProvider from "next-plausible"; import "./globals.css"; +import { cn } from "@/lib/utils"; -const inter = Inter({ subsets: ["latin"] }); +const inter = Inter({ subsets: ["latin"], variable: "--font-sans" }); +export const viewport: Viewport = { + colorScheme: "dark", + themeColor: [ + //{ media: "(prefers-color-scheme: light)", color: "#f5f5f5" }, + //{ media: "(prefers-color-scheme: dark)", color: "#171717" }, + { color: "#052e16" }, + ], +}; export const metadata: Metadata = { title: "Track Every Day!", description: "A web app for tracking habits, activities and vices.", @@ -15,8 +25,24 @@ export default function RootLayout({ children: React.ReactNode; }>) { return ( - - {children} + + + + + + {children} + ); }