mirror of
https://github.com/bartvdbraak/omnidash.git
synced 2025-04-27 15:31:21 +00:00
31 lines
800 B
TypeScript
31 lines
800 B
TypeScript
import { Particles } from "@/components/landing/particles";
|
|
import {
|
|
ClerkProvider,
|
|
SignIn,
|
|
SignedIn,
|
|
SignedOut,
|
|
} from "@clerk/nextjs/app-beta";
|
|
|
|
export default function AppLayout({ children }: { children: React.ReactNode }) {
|
|
return (
|
|
<ClerkProvider>
|
|
<SignedIn>{children}</SignedIn>
|
|
<SignedOut>
|
|
<div className="flex items-center justify-center w-screen h-screen">
|
|
<Particles className="absolute inset-0 -z-10 " />
|
|
|
|
<SignIn
|
|
appearance={{
|
|
variables: {
|
|
colorPrimary: "#161616",
|
|
colorText: "#161616",
|
|
},
|
|
}}
|
|
afterSignInUrl={"/overview"}
|
|
afterSignUpUrl={"/overview"}
|
|
/>
|
|
</div>
|
|
</SignedOut>
|
|
</ClerkProvider>
|
|
);
|
|
}
|