diff --git a/public/fonts/Inter-VariableFont.woff2 b/public/fonts/Inter-VariableFont.woff2 new file mode 100644 index 0000000..33002f1 Binary files /dev/null and b/public/fonts/Inter-VariableFont.woff2 differ diff --git a/public/fonts/Merriweather-Black.woff2 b/public/fonts/Merriweather-Black.woff2 new file mode 100644 index 0000000..27efff6 --- /dev/null +++ b/public/fonts/Merriweather-Black.woff2 @@ -0,0 +1,11 @@ + + + + + Error 404 (Not Found)!!1 + + +

404. That’s an error. +

The requested URL /s/merriweather/v30/u-4n0qyriQwlOrhSvowK_l52uwpZWMf6.woff2 was not found on this server. That’s all we know. diff --git a/public/fonts/Merriweather-Bold.woff2 b/public/fonts/Merriweather-Bold.woff2 new file mode 100644 index 0000000..4391699 --- /dev/null +++ b/public/fonts/Merriweather-Bold.woff2 @@ -0,0 +1,11 @@ + + + + + Error 404 (Not Found)!!1 + + +

404. That’s an error. +

The requested URL /s/merriweather/v30/u-4n0qyriQwlOrhSvowK_l52_wtZWMf6.woff2 was not found on this server. That’s all we know. diff --git a/public/fonts/Merriweather-Light.woff2 b/public/fonts/Merriweather-Light.woff2 new file mode 100644 index 0000000..a6919a9 Binary files /dev/null and b/public/fonts/Merriweather-Light.woff2 differ diff --git a/public/fonts/Merriweather-Regular.woff2 b/public/fonts/Merriweather-Regular.woff2 new file mode 100644 index 0000000..6515c26 Binary files /dev/null and b/public/fonts/Merriweather-Regular.woff2 differ diff --git a/src/app/(session)/chat/page.tsx b/src/app/(session)/chat/page.tsx index 6cb5cf7..341ff1a 100644 --- a/src/app/(session)/chat/page.tsx +++ b/src/app/(session)/chat/page.tsx @@ -1,6 +1,6 @@ "use client"; -import { useEffect, useState } from 'react'; +import { useEffect, useState, Suspense } from 'react'; import { useSearchParams, useRouter } from 'next/navigation'; import { ChatWindow } from '@/components/features/chat/chat-window'; import { ChatInput } from '@/components/features/chat/chat-input'; @@ -11,7 +11,7 @@ import Link from "next/link"; import { LLMService } from '@/services/llm-service'; import { ProviderManagementService } from '@/services/provider-management-service'; -export default function ChatPage() { +function ChatPageContent() { const { resetSession, phase } = useChatStore(); const searchParams = useSearchParams(); const router = useRouter(); @@ -90,3 +90,16 @@ export default function ChatPage() { ); } + +export default function ChatPage() { + return ( + + + + }> + + + ); +} + diff --git a/src/app/layout.tsx b/src/app/layout.tsx index c54daaa..fb73365 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -1,19 +1,24 @@ import type { Metadata } from "next"; -import { Inter, Merriweather } from "next/font/google"; +import localFont from "next/font/local"; import "./globals.css"; import { OfflineIndicator } from "../components/features/common"; import { InstallPrompt } from "../components/features/pwa/install-prompt"; import { ThemeProvider } from "@/components/theme-provider"; -const inter = Inter({ +const inter = localFont({ + src: "../../public/fonts/Inter-VariableFont.woff2", variable: "--font-inter", - subsets: ["latin"], + display: "swap", }); -const merriweather = Merriweather({ +const merriweather = localFont({ + src: [ + { path: "../../public/fonts/Merriweather-Light.woff2", weight: "300", style: "normal" }, + { path: "../../public/fonts/Merriweather-Regular.woff2", weight: "400", style: "normal" }, + { path: "../../public/fonts/Merriweather-Bold.woff2", weight: "700", style: "normal" }, + { path: "../../public/fonts/Merriweather-Black.woff2", weight: "900", style: "normal" }, + ], variable: "--font-merriweather", - subsets: ["latin"], - weight: ["300", "400", "700", "900"], display: "swap", });