feat: update dependencies and refactor layout and homepage components

- Added new dependencies: @daveyplate/better-auth-ui, next-themes, and sonner.
- Refactored layout component to use Providers and Toaster for better state management and notifications.
- Updated homepage to utilize authClient for session management and improved user experience with navigation links for sign-in and sign-up.
This commit is contained in:
Matthias
2026-03-25 11:42:02 +01:00
parent f8f86eb990
commit 66c4455033
9 changed files with 1368 additions and 41 deletions

22
app/auth/[path]/page.tsx Normal file
View File

@@ -0,0 +1,22 @@
import { AuthView } from "@daveyplate/better-auth-ui";
import { authViewPaths } from "@daveyplate/better-auth-ui/server";
export const dynamicParams = false;
export function generateStaticParams() {
return Object.values(authViewPaths).map((path) => ({ path }));
}
export default async function AuthPage({
params,
}: {
params: Promise<{ path: string }>;
}) {
const { path } = await params;
return (
<main className="flex min-h-screen flex-col items-center justify-center p-4">
<AuthView path={path} />
</main>
);
}