Skip to content

Commit

Permalink
Addition of Page Titles and Favicon (mckaywrigley#1195)
Browse files Browse the repository at this point in the history
* Add page title

* Create favicon.ico

* slight spacing tweak

---------

Co-authored-by: Mckay Wrigley <mckaywrigley@gmail.com>
  • Loading branch information
burnworks and mckaywrigley authored Jan 16, 2024
1 parent 3823518 commit f826939
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { Metadata } from "next"
import { Toaster } from "@/components/ui/sonner"
import { GlobalState } from "@/components/utility/global-state"
import { Providers } from "@/components/utility/providers"
Expand All @@ -14,6 +15,13 @@ interface RootLayoutProps {
children: ReactNode
}

export const metadata: Metadata = {
title: {
template: "%s - Chatbot UI",
default: "Chatbot UI"
}
}

export default async function RootLayout({ children }: RootLayoutProps) {
const cookieStore = cookies()
const supabase = createServerClient<Database>(
Expand Down
5 changes: 5 additions & 0 deletions app/login/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,14 @@ import { Label } from "@/components/ui/label"
import { createClient } from "@/lib/supabase/server"
import { Database } from "@/supabase/types"
import { createServerClient } from "@supabase/ssr"
import { Metadata } from "next"
import { cookies, headers } from "next/headers"
import { redirect } from "next/navigation"

export const metadata: Metadata = {
title: "Login"
}

export default async function Login({
searchParams
}: {
Expand Down
Binary file added public/favicon.ico
Binary file not shown.

0 comments on commit f826939

Please sign in to comment.