Files
cclabel-auth-server/templates/login.html
시골약사 06d0098a43 초기 커밋: 인증 서버 분리
0bin-label-app 프로젝트의 auth 폴더에서 별도 리포지토리로 분리.

Flask 기반 로그인 인증 서버:
- POST /api/login: 클라이언트 로그인 API
- GET /api/health: 서버 상태 확인
- /admin: 관리자 웹 페이지
- SQLite 기반 사용자 및 로그인 기록 저장

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-07 08:57:55 +09:00

92 lines
2.9 KiB
HTML

<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>0bin Label App - Admin 로그인</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
<style>
body {
background: linear-gradient(135deg, #4CAF50 0%, #2196F3 100%);
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
}
.login-card {
max-width: 400px;
width: 100%;
background: white;
border-radius: 15px;
box-shadow: 0 10px 40px rgba(0,0,0,0.2);
overflow: hidden;
}
.login-header {
background: linear-gradient(135deg, #4CAF50 0%, #2196F3 100%);
color: white;
padding: 30px 20px;
text-align: center;
}
.login-header h1 {
font-size: 28px;
font-weight: bold;
margin: 0;
}
.login-header p {
margin: 10px 0 0 0;
opacity: 0.95;
}
.login-body {
padding: 30px;
}
.btn-login {
background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
border: none;
color: white;
padding: 12px;
font-weight: bold;
}
.btn-login:hover {
background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
color: white;
}
</style>
</head>
<body>
<div class="login-card">
<div class="login-header">
<h1>청춘라벨</h1>
<p>관리자 로그인</p>
</div>
<div class="login-body">
{% if error %}
<div class="alert alert-danger" role="alert">
{{ error }}
</div>
{% endif %}
<form method="POST" action="{{ url_for('admin_login_post') }}">
<div class="mb-3">
<label for="username" class="form-label">아이디</label>
<input type="text" class="form-control" id="username" name="username" required autofocus>
</div>
<div class="mb-3">
<label for="password" class="form-label">비밀번호</label>
<input type="password" class="form-control" id="password" name="password" required>
</div>
<div class="d-grid">
<button type="submit" class="btn btn-login">로그인</button>
</div>
</form>
<hr class="my-4">
<p class="text-center text-muted small mb-0">
© 2026 0bin Label App v1.0
</p>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>