AutoPercenty3/test/ext/wrmc_ext/zzim.html

288 lines
6.1 KiB
HTML

<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>찜관리</title>
<style>
body {
font-family: 'Segoe UI', sans-serif;
margin: 0;
padding: 20px;
background: #f8f9fa;
}
.stats-container {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
margin-bottom: 30px;
}
.stat-card {
background: white;
padding: 20px;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
text-align: center;
}
.stat-title {
font-size: 14px;
color: #666;
margin-bottom: 10px;
}
.stat-value {
font-size: 24px;
font-weight: bold;
color: #2c3e50;
}
.stat-limit {
font-size: 12px;
color: #888;
margin-top: 5px;
}
.section {
background: white;
padding: 20px;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
margin-bottom: 20px;
}
.section-title {
font-size: 18px;
font-weight: bold;
color: #2c3e50;
margin-bottom: 15px;
display: flex;
align-items: center;
gap: 10px;
}
.market-form {
display: grid;
grid-template-columns: auto 1fr auto;
gap: 10px;
align-items: center;
margin-bottom: 15px;
}
.market-form input[type="text"] {
padding: 8px 12px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 14px;
}
.market-form input[type="text"]:focus {
outline: none;
border-color: #3498db;
}
.btn {
padding: 8px 16px;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 14px;
font-weight: bold;
transition: background-color 0.2s;
}
.btn-primary {
background: #3498db;
color: white;
}
.btn-primary:hover {
background: #2980b9;
}
.btn-success {
background: #27ae60;
color: white;
}
.btn-success:hover {
background: #219a52;
}
.btn-warning {
background: #f39c12;
color: white;
}
.btn-warning:hover {
background: #e67e22;
}
.btn-danger {
background: #e74c3c;
color: white;
}
.btn-danger:hover {
background: #c0392b;
}
.btn-large {
padding: 15px 30px;
font-size: 16px;
margin: 10px;
}
.market-list {
margin-top: 20px;
}
.market-item {
border: 1px solid #ddd;
border-radius: 6px;
padding: 15px;
margin-bottom: 10px;
background: #f9f9f9;
}
.market-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 10px;
}
.market-info {
flex: 1;
}
.market-name {
font-weight: bold;
color: #2c3e50;
margin-bottom: 5px;
}
.market-nickname {
color: #666;
font-size: 12px;
margin-bottom: 5px;
}
.market-url {
color: #888;
font-size: 12px;
word-break: break-all;
}
.market-actions {
display: flex;
gap: 5px;
}
.action-buttons {
display: flex;
gap: 15px;
justify-content: center;
margin-top: 20px;
}
.loading {
text-align: center;
color: #3498db;
font-size: 14px;
margin: 20px 0;
}
.error {
color: #e74c3c;
font-size: 14px;
margin: 10px 0;
}
.success {
color: #27ae60;
font-size: 14px;
margin: 10px 0;
}
.url-prefix {
background: #f8f9fa;
padding: 8px 12px;
border: 1px solid #ddd;
border-right: none;
border-radius: 4px 0 0 4px;
font-size: 14px;
color: #666;
white-space: nowrap;
}
.url-input {
border-radius: 0 4px 4px 0 !important;
border-left: none !important;
}
</style>
</head>
<body>
<div class="stats-container">
<div class="stat-card">
<div class="stat-title">오늘 찜한 갯수</div>
<div class="stat-value" id="today-zzim-count">0</div>
<div class="stat-limit">/ <span id="today-zzim-limit">100</span></div>
</div>
<div class="stat-card">
<div class="stat-title">찜 마일리지</div>
<div class="stat-value" id="zzim-mileage">0</div>
<div class="stat-limit">/ <span id="zzim-mileage-limit">1000</span></div>
</div>
</div>
<div class="section">
<div class="section-title">
🏪 내 마켓 등록
</div>
<div class="market-form">
<span class="url-prefix">https://smartstore.naver.com/</span>
<input type="text" id="market-url" placeholder="마켓 주소 (예: abcd1234)" class="url-input">
<button class="btn btn-primary" id="add-market-btn">등록</button>
</div>
<div class="market-form">
<label>마켓 이름:</label>
<input type="text" id="market-name" placeholder="마켓 이름">
<span></span>
</div>
<div class="market-form">
<label>마켓 별명:</label>
<input type="text" id="market-nickname" placeholder="마켓 별명">
<span></span>
</div>
<div class="market-list">
<h4>내 마켓 목록</h4>
<div id="my-markets-list">
<!-- 마켓 목록이 여기에 표시됩니다 -->
</div>
</div>
</div>
<div class="section">
<div class="section-title">
🎯 찜하기 작업
</div>
<div class="action-buttons">
<button class="btn btn-success btn-large" id="my-market-zzim-btn">
💝 내 마켓 찜하기
</button>
<button class="btn btn-warning btn-large" id="mutual-zzim-btn">
🤝 품앗이 찜하기
</button>
</div>
<div id="zzim-status" class="loading" style="display: none;"></div>
<div id="zzim-error" class="error" style="display: none;"></div>
<div id="zzim-success" class="success" style="display: none;"></div>
</div>
<script src="zzim.js"></script>
</body>
</html>