Compare commits
3 Commits
634c98323b
...
552a941c11
Author | SHA1 | Date | |
---|---|---|---|
552a941c11 | |||
cece444d67 | |||
8f0cdbaa21 |
@ -1,9 +1,19 @@
|
|||||||
import type { Metadata } from "next";
|
import type { Metadata, Viewport } 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"] });
|
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 = {
|
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.",
|
||||||
@ -15,8 +25,24 @@ export default function RootLayout({
|
|||||||
children: React.ReactNode;
|
children: React.ReactNode;
|
||||||
}>) {
|
}>) {
|
||||||
return (
|
return (
|
||||||
<html lang="en">
|
<html lang="en" className="scroll-smooth">
|
||||||
<body className={inter.className}>{children}</body>
|
<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>
|
</html>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -1,9 +1,5 @@
|
|||||||
import Image from "next/image";
|
import { redirect } from "next/navigation";
|
||||||
|
|
||||||
export default function Home() {
|
export default function Home() {
|
||||||
return (
|
redirect("/welcome");
|
||||||
<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>
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
11
app/welcome/layout.tsx
Normal file
11
app/welcome/layout.tsx
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
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>
|
||||||
|
);
|
||||||
|
}
|
12
app/welcome/page.tsx
Normal file
12
app/welcome/page.tsx
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
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