update metadata & use logo as a link to root
This commit is contained in:
@@ -5,12 +5,13 @@ import { ThemeProvider } from "next-themes";
|
|||||||
import { ModeToggle } from "@/components/mode-toggle";
|
import { ModeToggle } from "@/components/mode-toggle";
|
||||||
import SignIn from "./components/sign-in";
|
import SignIn from "./components/sign-in";
|
||||||
import AuthSessionProvider from "@/components/SessionProvider";
|
import AuthSessionProvider from "@/components/SessionProvider";
|
||||||
|
import Link from "next/link"
|
||||||
|
|
||||||
const geist = Geist({ subsets: ['latin', 'cyrillic'], variable: "--font-geist-sans" })
|
const geist = Geist({ subsets: ['latin', 'cyrillic'], variable: "--font-geist-sans" })
|
||||||
|
|
||||||
export const metadata: Metadata = {
|
export const metadata: Metadata = {
|
||||||
title: 'iCal PWA',
|
title: 'Local iCal',
|
||||||
description: 'Minimal PWA for calendar events',
|
description: 'Local iCal editor for calendar events',
|
||||||
creator: "Dmytro Stanchiev",
|
creator: "Dmytro Stanchiev",
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -32,7 +33,9 @@ export default function RootLayout({
|
|||||||
disableTransitionOnChange
|
disableTransitionOnChange
|
||||||
>
|
>
|
||||||
<header className="dark:text-white text-gray-900 px-4 py-3 font-bold shadow flex justify-between items-center-safe">
|
<header className="dark:text-white text-gray-900 px-4 py-3 font-bold shadow flex justify-between items-center-safe">
|
||||||
{metadata.title as string || "iCal PWA"}
|
<Link href={"/"}>
|
||||||
|
{metadata.title as string || "iCal PWA"}
|
||||||
|
</Link>
|
||||||
<div className="flex flex-row gap-2">
|
<div className="flex flex-row gap-2">
|
||||||
<SignIn />
|
<SignIn />
|
||||||
<ModeToggle />
|
<ModeToggle />
|
||||||
|
|||||||
Reference in New Issue
Block a user