feat(login): 로그인 화면에서 홈(랜딩)으로 이동 — 좌측 로고 + 우측 상단 홈으로 버튼
Deploy momo-erp / deploy (push) Successful in 1m57s
Deploy momo-erp / deploy (push) Successful in 1m57s
- 좌측 상단 MOMO DISTRIBUTION 로고를 <Link href="/"> 로 감싸 클릭 시 랜딩 이동 - 우측 폼 패널 상단에 [홈으로] 고정 버튼 추가 (모바일에서도 노출) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
import { useState, useEffect, FormEvent } from "react";
|
||||
import Link from "next/link";
|
||||
import { useRouter } from "next/navigation";
|
||||
import { User, Lock, Eye, EyeOff, ArrowRight, Phone, Mail, MapPin } from "lucide-react";
|
||||
import { User, Lock, Eye, EyeOff, ArrowRight, Phone, Mail, MapPin, Home } from "lucide-react";
|
||||
import Swal from "sweetalert2";
|
||||
|
||||
const SAVE_KEY = "momo_saved_credentials"; // localStorage 키
|
||||
@@ -100,12 +100,16 @@ export default function LoginPage() {
|
||||
</div>
|
||||
|
||||
<div className="relative z-10">
|
||||
<div className="flex items-center gap-3">
|
||||
<Link
|
||||
href="/"
|
||||
className="inline-flex items-center gap-3 hover:opacity-80 transition-opacity"
|
||||
title="홈으로"
|
||||
>
|
||||
<img src="/momo-icon.svg" alt="MOMO" className="w-11 h-11" />
|
||||
<span className="text-white/95 text-sm font-semibold tracking-widest">
|
||||
MOMO DISTRIBUTION
|
||||
</span>
|
||||
</div>
|
||||
</Link>
|
||||
</div>
|
||||
|
||||
<div className="relative z-10 flex-1 flex flex-col justify-center py-12 lg:py-0">
|
||||
@@ -136,7 +140,15 @@ export default function LoginPage() {
|
||||
</div>
|
||||
|
||||
{/* 우측: 로그인 폼 */}
|
||||
<div className="lg:flex-1 flex items-center justify-center px-6 py-16 lg:py-0 bg-slate-50">
|
||||
<div className="lg:flex-1 flex items-center justify-center px-6 py-16 lg:py-0 bg-slate-50 relative">
|
||||
{/* 홈으로 — 우측 상단 고정 */}
|
||||
<Link
|
||||
href="/"
|
||||
className="absolute top-5 right-5 inline-flex items-center gap-1.5 px-3 h-9 rounded-lg bg-white border border-slate-200 text-slate-600 text-sm font-semibold hover:text-emerald-700 hover:border-emerald-300 hover:bg-emerald-50 transition shadow-sm"
|
||||
>
|
||||
<Home size={14} /> 홈으로
|
||||
</Link>
|
||||
|
||||
<div className="w-full max-w-md">
|
||||
<div className="mb-10">
|
||||
<div className="inline-flex items-center gap-2 text-emerald-700 text-xs font-bold tracking-widest mb-3">
|
||||
|
||||
Reference in New Issue
Block a user