Spaces:
Sleeping
Sleeping
Create templates/views/settings.html
Browse files
templates/views/settings.html
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<div class="settings-layout">
|
| 2 |
+
|
| 3 |
+
<div class="settings-sidebar">
|
| 4 |
+
<h3 style="padding: 0 16px; font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px;">Settings</h3>
|
| 5 |
+
<div class="settings-tab active" onclick="switchSettingsPanel('panel-profile', this)">👤 Profile</div>
|
| 6 |
+
<div class="settings-tab" onclick="switchSettingsPanel('panel-appearance', this)">🎨 Appearance</div>
|
| 7 |
+
<div class="settings-tab" onclick="switchSettingsPanel('panel-editor', this)">⌨️ Editor Settings</div>
|
| 8 |
+
<div class="settings-tab" onclick="switchSettingsPanel('panel-terminal', this)">💻 Terminal Settings</div>
|
| 9 |
+
</div>
|
| 10 |
+
|
| 11 |
+
<div class="settings-content-wrapper">
|
| 12 |
+
|
| 13 |
+
<div id="panel-profile" class="settings-section active">
|
| 14 |
+
<h2 class="settings-title">Profile</h2>
|
| 15 |
+
<div style="display: flex; align-items: center; gap: 20px; margin-bottom: 30px;">
|
| 16 |
+
<div style="width: 80px; height: 80px; border-radius: 50%; background: var(--accent-main); display: flex; justify-content: center; align-items: center; font-size: 30px; color: #000; font-weight: bold;" id="profile-avatar">U</div>
|
| 17 |
+
<div>
|
| 18 |
+
<div class="setting-group" style="margin-bottom: 10px;">
|
| 19 |
+
<input type="text" id="setting-username" class="setting-input" disabled style="opacity: 0.7;">
|
| 20 |
+
</div>
|
| 21 |
+
</div>
|
| 22 |
+
</div>
|
| 23 |
+
<button class="editor-btn primary" onclick="alert('Profile updates coming in v2!')">Update Profile</button>
|
| 24 |
+
</div>
|
| 25 |
+
|
| 26 |
+
<div id="panel-appearance" class="settings-section">
|
| 27 |
+
<h2 class="settings-title">Appearance</h2>
|
| 28 |
+
|
| 29 |
+
<div class="setting-group">
|
| 30 |
+
<label>Theme Mode</label>
|
| 31 |
+
<select id="setting-theme-mode" class="setting-select" onchange="previewSettings()">
|
| 32 |
+
<option value="dark">Dark Theme (Default)</option>
|
| 33 |
+
<option value="light">Light Theme</option>
|
| 34 |
+
</select>
|
| 35 |
+
</div>
|
| 36 |
+
|
| 37 |
+
<div class="setting-group">
|
| 38 |
+
<label>System Accent Color</label>
|
| 39 |
+
<div class="color-swatch-container">
|
| 40 |
+
<div class="color-swatch active" style="background: #ffc107;" onclick="setAccentColor('#ffc107', this)"></div>
|
| 41 |
+
<div class="color-swatch" style="background: #00ffcc;" onclick="setAccentColor('#00ffcc', this)"></div>
|
| 42 |
+
<div class="color-swatch" style="background: #00e676;" onclick="setAccentColor('#00e676', this)"></div>
|
| 43 |
+
<div class="color-swatch" style="background: #b388ff;" onclick="setAccentColor('#b388ff', this)"></div>
|
| 44 |
+
<input type="color" id="custom-accent-color" value="#ffc107" style="background: none; border: none; cursor: pointer; width: 30px; height: 30px; padding: 0;" onchange="setAccentColor(this.value, null)">
|
| 45 |
+
</div>
|
| 46 |
+
</div>
|
| 47 |
+
</div>
|
| 48 |
+
|
| 49 |
+
<div id="panel-editor" class="settings-section">
|
| 50 |
+
<h2 class="settings-title">Editor Settings</h2>
|
| 51 |
+
|
| 52 |
+
<div class="setting-group">
|
| 53 |
+
<label>Font Size</label>
|
| 54 |
+
<select id="setting-editor-font-size" class="setting-select" onchange="previewSettings()">
|
| 55 |
+
<option value="12px">12px</option>
|
| 56 |
+
<option value="14px" selected>14px</option>
|
| 57 |
+
<option value="16px">16px</option>
|
| 58 |
+
<option value="18px">18px</option>
|
| 59 |
+
</select>
|
| 60 |
+
</div>
|
| 61 |
+
|
| 62 |
+
<div class="setting-group">
|
| 63 |
+
<label>Font Family</label>
|
| 64 |
+
<select id="setting-editor-font" class="setting-select" onchange="previewSettings()">
|
| 65 |
+
<option value="'Fira Code', monospace" selected>Fira Code</option>
|
| 66 |
+
<option value="'JetBrains Mono', monospace">JetBrains Mono</option>
|
| 67 |
+
<option value="'Consolas', monospace">Consolas</option>
|
| 68 |
+
</select>
|
| 69 |
+
</div>
|
| 70 |
+
</div>
|
| 71 |
+
|
| 72 |
+
<div id="panel-terminal" class="settings-section">
|
| 73 |
+
<h2 class="settings-title">Terminal Settings</h2>
|
| 74 |
+
<div class="setting-group">
|
| 75 |
+
<label>Terminal Font Size</label>
|
| 76 |
+
<select id="setting-terminal-font-size" class="setting-select" onchange="previewSettings()">
|
| 77 |
+
<option value="13px">13px</option>
|
| 78 |
+
<option value="14px" selected>14px</option>
|
| 79 |
+
<option value="16px">16px</option>
|
| 80 |
+
</select>
|
| 81 |
+
</div>
|
| 82 |
+
</div>
|
| 83 |
+
|
| 84 |
+
<div class="settings-actions">
|
| 85 |
+
<button class="editor-btn primary" id="save-settings-btn" onclick="saveSettings()">Save Settings</button>
|
| 86 |
+
<button class="editor-btn" onclick="loadSettings()">Reset Changes</button>
|
| 87 |
+
</div>
|
| 88 |
+
|
| 89 |
+
</div>
|
| 90 |
+
</div>
|