pharmacy-pos-qr-system/backend/templates/my_page_login.html
시골약사 3889e2354f feat: Flask 웹 서버 및 마일리지 적립 기능 구현
- 간편 적립: 전화번호 + 이름만으로 QR 적립
- 자동 회원 가입: 신규 사용자 자동 등록
- 마이페이지: 포인트 조회 및 적립 내역 확인
- 관리자 페이지: 전체 사용자/적립 현황 대시보드
- 거래 세부 조회 API: MSSQL 연동으로 판매 상품 상세 확인
- 모던 UI: Noto Sans KR 폰트, 반응형 디자인
- 포트: 7001 (리버스 프록시: https://mile.0bin.in)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-23 16:36:14 +09:00

184 lines
5.2 KiB
HTML

<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>마이페이지 - 청춘약국</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700&display=swap" rel="stylesheet">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
background: #f5f7fa;
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
padding: 16px;
-webkit-font-smoothing: antialiased;
}
.login-container {
background: #ffffff;
border-radius: 24px;
padding: 48px 32px;
max-width: 420px;
width: 100%;
box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}
.header {
text-align: center;
margin-bottom: 40px;
}
.logo {
width: 64px;
height: 64px;
margin: 0 auto 20px auto;
background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
border-radius: 20px;
display: flex;
align-items: center;
justify-content: center;
font-size: 32px;
}
.header-title {
color: #212529;
font-size: 24px;
font-weight: 700;
margin-bottom: 8px;
letter-spacing: -0.5px;
}
.header-subtitle {
color: #868e96;
font-size: 15px;
font-weight: 500;
letter-spacing: -0.2px;
}
.form-group {
margin-bottom: 24px;
}
.form-group label {
display: block;
color: #495057;
font-size: 14px;
font-weight: 600;
margin-bottom: 10px;
letter-spacing: -0.2px;
}
.form-group input {
width: 100%;
padding: 16px 18px;
border: 2px solid #e9ecef;
border-radius: 14px;
font-size: 16px;
font-weight: 500;
transition: all 0.2s ease;
letter-spacing: -0.3px;
background: #f8f9fa;
}
.form-group input:focus {
outline: none;
border-color: #6366f1;
background: #ffffff;
box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.08);
}
.form-group input::placeholder {
color: #adb5bd;
font-weight: 400;
}
.btn-submit {
width: 100%;
padding: 18px;
background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
color: #ffffff;
border: none;
border-radius: 14px;
font-size: 17px;
font-weight: 700;
cursor: pointer;
letter-spacing: -0.3px;
transition: all 0.2s ease;
box-shadow: 0 4px 16px rgba(99, 102, 241, 0.24);
}
.btn-submit:active {
transform: scale(0.98);
}
.btn-back {
display: block;
text-align: center;
margin-top: 20px;
color: #6366f1;
text-decoration: none;
font-size: 15px;
font-weight: 500;
letter-spacing: -0.2px;
}
.btn-back:active {
color: #8b5cf6;
}
</style>
</head>
<body>
<div class="login-container">
<div class="header">
<div class="logo">📱</div>
<div class="header-title">마이페이지</div>
<div class="header-subtitle">전화번호로 포인트 조회</div>
</div>
<form method="GET" action="/my-page">
<div class="form-group">
<label for="phone">전화번호</label>
<input type="tel" id="phone" name="phone"
placeholder="010-0000-0000"
pattern="[0-9-]*"
autocomplete="tel"
required>
</div>
<button type="submit" class="btn-submit">
조회하기
</button>
</form>
<a href="/" class="btn-back">← 홈으로</a>
</div>
<script>
// 전화번호 자동 하이픈
const phoneInput = document.getElementById('phone');
phoneInput.addEventListener('input', function(e) {
let value = e.target.value.replace(/[^0-9]/g, '');
if (value.length <= 3) {
e.target.value = value;
} else if (value.length <= 7) {
e.target.value = value.slice(0, 3) + '-' + value.slice(3);
} else {
e.target.value = value.slice(0, 3) + '-' + value.slice(3, 7) + '-' + value.slice(7, 11);
}
});
</script>
</body>
</html>