mirror of
https://github.com/marcogll/TaxHacker_s23.git
synced 2026-01-13 13:25:18 +00:00
31 lines
1.1 KiB
TypeScript
31 lines
1.1 KiB
TypeScript
import SignupForm from "@/components/auth/signup-form"
|
|
import { Card, CardContent, CardTitle } from "@/components/ui/card"
|
|
import { ColoredText } from "@/components/ui/colored-text"
|
|
import config from "@/lib/config"
|
|
import Image from "next/image"
|
|
import { redirect } from "next/navigation"
|
|
|
|
export default async function LoginPage() {
|
|
if (config.selfHosted.isEnabled) {
|
|
redirect(config.selfHosted.redirectUrl)
|
|
}
|
|
|
|
return (
|
|
<Card className="w-full max-w-xl mx-auto p-8 flex flex-col items-center justify-center gap-4">
|
|
<Image src="/logo/512.png" alt="Logo" width={144} height={144} className="w-36 h-36" />
|
|
<CardTitle className="text-3xl font-bold ">
|
|
<ColoredText>TaxHacker: Cloud Edition</ColoredText>
|
|
</CardTitle>
|
|
<CardContent className="w-full">
|
|
{config.auth.disableSignup ? (
|
|
<div className="text-center text-md text-muted-foreground">
|
|
Creating new account is disabled for now. Please use the self-hosted version.
|
|
</div>
|
|
) : (
|
|
<SignupForm />
|
|
)}
|
|
</CardContent>
|
|
</Card>
|
|
)
|
|
}
|