@@ -4,14 +4,13 @@ import { useEffect, useState } from "react";
|
||||
import { useMutation } from "@tanstack/react-query";
|
||||
import { auth } from "@/lib/api";
|
||||
import { Button, Card } from "@/components/ui";
|
||||
import { Logo } from "@/components/Logo";
|
||||
|
||||
export default function LoginPage() {
|
||||
const [email, setEmail] = useState("");
|
||||
const [password, setPassword] = useState("");
|
||||
const [orgName, setOrgName] = useState("");
|
||||
|
||||
|
||||
|
||||
|
||||
useEffect(() => {
|
||||
(async () => {
|
||||
try {
|
||||
@@ -20,6 +19,7 @@ export default function LoginPage() {
|
||||
window.location.href = "/setup";
|
||||
return;
|
||||
}
|
||||
if (s.org_name) setOrgName(s.org_name);
|
||||
} catch {
|
||||
|
||||
}
|
||||
@@ -48,12 +48,10 @@ export default function LoginPage() {
|
||||
<div className="flex min-h-screen items-center justify-center bg-background p-4">
|
||||
<div className="w-full max-w-sm">
|
||||
<div className="mb-8 flex flex-col items-center gap-3">
|
||||
<div className="flex h-11 w-11 items-center justify-center rounded-xl bg-accent">
|
||||
<svg className="h-6 w-6 text-white" fill="none" viewBox="0 0 24 24" stroke="currentColor" strokeWidth={2}>
|
||||
<path strokeLinecap="round" strokeLinejoin="round" d="M15.75 5.25a3 3 0 013 3m3 0a6 6 0 01-7.029 5.912c-.563-.097-1.159.026-1.563.43L10.5 17.25H8.25v2.25H6v2.25H2.25v-2.818c0-.597.237-1.17.659-1.591l6.499-6.499c.404-.404.527-1 .43-1.563A6 6 0 1121.75 8.25z" />
|
||||
</svg>
|
||||
</div>
|
||||
<h1 className="text-xl font-semibold text-text-primary">Sign in to Vantage</h1>
|
||||
<Logo className="h-11 w-auto text-text-primary" />
|
||||
<h1 className="text-xl font-semibold text-text-primary">
|
||||
{orgName ? `Sign in to ${orgName}` : "Sign in to Vantage"}
|
||||
</h1>
|
||||
</div>
|
||||
|
||||
<Card>
|
||||
|
||||
Reference in New Issue
Block a user