From 1c5dd9c10ce4264ab157f4a2479e2055a3487de4 Mon Sep 17 00:00:00 2001 From: joonhoekim <26rote@gmail.com> Date: Mon, 3 Nov 2025 10:39:51 +0900 Subject: (김준회) 벤더 로그인화면 영상 더 크게 변경 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/login/login-form.tsx | 187 ++++++++++++++++------------------------ 1 file changed, 75 insertions(+), 112 deletions(-) (limited to 'components/login') diff --git a/components/login/login-form.tsx b/components/login/login-form.tsx index 51d54531..fae5b8c9 100644 --- a/components/login/login-form.tsx +++ b/components/login/login-form.tsx @@ -4,7 +4,7 @@ import { useState, useEffect } from "react"; import { cn } from "@/lib/utils" import { Button } from "@/components/ui/button" import { Input } from "@/components/ui/input" -import { Ship, InfoIcon, GlobeIcon, ChevronDownIcon, ArrowLeft } from "lucide-react"; +import { InfoIcon, GlobeIcon, ChevronDownIcon, ArrowLeft } from "lucide-react"; import { useToast } from "@/hooks/use-toast"; import { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuRadioGroup, DropdownMenuRadioItem } from "@/components/ui/dropdown-menu" import { useTranslation } from '@/i18n/client' @@ -21,6 +21,7 @@ import { import { requestPasswordResetAction } from "@/lib/users/auth/partners-auth"; import { checkEmailAndStartAuth, resendEmailOtp } from "@/lib/users/auth/email-auth"; import Loading from "../common/loading/loading"; +import { VideoBackground } from "@/components/common/video-background"; // 배경 영상 목록 const BACKGROUND_VIDEOS = [ @@ -44,9 +45,6 @@ export function LoginForm() { const { toast } = useToast(); const { data: session, status } = useSession(); - // 배경 영상 상태 - const [currentVideoIndex, setCurrentVideoIndex] = useState(0); - // 상태 관리 const [isFirstAuthLoading, setIsFirstAuthLoading] = useState(false); const [showForgotPassword, setShowForgotPassword] = useState(false); @@ -83,14 +81,11 @@ export function LoginForm() { // 호스트명 확인 상태 추가 const [isDataRoomHost, setIsDataRoomHost] = useState(false); - // 컴포넌트 마운트 시 호스트명 확인 및 랜덤 비디오 선택 + // 컴포넌트 마운트 시 호스트명 확인 useEffect(() => { if (typeof window !== 'undefined') { const hostname = window.location.hostname; setIsDataRoomHost(hostname.includes('shidataroom')); - - // 랜덤한 비디오 인덱스 선택 - setCurrentVideoIndex(Math.floor(Math.random() * BACKGROUND_VIDEOS.length)); } }, []); @@ -168,11 +163,6 @@ export function LoginForm() { router.push(`/${lng}/partners/repository`); }; - // 비디오 종료 시 다음 비디오로 전환 - const handleVideoEnd = () => { - setCurrentVideoIndex((prevIndex) => (prevIndex + 1) % BACKGROUND_VIDEOS.length); - }; - // MFA 카운트다운 효과 useEffect(() => { if (mfaCountdown > 0) { @@ -576,47 +566,59 @@ export function LoginForm() { } return ( -
{isDataRoomHost?t('loginDescriptionDataRoom') :t('loginDescription')}
> ) : ( <> -
@@ -674,7 +676,7 @@ export function LoginForm() {
variant="ghost"
size="sm"
onClick={handleBackToLogin}
- className="text-blue-600 hover:text-blue-800"
+ className="text-blue-600 hover:text-blue-800 dark:text-blue-400 dark:hover:text-blue-300"
>
{t('loginEmail')}
-{emailInput}
+{t('loginEmail')}
+{emailInput}
+
{mfaType === 'email' ? t('didNotReceiveEmail') : t('didNotReceiveCode')} @@ -797,7 +799,7 @@ export function LoginForm() {