mirror of
https://github.com/linsa-io/linsa.git
synced 2026-04-26 10:18:34 +02:00
Move to TanStack Start from Next.js (#184)
This commit is contained in:
21
web/app/routes/_layout/(auth)/_auth.sign-in.$.tsx
Normal file
21
web/app/routes/_layout/(auth)/_auth.sign-in.$.tsx
Normal 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>
|
||||
)
|
||||
}
|
||||
14
web/app/routes/_layout/(auth)/_auth.sign-up.$.tsx
Normal file
14
web/app/routes/_layout/(auth)/_auth.sign-up.$.tsx
Normal 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>
|
||||
)
|
||||
}
|
||||
9
web/app/routes/_layout/(auth)/_auth.tsx
Normal file
9
web/app/routes/_layout/(auth)/_auth.tsx
Normal 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>
|
||||
),
|
||||
})
|
||||
Reference in New Issue
Block a user