Move to TanStack Start from Next.js (#184)

This commit is contained in:
Aslam
2024-10-07 16:44:17 +07:00
committed by GitHub
parent 3a89a1c07f
commit 950ebc3dad
514 changed files with 20021 additions and 15508 deletions

View File

@@ -0,0 +1,21 @@
import { SignIn } from "@clerk/tanstack-start"
import { createFileRoute } from "@tanstack/react-router"
export const Route = createFileRoute("/_layout/(auth)/_auth/sign-in/$")({
component: () => <SignInComponent />,
})
function SignInComponent() {
return (
<div className="flex justify-center py-24">
<SignIn
appearance={{
elements: {
formButtonPrimary: "bg-primary text-primary-foreground",
card: "shadow-none",
},
}}
/>
</div>
)
}

View File

@@ -0,0 +1,14 @@
import { SignUp } from "@clerk/tanstack-start"
import { createFileRoute } from "@tanstack/react-router"
export const Route = createFileRoute("/_layout/(auth)/_auth/sign-up/$")({
component: () => <SignUpComponent />,
})
function SignUpComponent() {
return (
<div className="flex justify-center py-24">
<SignUp />
</div>
)
}

View File

@@ -0,0 +1,9 @@
import { createFileRoute, Outlet } from "@tanstack/react-router"
export const Route = createFileRoute("/_layout/(auth)/_auth")({
component: () => (
<main className="h-full">
<Outlet />
</main>
),
})