329 lines
11 KiB
HTML
329 lines
11 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=390, initial-scale=1">
|
|
<title>Kalei — Export Your Data</title>
|
|
<link rel="stylesheet" href="../../assets/design-system.css">
|
|
<style>
|
|
.export-section {
|
|
margin-bottom: 18px;
|
|
}
|
|
.info-card {
|
|
background: var(--kalei-navy);
|
|
border: 1px solid var(--twilight);
|
|
border-radius: var(--radius-xl);
|
|
padding: 16px;
|
|
margin-bottom: 14px;
|
|
}
|
|
.info-title {
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
color: var(--pure-light);
|
|
margin-bottom: 8px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
.info-text {
|
|
font-size: 14px;
|
|
color: var(--soft-light);
|
|
line-height: 1.5;
|
|
}
|
|
.included-list {
|
|
margin-top: 10px;
|
|
}
|
|
.included-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 6px 0;
|
|
font-size: 13px;
|
|
color: var(--dim-light);
|
|
}
|
|
.included-item-dot {
|
|
width: 6px;
|
|
height: 6px;
|
|
border-radius: 50%;
|
|
background: var(--amethyst);
|
|
opacity: 0.6;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.format-section {
|
|
margin-bottom: 18px;
|
|
}
|
|
.format-option {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 14px;
|
|
padding: 14px 16px;
|
|
background: var(--kalei-navy);
|
|
border: 1px solid var(--twilight);
|
|
border-radius: var(--radius-lg);
|
|
margin-bottom: 8px;
|
|
cursor: pointer;
|
|
transition: border-color 0.2s;
|
|
}
|
|
.format-option.selected {
|
|
border-color: var(--amethyst);
|
|
background: rgba(139,92,246,0.06);
|
|
}
|
|
.format-radio {
|
|
width: 20px;
|
|
height: 20px;
|
|
border-radius: 50%;
|
|
border: 2px solid var(--twilight);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
transition: border-color 0.2s;
|
|
}
|
|
.format-option.selected .format-radio {
|
|
border-color: var(--amethyst);
|
|
}
|
|
.format-radio-dot {
|
|
width: 10px;
|
|
height: 10px;
|
|
border-radius: 50%;
|
|
background: var(--amethyst);
|
|
opacity: 0;
|
|
transition: opacity 0.2s;
|
|
}
|
|
.format-option.selected .format-radio-dot { opacity: 1; }
|
|
.format-info { flex: 1; }
|
|
.format-name {
|
|
font-size: 15px;
|
|
font-weight: 500;
|
|
color: var(--pure-light);
|
|
}
|
|
.format-desc {
|
|
font-size: 12px;
|
|
color: var(--dim-light);
|
|
margin-top: 2px;
|
|
}
|
|
.format-badge {
|
|
font-size: 10px;
|
|
font-weight: 600;
|
|
padding: 2px 8px;
|
|
border-radius: var(--radius-full);
|
|
}
|
|
|
|
.export-btn {
|
|
width: 100%;
|
|
height: 52px;
|
|
border: none;
|
|
border-radius: var(--radius-lg);
|
|
background: var(--amethyst);
|
|
color: white;
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
font-family: var(--font-primary);
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 10px;
|
|
box-shadow: var(--glow-amethyst);
|
|
transition: all 0.3s;
|
|
margin-bottom: 12px;
|
|
}
|
|
.export-btn:hover { background: var(--amethyst-light); }
|
|
.export-btn.loading {
|
|
background: var(--deep-glass);
|
|
border: 1px solid var(--twilight);
|
|
color: var(--dim-light);
|
|
box-shadow: none;
|
|
cursor: default;
|
|
}
|
|
.export-btn.success {
|
|
background: var(--emerald);
|
|
box-shadow: var(--glow-emerald);
|
|
}
|
|
|
|
.spinner {
|
|
width: 18px;
|
|
height: 18px;
|
|
border: 2px solid rgba(148,163,184,0.3);
|
|
border-top-color: var(--dim-light);
|
|
border-radius: 50%;
|
|
animation: rotate 0.8s linear infinite;
|
|
display: none;
|
|
}
|
|
.export-btn.loading .spinner { display: block; }
|
|
.export-btn .btn-text { transition: none; }
|
|
|
|
.privacy-note {
|
|
font-size: 12px;
|
|
color: var(--faint-light);
|
|
line-height: 1.5;
|
|
text-align: center;
|
|
}
|
|
.screen-content { padding-bottom: 24px; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="device-frame">
|
|
<div class="status-bar">
|
|
<span class="time">9:41</span>
|
|
<div class="icons">
|
|
<svg width="16" height="16" viewBox="0 0 16 16" fill="none">
|
|
<rect x="1" y="7" width="2.5" height="5" rx="0.5" fill="#E2E8F0" opacity="0.4"/>
|
|
<rect x="4.5" y="5" width="2.5" height="7" rx="0.5" fill="#E2E8F0" opacity="0.6"/>
|
|
<rect x="8" y="3" width="2.5" height="9" rx="0.5" fill="#E2E8F0" opacity="0.8"/>
|
|
<rect x="11.5" y="1" width="2.5" height="11" rx="0.5" fill="#E2E8F0"/>
|
|
</svg>
|
|
<svg width="16" height="16" viewBox="0 0 16 16" fill="none">
|
|
<path d="M 2,8 C 4,4 12,4 14,8" stroke="#E2E8F0" stroke-width="1.2" fill="none" stroke-linecap="round"/>
|
|
<path d="M 4,10 C 6,7 10,7 12,10" stroke="#E2E8F0" stroke-width="1" fill="none" opacity="0.8" stroke-linecap="round"/>
|
|
<circle cx="8" cy="12" r="1.2" fill="#E2E8F0"/>
|
|
</svg>
|
|
<svg width="24" height="12" viewBox="0 0 24 12" fill="none">
|
|
<rect x="0.5" y="0.5" width="21" height="11" rx="2.5" stroke="#E2E8F0" stroke-width="1" opacity="0.5"/>
|
|
<rect x="22" y="3" width="2" height="6" rx="1" fill="#E2E8F0" opacity="0.3"/>
|
|
<rect x="2" y="2" width="16" height="8" rx="1.5" fill="#10B981" opacity="0.9"/>
|
|
</svg>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="nav-header">
|
|
<a class="nav-back" href="../you/37-you-settings.html">
|
|
<svg width="20" height="20" viewBox="0 0 20 20" fill="none">
|
|
<path d="M12 4L6 10L12 16" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
</svg>
|
|
</a>
|
|
<span class="nav-title">Export Your Data</span>
|
|
<span class="nav-action"></span>
|
|
</div>
|
|
|
|
<div class="screen-content">
|
|
<div style="margin-top: 8px;"></div>
|
|
|
|
<!-- Info card -->
|
|
<div class="info-card">
|
|
<div class="info-title">
|
|
<svg width="18" height="18" viewBox="0 0 18 18" fill="none">
|
|
<circle cx="9" cy="9" r="7" stroke="#8B5CF6" stroke-width="1.2"/>
|
|
<path d="M9 8V13" stroke="#8B5CF6" stroke-width="1.2" stroke-linecap="round"/>
|
|
<circle cx="9" cy="5.5" r="0.8" fill="#8B5CF6"/>
|
|
</svg>
|
|
What's included in your export
|
|
</div>
|
|
<div class="info-text">Your personal data export contains everything you've created in Kalei:</div>
|
|
|
|
<div class="included-list">
|
|
<div class="included-item">
|
|
<div class="included-item-dot"></div>
|
|
All Turn transcripts and reframe perspectives
|
|
</div>
|
|
<div class="included-item">
|
|
<div class="included-item-dot" style="background: var(--amber);"></div>
|
|
Mirror session journals and detected fragments
|
|
</div>
|
|
<div class="included-item">
|
|
<div class="included-item-dot" style="background: var(--emerald);"></div>
|
|
Lens goals, milestones, and if-then plans
|
|
</div>
|
|
<div class="included-item">
|
|
<div class="included-item-dot" style="background: var(--sapphire);"></div>
|
|
Gallery patterns and saved keepsakes
|
|
</div>
|
|
<div class="included-item">
|
|
<div class="included-item-dot" style="background: var(--indigo);"></div>
|
|
Ritual history and streak data
|
|
</div>
|
|
<div class="included-item">
|
|
<div class="included-item-dot"></div>
|
|
Account settings and coaching preferences
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Format selection -->
|
|
<div class="format-section">
|
|
<div class="section-header">
|
|
<span class="section-title">Export Format</span>
|
|
</div>
|
|
|
|
<div class="format-option selected" id="jsonOption" onclick="selectFormat('json')">
|
|
<div class="format-radio">
|
|
<div class="format-radio-dot"></div>
|
|
</div>
|
|
<div class="format-info">
|
|
<div class="format-name">JSON</div>
|
|
<div class="format-desc">Machine-readable, complete data structure</div>
|
|
</div>
|
|
<span class="format-badge" style="background: rgba(139,92,246,0.15); color: var(--amethyst-light);">Developer</span>
|
|
</div>
|
|
|
|
<div class="format-option" id="pdfOption" onclick="selectFormat('pdf')">
|
|
<div class="format-radio">
|
|
<div class="format-radio-dot"></div>
|
|
</div>
|
|
<div class="format-info">
|
|
<div class="format-name">PDF Summary</div>
|
|
<div class="format-desc">Human-readable report with charts and insights</div>
|
|
</div>
|
|
<span class="format-badge" style="background: rgba(16,185,129,0.15); color: var(--emerald-light);">Readable</span>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Export button -->
|
|
<button class="export-btn" id="exportBtn" onclick="startExport()">
|
|
<span class="spinner" id="spinner"></span>
|
|
<span class="btn-text" id="btnText">
|
|
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" style="display:inline; vertical-align:middle; margin-right:4px;">
|
|
<path d="M8 2V10M5 7L8 10L11 7" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
<path d="M2 12H14" stroke="white" stroke-width="1.5" stroke-linecap="round"/>
|
|
</svg>
|
|
Export Data
|
|
</span>
|
|
</button>
|
|
|
|
<div class="privacy-note">
|
|
Your data is encrypted and securely transmitted. We never share your personal information with third parties.
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
let selectedFormat = 'json';
|
|
|
|
function selectFormat(format) {
|
|
selectedFormat = format;
|
|
document.getElementById('jsonOption').classList.toggle('selected', format === 'json');
|
|
document.getElementById('pdfOption').classList.toggle('selected', format === 'pdf');
|
|
}
|
|
|
|
function startExport() {
|
|
const btn = document.getElementById('exportBtn');
|
|
const spinner = document.getElementById('spinner');
|
|
const btnText = document.getElementById('btnText');
|
|
|
|
if (btn.classList.contains('loading') || btn.classList.contains('success')) return;
|
|
|
|
// Loading state
|
|
btn.classList.add('loading');
|
|
btnText.style.display = 'none';
|
|
spinner.style.display = 'block';
|
|
|
|
// Simulate export delay
|
|
setTimeout(() => {
|
|
// Success state
|
|
btn.classList.remove('loading');
|
|
btn.classList.add('success');
|
|
spinner.style.display = 'none';
|
|
btnText.style.display = '';
|
|
btnText.innerHTML = `
|
|
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" style="display:inline; vertical-align:middle; margin-right:4px;">
|
|
<path d="M2 8L6 12L14 4" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
</svg>
|
|
Export Ready — Download
|
|
`;
|
|
}, 2500);
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|