/** * LoginPage — 계약 병원 전용 로그인 (스캐폴딩). * * 현재 상태: * - UI·라우트 스캐폴딩만 제공합니다. 실제 Supabase Auth 연동은 후속 작업입니다. * - 제출 시 안내 메시지만 표시하고, 리드는 문의하기로 유도합니다. * * 향후 작업: * - Supabase `signInWithPassword` 연동 * - 세션 훅 (`useSession`) + ProtectedRoute 적용 * - 로그인 후 대시보드 리다이렉트 */ import { useState, type FormEvent } from 'react'; import { Link } from 'react-router'; import { ArrowRight } from 'lucide-react'; import { CONTACT_EMAIL } from '../lib/contact'; export default function LoginPage() { const [email, setEmail] = useState(''); const [password, setPassword] = useState(''); const [notice, setNotice] = useState(null); const handleSubmit = (e: FormEvent) => { e.preventDefault(); setNotice( `계약을 희망하시는 경우 ${CONTACT_EMAIL} 로 문의 주세요.`, ); }; return (
{/* 헤드라인 */}
INFINITH

계약 병원 전용 로그인

계약 완료 시 별도 제공되는 자격 정보로 로그인하실 수 있습니다.

{/* 준비중 배너 */}

신규 도입 문의는 하단 "문의하기"를 이용해 주세요.

{/* 폼 카드 */}
setEmail(e.target.value)} placeholder="clinic@example.com" className="w-full px-4 py-3 text-sm bg-slate-50 border border-slate-200 rounded-xl focus:outline-none focus:ring-2 focus:ring-accent/20 focus:border-accent/40 text-primary-900 placeholder:text-slate-400 transition-all" autoComplete="email" />
setPassword(e.target.value)} placeholder="••••••••" className="w-full px-4 py-3 text-sm bg-slate-50 border border-slate-200 rounded-xl focus:outline-none focus:ring-2 focus:ring-accent/20 focus:border-accent/40 text-primary-900 placeholder:text-slate-400 transition-all" autoComplete="current-password" />
{notice && (
{notice}
)}
); }