Compare commits
1 Commits
552a941c11
...
634c98323b
Author | SHA1 | Date | |
---|---|---|---|
634c98323b |
@ -1,19 +1,9 @@
|
||||
import type { Metadata, Viewport } from "next";
|
||||
import type { Metadata } 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"], variable: "--font-sans" });
|
||||
const inter = Inter({ subsets: ["latin"] });
|
||||
|
||||
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.",
|
||||
@ -25,24 +15,8 @@ export default function RootLayout({
|
||||
children: React.ReactNode;
|
||||
}>) {
|
||||
return (
|
||||
<html lang="en" className="scroll-smooth">
|
||||
<head>
|
||||
<PlausibleProvider
|
||||
domain="trackevery.day"
|
||||
customDomain="https://analytics.schulze.network"
|
||||
selfHosted={true}
|
||||
enabled={true}
|
||||
trackOutboundLinks={true}
|
||||
/>
|
||||
</head>
|
||||
<body
|
||||
className={cn(
|
||||
"min-h-screen bg-background font-sans antialiased",
|
||||
inter.variable
|
||||
)}
|
||||
>
|
||||
{children}
|
||||
</body>
|
||||
<html lang="en">
|
||||
<body className={inter.className}>{children}</body>
|
||||
</html>
|
||||
);
|
||||
}
|
||||
|
@ -1,5 +1,9 @@
|
||||
import { redirect } from "next/navigation";
|
||||
import Image from "next/image";
|
||||
|
||||
export default function Home() {
|
||||
redirect("/welcome");
|
||||
return (
|
||||
<main className="flex min-h-screen flex-col items-center justify-between p-24">
|
||||
<div className="z-10 w-full max-w-5xl items-center justify-between font-mono text-sm lg:flex"></div>
|
||||
</main>
|
||||
);
|
||||
}
|
||||
|
@ -1,11 +0,0 @@
|
||||
export default function Layout({
|
||||
children,
|
||||
}: Readonly<{
|
||||
children: React.ReactNode;
|
||||
}>) {
|
||||
return (
|
||||
<div className="flex flex-col h-screen w-screen block bg-emerald-950 text-neutral-300">
|
||||
<div className="m-4 md:my-16 md:mx-auto max-w-96">{children}</div>
|
||||
</div>
|
||||
);
|
||||
}
|
@ -1,12 +0,0 @@
|
||||
export default function Home() {
|
||||
return (
|
||||
<div className="shadow-xl rounded-lg w-full border px-6 py-12 bg-emerald-900 border-emerald-700 ">
|
||||
<div className="flex flex-col">
|
||||
<span className="text-4xl font-bold">📅 Track Every Day</span>
|
||||
<span className="mt-4 text-center">
|
||||
A web app for logging your habits, vices and activities.
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
Loading…
Reference in New Issue
Block a user