Compare commits
2 Commits
bf7ecfd609
...
246cf46eaf
| Author | SHA1 | Date | |
|---|---|---|---|
| 246cf46eaf | |||
| 02a5058512 |
BIN
img/android-chrome-192x192.png
Normal file
|
After Width: | Height: | Size: 429 KiB |
BIN
img/android-chrome-512x512.png
Normal file
|
After Width: | Height: | Size: 429 KiB |
BIN
img/apple-touch-icon.png
Normal file
|
After Width: | Height: | Size: 429 KiB |
BIN
img/favicon-16x16.png
Normal file
|
After Width: | Height: | Size: 429 KiB |
BIN
img/favicon-32x32.png
Normal file
|
After Width: | Height: | Size: 429 KiB |
BIN
img/favicon.ico
Normal file
|
After Width: | Height: | Size: 429 KiB |
BIN
img/favicon.png
Normal file
|
After Width: | Height: | Size: 429 KiB |
@@ -5,6 +5,13 @@
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>영업 관리 시스템</title>
|
||||
|
||||
<!-- Favicon -->
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="img/apple-touch-icon.png">
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="img/favicon-32x32.png">
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="img/favicon-16x16.png">
|
||||
<link rel="shortcut icon" href="img/favicon.png">
|
||||
|
||||
<script src="https://cdn.tailwindcss.com"></script>
|
||||
<script src="https://unpkg.com/lucide@latest"></script>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Noto+Sans+KR:wght@300;400;500;600;700&display=swap" rel="stylesheet">
|
||||
|
||||
@@ -4,6 +4,12 @@
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>영업 관리 시스템</title>
|
||||
|
||||
<!-- Favicon -->
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="../img/apple-touch-icon.png">
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="../img/favicon-32x32.png">
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="../img/favicon-16x16.png">
|
||||
<link rel="shortcut icon" href="../img/favicon.png">
|
||||
|
||||
<!-- Fonts: Pretendard -->
|
||||
<link rel="stylesheet" as="style" crossorigin href="https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.8/dist/web/static/pretendard.css" />
|
||||
@@ -1436,15 +1442,14 @@
|
||||
const [error, setError] = useState('');
|
||||
const [loading, setLoading] = useState(false);
|
||||
|
||||
const handleLogin = async (e) => {
|
||||
e.preventDefault();
|
||||
const executeLogin = async (id, pw) => {
|
||||
setLoading(true);
|
||||
setError('');
|
||||
try {
|
||||
const res = await fetch('api/sales_members.php?action=login', {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify({ member_id: memberId, password })
|
||||
body: JSON.stringify({ member_id: id, password: pw })
|
||||
});
|
||||
const data = await res.json();
|
||||
if (data.success) {
|
||||
@@ -1463,6 +1468,17 @@
|
||||
}
|
||||
};
|
||||
|
||||
const handleLogin = (e) => {
|
||||
e.preventDefault();
|
||||
executeLogin(memberId, password);
|
||||
};
|
||||
|
||||
const handleAutoLogin = (id, pw) => {
|
||||
setMemberId(id);
|
||||
setPassword(pw);
|
||||
executeLogin(id, pw);
|
||||
};
|
||||
|
||||
return (
|
||||
<div className="min-h-[calc(100vh-64px)] flex items-center justify-center p-4">
|
||||
<div className="max-w-md w-full bg-white rounded-2xl shadow-xl border border-slate-100 p-8">
|
||||
@@ -1524,17 +1540,26 @@
|
||||
<div className="mt-10 pt-8 border-t border-slate-100">
|
||||
<h4 className="text-[10px] font-black text-slate-400 uppercase tracking-widest text-center mb-4">테스트용 계정 정보</h4>
|
||||
<div className="grid grid-cols-1 gap-2">
|
||||
<div className="flex items-center justify-between p-2 bg-slate-50 rounded-lg border border-slate-100">
|
||||
<span className="text-xs font-bold text-slate-500">운영자</span>
|
||||
<span className="text-xs font-mono text-slate-600">admin / admin</span>
|
||||
<div
|
||||
onClick={() => handleAutoLogin('admin', 'admin')}
|
||||
className="flex items-center justify-between p-3 bg-slate-50 rounded-xl border border-slate-100 cursor-pointer hover:bg-blue-50 hover:border-blue-200 transition-all group shadow-sm"
|
||||
>
|
||||
<span className="text-xs font-bold text-slate-500 group-hover:text-blue-600">운영자</span>
|
||||
<span className="text-xs font-mono text-slate-600 group-hover:text-blue-500">admin / admin</span>
|
||||
</div>
|
||||
<div className="flex items-center justify-between p-2 bg-slate-50 rounded-lg border border-slate-100">
|
||||
<span className="text-xs font-bold text-slate-500">영업관리</span>
|
||||
<span className="text-xs font-mono text-slate-600">sales / sales</span>
|
||||
<div
|
||||
onClick={() => handleAutoLogin('sales', 'sales')}
|
||||
className="flex items-center justify-between p-3 bg-slate-50 rounded-xl border border-slate-100 cursor-pointer hover:bg-blue-50 hover:border-blue-200 transition-all group shadow-sm"
|
||||
>
|
||||
<span className="text-xs font-bold text-slate-500 group-hover:text-blue-600">영업관리</span>
|
||||
<span className="text-xs font-mono text-slate-600 group-hover:text-blue-500">sales / sales</span>
|
||||
</div>
|
||||
<div className="flex items-center justify-between p-2 bg-slate-50 rounded-lg border border-slate-100">
|
||||
<span className="text-xs font-bold text-slate-500">매니저</span>
|
||||
<span className="text-xs font-mono text-slate-600">manager / manager</span>
|
||||
<div
|
||||
onClick={() => handleAutoLogin('manager', 'manager')}
|
||||
className="flex items-center justify-between p-3 bg-slate-50 rounded-xl border border-slate-100 cursor-pointer hover:bg-blue-50 hover:border-blue-200 transition-all group shadow-sm"
|
||||
>
|
||||
<span className="text-xs font-bold text-slate-500 group-hover:text-blue-600">매니저</span>
|
||||
<span className="text-xs font-mono text-slate-600 group-hover:text-blue-500">manager / manager</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||