Compare commits

..

1 Commits

Author SHA1 Message Date
634c98323b chore(deps): pin dependencies
All checks were successful
Lint / Lint (push) Successful in 26s
2024-09-03 20:01:15 +00:00
4 changed files with 10 additions and 55 deletions

View File

@ -1,19 +1,9 @@
import type { Metadata, Viewport } from "next"; import type { Metadata } from "next";
import { Inter } from "next/font/google"; import { Inter } from "next/font/google";
import PlausibleProvider from "next-plausible";
import "./globals.css"; 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 = { export const metadata: Metadata = {
title: "Track Every Day!", title: "Track Every Day!",
description: "A web app for tracking habits, activities and vices.", description: "A web app for tracking habits, activities and vices.",
@ -25,24 +15,8 @@ export default function RootLayout({
children: React.ReactNode; children: React.ReactNode;
}>) { }>) {
return ( return (
<html lang="en" className="scroll-smooth"> <html lang="en">
<head> <body className={inter.className}>{children}</body>
<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> </html>
); );
} }

View File

@ -1,5 +1,9 @@
import { redirect } from "next/navigation"; import Image from "next/image";
export default function Home() { 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>
);
} }

View File

@ -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>
);
}

View File

@ -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>
);
}