diff --git a/app/(auth)/login/page.tsx b/app/(auth)/login/page.tsx
index 4b44103..ba987c2 100644
--- a/app/(auth)/login/page.tsx
+++ b/app/(auth)/login/page.tsx
@@ -38,7 +38,7 @@ export default function Page() {
setIsSuccessful(true);
router.refresh();
}
- }, [state.status, router]);
+ }, [state.status]);
const handleSubmit = (formData: FormData) => {
setEmail(formData.get('email') as string);
diff --git a/app/(auth)/register/page.tsx b/app/(auth)/register/page.tsx
index 224f0c0..649278e 100644
--- a/app/(auth)/register/page.tsx
+++ b/app/(auth)/register/page.tsx
@@ -39,7 +39,7 @@ export default function Page() {
setIsSuccessful(true);
router.refresh();
}
- }, [state, router]);
+ }, [state]);
const handleSubmit = (formData: FormData) => {
setEmail(formData.get('email') as string);
diff --git a/app/(chat)/layout.tsx b/app/(chat)/layout.tsx
index 82d5655..9310a10 100644
--- a/app/(chat)/layout.tsx
+++ b/app/(chat)/layout.tsx
@@ -2,7 +2,6 @@ import { cookies } from 'next/headers';
import { AppSidebar } from '@/components/app-sidebar';
import { SidebarInset, SidebarProvider } from '@/components/ui/sidebar';
-
import { auth } from '../(auth)/auth';
import Script from 'next/script';
diff --git a/app/globals.css b/app/globals.css
index 9de647f..3409b98 100644
--- a/app/globals.css
+++ b/app/globals.css
@@ -102,20 +102,6 @@
body {
@apply bg-background text-foreground;
}
-
- @font-face {
- font-family: "geist";
- font-style: normal;
- font-weight: 100 900;
- src: url(/fonts/geist.woff2) format("woff2");
- }
-
- @font-face {
- font-family: "geist-mono";
- font-style: normal;
- font-weight: 100 900;
- src: url(/fonts/geist-mono.woff2) format("woff2");
- }
}
.skeleton {
diff --git a/app/layout.tsx b/app/layout.tsx
index f9ad9db..8a6ad5d 100644
--- a/app/layout.tsx
+++ b/app/layout.tsx
@@ -1,6 +1,6 @@
-import type { Metadata } from 'next';
import { Toaster } from 'sonner';
-
+import type { Metadata } from 'next';
+import { Geist, Geist_Mono } from 'next/font/google';
import { ThemeProvider } from '@/components/theme-provider';
import './globals.css';
@@ -15,6 +15,18 @@ export const viewport = {
maximumScale: 1, // Disable auto-zoom on mobile Safari
};
+const geist = Geist({
+ subsets: ['latin'],
+ display: 'swap',
+ variable: '--font-geist',
+});
+
+const geistMono = Geist_Mono({
+ subsets: ['latin'],
+ display: 'swap',
+ variable: '--font-geist-mono',
+});
+
const LIGHT_THEME_COLOR = 'hsl(0 0% 100%)';
const DARK_THEME_COLOR = 'hsl(240deg 10% 3.92%)';
const THEME_COLOR_SCRIPT = `\
@@ -48,6 +60,7 @@ export default async function RootLayout({
// prop is necessary to avoid the React hydration mismatch warning.
// https://github.com/pacocoursey/next-themes?tab=readme-ov-file#with-app
suppressHydrationWarning
+ className={`${geist.variable} ${geistMono.variable}`}
>
-
+
= 10'}
cpu: [arm64]
os: [darwin]
- '@next/swc-darwin-x64@15.2.2-canary.1':
- resolution: {integrity: sha512-QmmTyHFiZyi+byFSQjIipABPrfbUOfwuy1lfjQ29+bK7Sjh5QO4MW8T2piLjdNZo39MDYU7PlFBd13zqzJo/ug==}
+ '@next/swc-darwin-x64@15.3.0-canary.12':
+ resolution: {integrity: sha512-7CZGD0cFzpRR7RZFvFK1QXhHnMx37InUAYzhuEEsoFrt/zFc1OX4g1vq85G5BA7aZfIpA49ko9nx0OSZ//KxyQ==}
engines: {node: '>= 10'}
cpu: [x64]
os: [darwin]
- '@next/swc-linux-arm64-gnu@15.2.2-canary.1':
- resolution: {integrity: sha512-XH2dvCzSmf/MgInhknYm+EdxHM0eT5WZV01qet2QSkM7YeUOKEclnqbRouyxU0sZaCm7ENnICxCiJoyatdC9yQ==}
+ '@next/swc-linux-arm64-gnu@15.3.0-canary.12':
+ resolution: {integrity: sha512-W/vkmNUDu4ooOGdQLwk3om91/kscDxvgr4CC+EIBXV0Pm/DmWiaxnGNj0NWOTiqSGnyxoBAYd1E9D8S/H4Ej3A==}
engines: {node: '>= 10'}
cpu: [arm64]
os: [linux]
- '@next/swc-linux-arm64-musl@15.2.2-canary.1':
- resolution: {integrity: sha512-txuUjgrv3OkqB26Ib3AfdQ+VibFfzM8P2lMBihonc7+eyy9WILCg8f/n0RZo7S0KcLMhH+XZzwTcwf/iiePRcQ==}
+ '@next/swc-linux-arm64-musl@15.3.0-canary.12':
+ resolution: {integrity: sha512-imtwzXvwF8UBfbaqUetcg+MquLEp3wnmFJ+o9GAS6f4a7O5hpAiVqNrQ5Wi6LTPfZ65s2zTWGAlr32c5lT27wA==}
engines: {node: '>= 10'}
cpu: [arm64]
os: [linux]
- '@next/swc-linux-x64-gnu@15.2.2-canary.1':
- resolution: {integrity: sha512-V3ynIx9cyaQyZOkTMB705cbVe6ZCY2vJNJuKHbj+PD8CP7zyqLjXPXvIEYRgSz91njvVRRDtPXzaBcUgjaC6GQ==}
+ '@next/swc-linux-x64-gnu@15.3.0-canary.12':
+ resolution: {integrity: sha512-VO0z5LIC9LOX4CofICwYIu0XuHmwTzQOqGEsMLKYJx8tSakvflIejRtj5oeaP0kxVNmDjNHHnH0kaobtPFTZaA==}
engines: {node: '>= 10'}
cpu: [x64]
os: [linux]
- '@next/swc-linux-x64-musl@15.2.2-canary.1':
- resolution: {integrity: sha512-iulaURm0+0fTv4OfE80t4BCC/w+x4M2ykeOEEF0CE9m0JZrHhVLLrzc4AmEka61TIh783MJbcLfzZlQ1IOUhIA==}
+ '@next/swc-linux-x64-musl@15.3.0-canary.12':
+ resolution: {integrity: sha512-VNVMd4yk5cR0okUrCTzCbrcBTy0REwB1Aknv/LhP+N4zNB5A9oY2ucfsTOAhDCUROpFiNRefqqvXw3E/avlxVA==}
engines: {node: '>= 10'}
cpu: [x64]
os: [linux]
- '@next/swc-win32-arm64-msvc@15.2.2-canary.1':
- resolution: {integrity: sha512-djFvbwf87HarIFzyMXkMbE0sZVBxKPSgyT0GxjusFhKCctL1bGw3/C9zlgAfbWKOeV9G+jkgvD9NHOdjZm8OKA==}
+ '@next/swc-win32-arm64-msvc@15.3.0-canary.12':
+ resolution: {integrity: sha512-+aNftBQhrt6xZ9aLQY4P+7HWQS8SRjJcQn9VwH/9MR1SWVpWycE+txCMYNPBSF6d2VyeZbjOLAiAKqqNa8EzDw==}
engines: {node: '>= 10'}
cpu: [arm64]
os: [win32]
- '@next/swc-win32-x64-msvc@15.2.2-canary.1':
- resolution: {integrity: sha512-nskCSe2WQi407nPOfVeNDlXfLFYG6T/u0hJhBVOFPOASQHb47iBbSVe/QKw/GCnjcexISKEZAkG/0koCcCEo4g==}
+ '@next/swc-win32-x64-msvc@15.3.0-canary.12':
+ resolution: {integrity: sha512-a7f03FmKuauMnX5RkiCeeMibC2NWWHxuPLka3kFgdaXLoM8sqYcrtuYkXUu9irDYmPdqGotwnh1o//ZPaIXZFg==}
engines: {node: '>= 10'}
cpu: [x64]
os: [win32]
@@ -2954,8 +2954,8 @@ packages:
react: ^16.8 || ^17 || ^18
react-dom: ^16.8 || ^17 || ^18
- next@15.2.2-canary.1:
- resolution: {integrity: sha512-XIZKbhXSrGkBdrGpdPjM7DhpKYkLJSl+IQHVgoOom0rWhSOKk9dH3aJ19XGyXSX1XFcMjirY4RzUgk1rEx0ukA==}
+ next@15.3.0-canary.12:
+ resolution: {integrity: sha512-vwJveu1nCjyrS0d3kJK+w7cYgMyZ6c+cXDVTWuIwaalsrDy0hBEF/Xhhw4o09PyWq+rUGKt9JMHZROhEqVgSvA==}
engines: {node: ^18.18.0 || ^19.8.0 || >= 20.0.0}
hasBin: true
peerDependencies:
@@ -4376,34 +4376,34 @@ snapshots:
dependencies:
'@types/pg': 8.11.6
- '@next/env@15.2.2-canary.1': {}
+ '@next/env@15.3.0-canary.12': {}
'@next/eslint-plugin-next@14.2.5':
dependencies:
glob: 10.3.10
- '@next/swc-darwin-arm64@15.2.2-canary.1':
+ '@next/swc-darwin-arm64@15.3.0-canary.12':
optional: true
- '@next/swc-darwin-x64@15.2.2-canary.1':
+ '@next/swc-darwin-x64@15.3.0-canary.12':
optional: true
- '@next/swc-linux-arm64-gnu@15.2.2-canary.1':
+ '@next/swc-linux-arm64-gnu@15.3.0-canary.12':
optional: true
- '@next/swc-linux-arm64-musl@15.2.2-canary.1':
+ '@next/swc-linux-arm64-musl@15.3.0-canary.12':
optional: true
- '@next/swc-linux-x64-gnu@15.2.2-canary.1':
+ '@next/swc-linux-x64-gnu@15.3.0-canary.12':
optional: true
- '@next/swc-linux-x64-musl@15.2.2-canary.1':
+ '@next/swc-linux-x64-musl@15.3.0-canary.12':
optional: true
- '@next/swc-win32-arm64-msvc@15.2.2-canary.1':
+ '@next/swc-win32-arm64-msvc@15.3.0-canary.12':
optional: true
- '@next/swc-win32-x64-msvc@15.2.2-canary.1':
+ '@next/swc-win32-x64-msvc@15.3.0-canary.12':
optional: true
'@nodelib/fs.scandir@2.1.5':
@@ -4925,11 +4925,11 @@ snapshots:
'@ungap/structured-clone@1.2.0': {}
- '@vercel/analytics@1.3.2(next@15.2.2-canary.1(@opentelemetry/api@1.9.0)(@playwright/test@1.50.1)(react-dom@19.0.0-rc-45804af1-20241021(react@19.0.0-rc-45804af1-20241021))(react@19.0.0-rc-45804af1-20241021))(react@19.0.0-rc-45804af1-20241021)':
+ '@vercel/analytics@1.3.2(next@15.3.0-canary.12(@opentelemetry/api@1.9.0)(@playwright/test@1.50.1)(react-dom@19.0.0-rc-45804af1-20241021(react@19.0.0-rc-45804af1-20241021))(react@19.0.0-rc-45804af1-20241021))(react@19.0.0-rc-45804af1-20241021)':
dependencies:
server-only: 0.0.1
optionalDependencies:
- next: 15.2.2-canary.1(@opentelemetry/api@1.9.0)(@playwright/test@1.50.1)(react-dom@19.0.0-rc-45804af1-20241021(react@19.0.0-rc-45804af1-20241021))(react@19.0.0-rc-45804af1-20241021)
+ next: 15.3.0-canary.12(@opentelemetry/api@1.9.0)(@playwright/test@1.50.1)(react-dom@19.0.0-rc-45804af1-20241021(react@19.0.0-rc-45804af1-20241021))(react@19.0.0-rc-45804af1-20241021)
react: 19.0.0-rc-45804af1-20241021
'@vercel/blob@0.24.1':
@@ -5800,9 +5800,9 @@ snapshots:
functions-have-names@1.2.3: {}
- geist@1.3.1(next@15.2.2-canary.1(@opentelemetry/api@1.9.0)(@playwright/test@1.50.1)(react-dom@19.0.0-rc-45804af1-20241021(react@19.0.0-rc-45804af1-20241021))(react@19.0.0-rc-45804af1-20241021)):
+ geist@1.3.1(next@15.3.0-canary.12(@opentelemetry/api@1.9.0)(@playwright/test@1.50.1)(react-dom@19.0.0-rc-45804af1-20241021(react@19.0.0-rc-45804af1-20241021))(react@19.0.0-rc-45804af1-20241021)):
dependencies:
- next: 15.2.2-canary.1(@opentelemetry/api@1.9.0)(@playwright/test@1.50.1)(react-dom@19.0.0-rc-45804af1-20241021(react@19.0.0-rc-45804af1-20241021))(react@19.0.0-rc-45804af1-20241021)
+ next: 15.3.0-canary.12(@opentelemetry/api@1.9.0)(@playwright/test@1.50.1)(react-dom@19.0.0-rc-45804af1-20241021(react@19.0.0-rc-45804af1-20241021))(react@19.0.0-rc-45804af1-20241021)
get-intrinsic@1.2.4:
dependencies:
@@ -6581,10 +6581,10 @@ snapshots:
natural-compare@1.4.0: {}
- next-auth@5.0.0-beta.25(next@15.2.2-canary.1(@opentelemetry/api@1.9.0)(@playwright/test@1.50.1)(react-dom@19.0.0-rc-45804af1-20241021(react@19.0.0-rc-45804af1-20241021))(react@19.0.0-rc-45804af1-20241021))(react@19.0.0-rc-45804af1-20241021):
+ next-auth@5.0.0-beta.25(next@15.3.0-canary.12(@opentelemetry/api@1.9.0)(@playwright/test@1.50.1)(react-dom@19.0.0-rc-45804af1-20241021(react@19.0.0-rc-45804af1-20241021))(react@19.0.0-rc-45804af1-20241021))(react@19.0.0-rc-45804af1-20241021):
dependencies:
'@auth/core': 0.37.2
- next: 15.2.2-canary.1(@opentelemetry/api@1.9.0)(@playwright/test@1.50.1)(react-dom@19.0.0-rc-45804af1-20241021(react@19.0.0-rc-45804af1-20241021))(react@19.0.0-rc-45804af1-20241021)
+ next: 15.3.0-canary.12(@opentelemetry/api@1.9.0)(@playwright/test@1.50.1)(react-dom@19.0.0-rc-45804af1-20241021(react@19.0.0-rc-45804af1-20241021))(react@19.0.0-rc-45804af1-20241021)
react: 19.0.0-rc-45804af1-20241021
next-themes@0.3.0(react-dom@19.0.0-rc-45804af1-20241021(react@19.0.0-rc-45804af1-20241021))(react@19.0.0-rc-45804af1-20241021):
@@ -6592,9 +6592,9 @@ snapshots:
react: 19.0.0-rc-45804af1-20241021
react-dom: 19.0.0-rc-45804af1-20241021(react@19.0.0-rc-45804af1-20241021)
- next@15.2.2-canary.1(@opentelemetry/api@1.9.0)(@playwright/test@1.50.1)(react-dom@19.0.0-rc-45804af1-20241021(react@19.0.0-rc-45804af1-20241021))(react@19.0.0-rc-45804af1-20241021):
+ next@15.3.0-canary.12(@opentelemetry/api@1.9.0)(@playwright/test@1.50.1)(react-dom@19.0.0-rc-45804af1-20241021(react@19.0.0-rc-45804af1-20241021))(react@19.0.0-rc-45804af1-20241021):
dependencies:
- '@next/env': 15.2.2-canary.1
+ '@next/env': 15.3.0-canary.12
'@swc/counter': 0.1.3
'@swc/helpers': 0.5.15
busboy: 1.6.0
@@ -6604,14 +6604,14 @@ snapshots:
react-dom: 19.0.0-rc-45804af1-20241021(react@19.0.0-rc-45804af1-20241021)
styled-jsx: 5.1.6(react@19.0.0-rc-45804af1-20241021)
optionalDependencies:
- '@next/swc-darwin-arm64': 15.2.2-canary.1
- '@next/swc-darwin-x64': 15.2.2-canary.1
- '@next/swc-linux-arm64-gnu': 15.2.2-canary.1
- '@next/swc-linux-arm64-musl': 15.2.2-canary.1
- '@next/swc-linux-x64-gnu': 15.2.2-canary.1
- '@next/swc-linux-x64-musl': 15.2.2-canary.1
- '@next/swc-win32-arm64-msvc': 15.2.2-canary.1
- '@next/swc-win32-x64-msvc': 15.2.2-canary.1
+ '@next/swc-darwin-arm64': 15.3.0-canary.12
+ '@next/swc-darwin-x64': 15.3.0-canary.12
+ '@next/swc-linux-arm64-gnu': 15.3.0-canary.12
+ '@next/swc-linux-arm64-musl': 15.3.0-canary.12
+ '@next/swc-linux-x64-gnu': 15.3.0-canary.12
+ '@next/swc-linux-x64-musl': 15.3.0-canary.12
+ '@next/swc-win32-arm64-msvc': 15.3.0-canary.12
+ '@next/swc-win32-x64-msvc': 15.3.0-canary.12
'@opentelemetry/api': 1.9.0
'@playwright/test': 1.50.1
sharp: 0.33.5
diff --git a/public/fonts/geist-mono.woff2 b/public/fonts/geist-mono.woff2
deleted file mode 100644
index 8172029..0000000
Binary files a/public/fonts/geist-mono.woff2 and /dev/null differ
diff --git a/public/fonts/geist.woff2 b/public/fonts/geist.woff2
deleted file mode 100644
index 9f52b47..0000000
Binary files a/public/fonts/geist.woff2 and /dev/null differ
diff --git a/tailwind.config.ts b/tailwind.config.ts
index e5d6e66..92574c7 100644
--- a/tailwind.config.ts
+++ b/tailwind.config.ts
@@ -8,11 +8,11 @@ const config: Config = {
'./app/**/*.{js,ts,jsx,tsx,mdx}',
],
theme: {
- fontFamily: {
- sans: ['geist'],
- mono: ['geist-mono'],
- },
extend: {
+ fontFamily: {
+ sans: ['var(--font-geist)'],
+ mono: ['var(--font-geist-mono)'],
+ },
screens: {
'toast-mobile': '600px',
},