582 lines
15 KiB
HTML
582 lines
15 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>
|
|
* { box-sizing: border-box; }
|
|
|
|
body {
|
|
margin: 0;
|
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
min-height: 100vh;
|
|
padding: 20px;
|
|
}
|
|
|
|
.container {
|
|
max-width: 800px;
|
|
margin: 0 auto;
|
|
background: white;
|
|
border-radius: 12px;
|
|
box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.header {
|
|
background: linear-gradient(135deg, #9b59b6, #8e44ad);
|
|
color: white;
|
|
padding: 30px;
|
|
text-align: center;
|
|
}
|
|
|
|
.header h1 {
|
|
margin: 0;
|
|
font-size: 28px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.header p {
|
|
margin: 10px 0 0 0;
|
|
opacity: 0.9;
|
|
font-size: 16px;
|
|
}
|
|
|
|
/* 탭 스타일 */
|
|
.tab-container {
|
|
display: flex;
|
|
background: #f8f9fa;
|
|
border-bottom: 2px solid #e9ecef;
|
|
}
|
|
|
|
.tab-button {
|
|
flex: 1;
|
|
padding: 15px 20px;
|
|
background: none;
|
|
border: none;
|
|
cursor: pointer;
|
|
font-size: 16px;
|
|
font-weight: 500;
|
|
color: #6c757d;
|
|
transition: all 0.3s ease;
|
|
border-bottom: 3px solid transparent;
|
|
}
|
|
|
|
.tab-button:hover {
|
|
background: #e9ecef;
|
|
color: #495057;
|
|
}
|
|
|
|
.tab-button.active {
|
|
color: #9b59b6;
|
|
border-bottom-color: #9b59b6;
|
|
background: #fff;
|
|
}
|
|
|
|
.tab-content {
|
|
display: none;
|
|
padding: 30px;
|
|
}
|
|
|
|
.tab-content.active {
|
|
display: block;
|
|
}
|
|
|
|
.content {
|
|
padding: 0;
|
|
}
|
|
|
|
.membership-info {
|
|
background: linear-gradient(135deg, #e3f2fd, #bbdefb);
|
|
border: 1px solid #90caf9;
|
|
border-radius: 8px;
|
|
padding: 20px;
|
|
margin-bottom: 30px;
|
|
text-align: center;
|
|
}
|
|
|
|
.membership-title {
|
|
font-size: 18px;
|
|
font-weight: bold;
|
|
color: #1976d2;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.membership-engines {
|
|
color: #424242;
|
|
line-height: 1.6;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.section {
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.section-title {
|
|
font-size: 20px;
|
|
font-weight: 600;
|
|
color: #2c3e50;
|
|
margin-bottom: 15px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.section-description {
|
|
color: #6c757d;
|
|
font-size: 14px;
|
|
margin-bottom: 20px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.engine-list {
|
|
display: grid;
|
|
gap: 15px;
|
|
}
|
|
|
|
.engine-item {
|
|
background: #f8f9fa;
|
|
border: 2px solid #e9ecef;
|
|
border-radius: 8px;
|
|
padding: 20px;
|
|
transition: all 0.3s ease;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.engine-item:hover {
|
|
border-color: #9b59b6;
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.engine-item.disabled {
|
|
opacity: 0.6;
|
|
background: #f1f3f4;
|
|
border-color: #d1d5db;
|
|
}
|
|
|
|
.engine-item.disabled:hover {
|
|
transform: none;
|
|
box-shadow: none;
|
|
border-color: #d1d5db;
|
|
}
|
|
|
|
.engine-info {
|
|
flex: 1;
|
|
}
|
|
|
|
.engine-name {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
color: #2c3e50;
|
|
margin-bottom: 5px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.engine-badge {
|
|
font-size: 12px;
|
|
padding: 2px 8px;
|
|
border-radius: 12px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.badge-free {
|
|
background: #d4edda;
|
|
color: #155724;
|
|
}
|
|
|
|
.badge-premium {
|
|
background: #fff3cd;
|
|
color: #856404;
|
|
}
|
|
|
|
.badge-vip {
|
|
background: #f8d7da;
|
|
color: #721c24;
|
|
}
|
|
|
|
.engine-description {
|
|
color: #6c757d;
|
|
font-size: 14px;
|
|
line-height: 1.4;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.engine-features {
|
|
font-size: 12px;
|
|
color: #9b59b6;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.toggle-switch {
|
|
position: relative;
|
|
width: 60px;
|
|
height: 30px;
|
|
background: #ccc;
|
|
border-radius: 30px;
|
|
cursor: pointer;
|
|
transition: background 0.3s;
|
|
margin-left: 15px;
|
|
}
|
|
|
|
.toggle-switch.active {
|
|
background: #9b59b6;
|
|
}
|
|
|
|
.toggle-switch.disabled {
|
|
background: #e9ecef;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.toggle-switch::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: 3px;
|
|
left: 3px;
|
|
width: 24px;
|
|
height: 24px;
|
|
border-radius: 50%;
|
|
background: white;
|
|
transition: left 0.3s;
|
|
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.toggle-switch.active::after {
|
|
left: 33px;
|
|
}
|
|
|
|
/* 시간 알람 설정 스타일 */
|
|
.time-alarm-section {
|
|
background: #f8f9fa;
|
|
border: 1px solid #e9ecef;
|
|
border-radius: 8px;
|
|
padding: 20px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.time-input-group {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 15px;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.time-input-group label {
|
|
font-weight: 500;
|
|
color: #495057;
|
|
min-width: 80px;
|
|
}
|
|
|
|
.time-input-group input {
|
|
padding: 8px 12px;
|
|
border: 1px solid #ced4da;
|
|
border-radius: 4px;
|
|
font-size: 14px;
|
|
width: 80px;
|
|
}
|
|
|
|
.time-input-group span {
|
|
color: #6c757d;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.checkbox-group {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
margin-top: 15px;
|
|
}
|
|
|
|
.checkbox-group input[type="checkbox"] {
|
|
width: 18px;
|
|
height: 18px;
|
|
}
|
|
|
|
.checkbox-group label {
|
|
font-size: 14px;
|
|
color: #495057;
|
|
}
|
|
|
|
.actions {
|
|
text-align: center;
|
|
padding: 20px 0;
|
|
border-top: 1px solid #e9ecef;
|
|
margin-top: 30px;
|
|
}
|
|
|
|
.btn {
|
|
background: linear-gradient(135deg, #9b59b6, #8e44ad);
|
|
color: white;
|
|
border: none;
|
|
padding: 12px 30px;
|
|
border-radius: 25px;
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
margin: 0 10px;
|
|
}
|
|
|
|
.btn:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 5px 15px rgba(155, 89, 182, 0.4);
|
|
}
|
|
|
|
.btn-secondary {
|
|
background: linear-gradient(135deg, #6c757d, #5a6268);
|
|
}
|
|
|
|
.btn-secondary:hover {
|
|
box-shadow: 0 5px 15px rgba(108, 117, 125, 0.4);
|
|
}
|
|
|
|
.loading {
|
|
display: none;
|
|
text-align: center;
|
|
color: #9b59b6;
|
|
font-size: 14px;
|
|
margin-top: 15px;
|
|
}
|
|
|
|
.message {
|
|
padding: 15px;
|
|
border-radius: 8px;
|
|
margin: 15px 0;
|
|
font-size: 14px;
|
|
display: none;
|
|
}
|
|
|
|
.message.success {
|
|
background: #d4edda;
|
|
color: #155724;
|
|
border: 1px solid #c3e6cb;
|
|
}
|
|
|
|
.message.error {
|
|
background: #f8d7da;
|
|
color: #721c24;
|
|
border: 1px solid #f5c6cb;
|
|
}
|
|
|
|
.footer {
|
|
background: #f8f9fa;
|
|
padding: 20px;
|
|
text-align: center;
|
|
color: #6c757d;
|
|
font-size: 14px;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.container {
|
|
margin: 10px;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.header {
|
|
padding: 20px;
|
|
}
|
|
|
|
.tab-content {
|
|
padding: 20px;
|
|
}
|
|
|
|
.engine-item {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 15px;
|
|
}
|
|
|
|
.toggle-switch {
|
|
margin-left: 0;
|
|
align-self: flex-end;
|
|
}
|
|
|
|
.time-input-group {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 8px;
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<div class="header">
|
|
<h1>⚙️ 설정</h1>
|
|
<p>번역 엔진 및 시간 알람 설정을 관리합니다</p>
|
|
</div>
|
|
|
|
<!-- 탭 메뉴 -->
|
|
<div class="tab-container">
|
|
<button class="tab-button active" data-tab="translation">🌐 번역 엔진</button>
|
|
<button class="tab-button" data-tab="time-alarm">⏰ 시간 알람</button>
|
|
</div>
|
|
|
|
<div class="content">
|
|
<!-- 번역 엔진 설정 탭 -->
|
|
<div class="tab-content active" id="translation-tab">
|
|
<!-- 회원등급 정보 -->
|
|
<div class="membership-info">
|
|
<div class="membership-title">현재 회원등급: <span id="current-membership">로딩 중...</span></div>
|
|
<div class="membership-engines" id="membership-engines-info">회원 정보를 불러오는 중입니다...</div>
|
|
</div>
|
|
|
|
<!-- 번역 엔진 설정 -->
|
|
<div class="section">
|
|
<div class="section-title">
|
|
<span>📋</span>
|
|
노출할 번역 엔진 선택
|
|
</div>
|
|
<div class="section-description">
|
|
체크된 엔진만 멀티번역 결과에 표시됩니다. 회원등급에 따라 일부 엔진은 사용할 수 없습니다.
|
|
</div>
|
|
|
|
<div class="engine-list">
|
|
<div class="engine-item" data-engine="google">
|
|
<div class="engine-info">
|
|
<div class="engine-name">
|
|
<span>🌐</span>
|
|
Google 번역
|
|
<span class="engine-badge badge-free">무료</span>
|
|
</div>
|
|
<div class="engine-description">
|
|
빠른 속도와 다양한 언어 지원을 제공하는 구글의 무료 번역 서비스
|
|
</div>
|
|
<div class="engine-features">
|
|
✓ 100개 이상 언어 지원 ✓ 실시간 번역 ✓ 무료 사용
|
|
</div>
|
|
</div>
|
|
<div class="toggle-switch" data-engine="google"></div>
|
|
</div>
|
|
|
|
<div class="engine-item" data-engine="mymemory">
|
|
<div class="engine-info">
|
|
<div class="engine-name">
|
|
<span>💾</span>
|
|
MyMemory 번역
|
|
<span class="engine-badge badge-free">무료</span>
|
|
</div>
|
|
<div class="engine-description">
|
|
번역 메모리 기반으로 높은 품질의 번역을 제공하는 무료 서비스
|
|
</div>
|
|
<div class="engine-features">
|
|
✓ 번역 메모리 활용 ✓ 높은 번역 품질 ✓ 무료 사용
|
|
</div>
|
|
</div>
|
|
<div class="toggle-switch" data-engine="mymemory"></div>
|
|
</div>
|
|
|
|
<div class="engine-item" data-engine="deepl">
|
|
<div class="engine-info">
|
|
<div class="engine-name">
|
|
<span>🎯</span>
|
|
DeepL 번역
|
|
<span class="engine-badge badge-premium">프리미엄</span>
|
|
</div>
|
|
<div class="engine-description">
|
|
높은 번역 품질로 유명한 AI 번역 서비스
|
|
</div>
|
|
<div class="engine-features">
|
|
✓ 최고 품질 번역 ✓ 문맥 이해 ✓ 프리미엄 이상 사용 가능
|
|
</div>
|
|
</div>
|
|
<div class="toggle-switch" data-engine="deepl"></div>
|
|
</div>
|
|
|
|
<div class="engine-item" data-engine="openai">
|
|
<div class="engine-info">
|
|
<div class="engine-name">
|
|
<span>🤖</span>
|
|
OpenAI ChatGPT
|
|
<span class="engine-badge badge-vip">VIP</span>
|
|
</div>
|
|
<div class="engine-description">
|
|
문맥을 이해하는 고품질 AI 번역, 의역 및 설명 포함
|
|
</div>
|
|
<div class="engine-features">
|
|
✓ AI 기반 번역 ✓ 문맥 이해 ✓ 의역 제공 ✓ VIP 전용
|
|
</div>
|
|
</div>
|
|
<div class="toggle-switch" data-engine="openai"></div>
|
|
</div>
|
|
|
|
<div class="engine-item disabled" data-engine="gemini">
|
|
<div class="engine-info">
|
|
<div class="engine-name">
|
|
<span>💎</span>
|
|
Google Gemini
|
|
<span class="engine-badge badge-vip">비활성화</span>
|
|
</div>
|
|
<div class="engine-description">
|
|
현재 사용할 수 없습니다 (서비스 점검 중)
|
|
</div>
|
|
<div class="engine-features">
|
|
✗ 현재 사용 불가 ✗ 서비스 점검 중
|
|
</div>
|
|
</div>
|
|
<div class="toggle-switch disabled" data-engine="gemini"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 시간 알람 설정 탭 -->
|
|
<div class="tab-content" id="time-alarm-tab">
|
|
<div class="section">
|
|
<div class="section-title">
|
|
<span>⏰</span>
|
|
시간 알람 설정
|
|
</div>
|
|
<div class="section-description">
|
|
작업 시간과 휴식 시간을 설정하여 건강한 작업 패턴을 유지하세요.
|
|
</div>
|
|
|
|
<div class="time-alarm-section">
|
|
<div class="time-input-group">
|
|
<label>시간 알람:</label>
|
|
<div class="toggle-switch" id="timeAlarmToggle"></div>
|
|
<span>알람 활성화/비활성화</span>
|
|
</div>
|
|
|
|
<div class="time-input-group">
|
|
<label>작업 시간:</label>
|
|
<input type="number" id="workTimeInput" min="1" max="480" value="60">
|
|
<span>분 (작업 후 휴식 알림)</span>
|
|
</div>
|
|
|
|
<div class="time-input-group">
|
|
<label>휴식 시간:</label>
|
|
<input type="number" id="restTimeInput" min="1" max="60" value="5">
|
|
<span>분 (휴식 시간 길이)</span>
|
|
</div>
|
|
|
|
<div class="checkbox-group">
|
|
<input type="checkbox" id="autoZzimCheckbox" disabled>
|
|
<label for="autoZzimCheckbox">휴식 중 자동 찜 기능 활성화</label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="message" id="message"></div>
|
|
<div class="loading" id="loading">⏳ 설정을 저장하는 중...</div>
|
|
|
|
<div class="actions">
|
|
<button class="btn" id="save-settings">💾 설정 저장</button>
|
|
<button class="btn btn-secondary" id="reset-settings">🔄 기본값으로 복원</button>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="footer">
|
|
<p>© 2024 내차는언제타냐 통합확장기 - 번역 엔진 및 시간 알람 설정</p>
|
|
</div>
|
|
</div>
|
|
|
|
<script src="settings.js"></script>
|
|
</body>
|
|
</html> |