Spaces:
Sleeping
Sleeping
Update templates/index.html
Browse files- templates/index.html +42 -54
templates/index.html
CHANGED
|
@@ -16,7 +16,7 @@
|
|
| 16 |
<div class="sidebar-logo">
|
| 17 |
<div class="logo-icon">🧘</div>
|
| 18 |
<div>
|
| 19 |
-
<div class="logo-name">Yoga<span>Mate</span></div>
|
| 20 |
<div class="logo-sub">AI Pose Coach</div>
|
| 21 |
</div>
|
| 22 |
</div>
|
|
@@ -32,6 +32,7 @@
|
|
| 32 |
<a class="nav-item" data-view="history">
|
| 33 |
<svg class="nav-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><polyline points="12 6 12 12 16 14"/></svg>
|
| 34 |
<span>History</span>
|
|
|
|
| 35 |
</a>
|
| 36 |
<a class="nav-item" data-view="progress">
|
| 37 |
<svg class="nav-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="20" x2="18" y2="10"/><line x1="12" y1="20" x2="12" y2="4"/><line x1="6" y1="20" x2="6" y2="14"/></svg>
|
|
@@ -57,60 +58,55 @@
|
|
| 57 |
<div class="home-hero">
|
| 58 |
<div class="hero-text">
|
| 59 |
<h1>Find Your <span class="highlight">Flow</span> ✦</h1>
|
| 60 |
-
<p class="hero-sub">Choose an asana and get real-time AI feedback to perfect your alignment</p>
|
| 61 |
<div class="search-bar">
|
| 62 |
-
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
|
| 63 |
<input id="home-search-input" type="text" placeholder="Search poses by name, category…">
|
| 64 |
-
<
|
| 65 |
-
|
| 66 |
-
</button>
|
| 67 |
</div>
|
| 68 |
-
<div id="search-results-panel" class="search-results-panel
|
| 69 |
-
<div id="search-results-label" class="search-results-header">
|
| 70 |
<div id="search-results-list"></div>
|
| 71 |
-
<div id="cant-find-inline" class="hidden">
|
| 72 |
-
<div class="no-results-icon">🔍</div>
|
| 73 |
-
<div class="no-results-title">Pose not found</div>
|
| 74 |
-
<div id="no-results-body" class="no-results-body"></div>
|
| 75 |
-
<div class="help-grow-card">
|
| 76 |
-
<p>Want to help us grow? <span>Add a new pose to the library</span></p>
|
| 77 |
-
<button class="btn-add-pose-sm" onclick="openAddPose()">+ Add Pose</button>
|
| 78 |
-
</div>
|
| 79 |
-
</div>
|
| 80 |
</div>
|
| 81 |
</div>
|
| 82 |
<div class="hero-illustration">
|
| 83 |
-
<svg viewBox="0 0 200 200" fill="none"
|
| 84 |
-
<circle cx="100" cy="100" r="90" fill="
|
| 85 |
-
<circle cx="100" cy="40" r="14" fill="#8B5CF6"/>
|
| 86 |
-
<line x1="100" y1="54" x2="100" y2="110" stroke="#7C3AED" stroke-width="4"
|
| 87 |
-
<line x1="100" y1="70" x2="65" y2="90" stroke="#7C3AED" stroke-width="3.5"
|
| 88 |
-
<line x1="100" y1="70" x2="135" y2="90" stroke="#7C3AED" stroke-width="3.5"
|
| 89 |
-
<line x1="100" y1="110" x2="72" y2="155" stroke="#7C3AED" stroke-width="3.5"
|
| 90 |
-
<line x1="100" y1="110" x2="128" y2="155" stroke="#7C3AED" stroke-width="3.5"
|
| 91 |
-
<circle cx="65" cy="90" r="5" fill="#A78BFA"/>
|
| 92 |
-
<circle cx="135" cy="90" r="5" fill="#A78BFA"/>
|
| 93 |
-
<circle cx="72" cy="155" r="5" fill="#A78BFA"/>
|
| 94 |
-
<circle cx="128" cy="155" r="5" fill="#A78BFA"/>
|
| 95 |
</svg>
|
| 96 |
</div>
|
| 97 |
</div>
|
| 98 |
|
| 99 |
-
<
|
|
|
|
|
|
|
|
|
|
| 100 |
<div id="pose-grid" class="pose-grid"></div>
|
| 101 |
|
| 102 |
-
<!-- Recently Used
|
| 103 |
-
<div id="recent-section" class="recent-section
|
| 104 |
-
<
|
| 105 |
-
|
|
|
|
|
|
|
| 106 |
</div>
|
| 107 |
|
| 108 |
-
<div class="
|
| 109 |
-
<div class="
|
| 110 |
-
<div class="
|
| 111 |
<div>
|
| 112 |
-
<div class="
|
| 113 |
-
<div class="
|
| 114 |
</div>
|
| 115 |
</div>
|
| 116 |
<button class="btn-add-pose-sm" onclick="openAddPose()">+ Add Pose</button>
|
|
@@ -120,10 +116,7 @@
|
|
| 120 |
<!-- PRACTICE VIEW -->
|
| 121 |
<section id="view-practice" class="view">
|
| 122 |
<div class="view-header">
|
| 123 |
-
<button class="back-btn" onclick="goHome()">
|
| 124 |
-
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><polyline points="15 18 9 12 15 6"/></svg>
|
| 125 |
-
Back
|
| 126 |
-
</button>
|
| 127 |
<h1 id="practice-pose-title">Practice</h1>
|
| 128 |
<div id="live-badge" class="live-badge hidden"><span class="live-dot"></span> LIVE</div>
|
| 129 |
</div>
|
|
@@ -144,7 +137,7 @@
|
|
| 144 |
<ol id="steps-list" class="steps-list"></ol>
|
| 145 |
</div>
|
| 146 |
|
| 147 |
-
<!-- Reference Images
|
| 148 |
<div class="reference-section">
|
| 149 |
<div class="reference-header">
|
| 150 |
<span>📸 Reference Poses</span>
|
|
@@ -166,17 +159,14 @@
|
|
| 166 |
</div>
|
| 167 |
<div id="fps-badge" class="fps-badge hidden">0 fps</div>
|
| 168 |
<div id="camera-off-overlay" class="camera-off-overlay">
|
| 169 |
-
<svg width="48" height="48" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5"
|
| 170 |
<p>Camera is off</p>
|
| 171 |
<span>Click "Start Camera" to begin your practice</span>
|
| 172 |
</div>
|
| 173 |
<div id="fullscreen-suggestions" class="fullscreen-suggestions" style="display: none;"></div>
|
| 174 |
</div>
|
| 175 |
<div class="camera-controls">
|
| 176 |
-
<button id="start-camera-btn" class="btn-primary" onclick="startCamera()">
|
| 177 |
-
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><path d="M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z"/><circle cx="12" cy="13" r="4"/></svg>
|
| 178 |
-
Start Camera
|
| 179 |
-
</button>
|
| 180 |
<button id="stop-camera-btn" class="btn-outline hidden" onclick="stopCamera()">⏹ Stop</button>
|
| 181 |
<button id="snapshot-btn" class="btn-outline hidden" onclick="takeSnapshot()">📸 Snapshot</button>
|
| 182 |
<button id="fullscreen-btn" class="btn-outline" onclick="toggleFullscreen()">⛶ Fullscreen</button>
|
|
@@ -189,7 +179,7 @@
|
|
| 189 |
<div id="suggestions-panel" class="suggestions-panel hidden">
|
| 190 |
<div class="suggestions-panel-header">
|
| 191 |
<span style="font-weight: 700;">💡 Pose Guidance</span>
|
| 192 |
-
<span id="suggestions-score" style="font-weight: 800; font-size: 20px; color: var(--
|
| 193 |
</div>
|
| 194 |
<div class="suggestions-panel-body">
|
| 195 |
<div class="suggestion-item">
|
|
@@ -291,9 +281,7 @@
|
|
| 291 |
<!-- ADD POSE VIEW -->
|
| 292 |
<section id="view-add-pose" class="view">
|
| 293 |
<div class="view-header">
|
| 294 |
-
<button class="back-btn" onclick="goHome()">
|
| 295 |
-
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><polyline points="15 18 9 12 15 6"/></svg> Back
|
| 296 |
-
</button>
|
| 297 |
<h1>➕ Add a New Pose</h1>
|
| 298 |
</div>
|
| 299 |
<div class="add-pose-layout">
|
|
@@ -302,7 +290,7 @@
|
|
| 302 |
<label>Reference Image</label>
|
| 303 |
<div class="add-pose-upload" onclick="document.getElementById('add-pose-file').click()">
|
| 304 |
<div id="add-pose-placeholder">
|
| 305 |
-
<svg width="36" height="36" viewBox="0 0 24 24" fill="none" stroke="#A78BFA" stroke-width="1.5"
|
| 306 |
<p>Upload reference image</p>
|
| 307 |
<span>JPG, PNG up to 5 MB</span>
|
| 308 |
</div>
|
|
|
|
| 16 |
<div class="sidebar-logo">
|
| 17 |
<div class="logo-icon">🧘</div>
|
| 18 |
<div>
|
| 19 |
+
<div class="logo-name">Yoga<span class="highlight">Mate</span></div>
|
| 20 |
<div class="logo-sub">AI Pose Coach</div>
|
| 21 |
</div>
|
| 22 |
</div>
|
|
|
|
| 32 |
<a class="nav-item" data-view="history">
|
| 33 |
<svg class="nav-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><polyline points="12 6 12 12 16 14"/></svg>
|
| 34 |
<span>History</span>
|
| 35 |
+
<span class="nav-badge">New</span>
|
| 36 |
</a>
|
| 37 |
<a class="nav-item" data-view="progress">
|
| 38 |
<svg class="nav-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="20" x2="18" y2="10"/><line x1="12" y1="20" x2="12" y2="4"/><line x1="6" y1="20" x2="6" y2="14"/></svg>
|
|
|
|
| 58 |
<div class="home-hero">
|
| 59 |
<div class="hero-text">
|
| 60 |
<h1>Find Your <span class="highlight">Flow</span> ✦</h1>
|
| 61 |
+
<p class="hero-sub">Choose an asana and get real-time AI feedback to perfect your alignment with precision</p>
|
| 62 |
<div class="search-bar">
|
| 63 |
+
<svg class="search-icon" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/></svg>
|
| 64 |
<input id="home-search-input" type="text" placeholder="Search poses by name, category…">
|
| 65 |
+
<span class="shortcut-hint">⌘K</span>
|
| 66 |
+
<button id="home-search-clear" class="search-clear hidden">✕</button>
|
|
|
|
| 67 |
</div>
|
| 68 |
+
<div id="search-results-panel" class="search-results-panel">
|
| 69 |
+
<div id="search-results-label" class="search-results-header">Results</div>
|
| 70 |
<div id="search-results-list"></div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 71 |
</div>
|
| 72 |
</div>
|
| 73 |
<div class="hero-illustration">
|
| 74 |
+
<svg viewBox="0 0 200 200" fill="none">
|
| 75 |
+
<circle cx="100" cy="100" r="90" fill="rgba(139,92,246,0.05)" stroke="rgba(139,92,246,0.05)"/>
|
| 76 |
+
<circle cx="100" cy="40" r="14" fill="#8B5CF6" opacity="0.8"/>
|
| 77 |
+
<line x1="100" y1="54" x2="100" y2="110" stroke="#7C3AED" stroke-width="4" opacity="0.6"/>
|
| 78 |
+
<line x1="100" y1="70" x2="65" y2="90" stroke="#7C3AED" stroke-width="3.5" opacity="0.6"/>
|
| 79 |
+
<line x1="100" y1="70" x2="135" y2="90" stroke="#7C3AED" stroke-width="3.5" opacity="0.6"/>
|
| 80 |
+
<line x1="100" y1="110" x2="72" y2="155" stroke="#7C3AED" stroke-width="3.5" opacity="0.6"/>
|
| 81 |
+
<line x1="100" y1="110" x2="128" y2="155" stroke="#7C3AED" stroke-width="3.5" opacity="0.6"/>
|
| 82 |
+
<circle cx="65" cy="90" r="5" fill="#A78BFA" opacity="0.6"/>
|
| 83 |
+
<circle cx="135" cy="90" r="5" fill="#A78BFA" opacity="0.6"/>
|
| 84 |
+
<circle cx="72" cy="155" r="5" fill="#A78BFA" opacity="0.6"/>
|
| 85 |
+
<circle cx="128" cy="155" r="5" fill="#A78BFA" opacity="0.6"/>
|
| 86 |
</svg>
|
| 87 |
</div>
|
| 88 |
</div>
|
| 89 |
|
| 90 |
+
<div class="section-header">
|
| 91 |
+
<div class="section-title"><span class="emoji-big">⭐</span> Popular Asanas</div>
|
| 92 |
+
<span class="section-subtitle">10 handpicked poses</span>
|
| 93 |
+
</div>
|
| 94 |
<div id="pose-grid" class="pose-grid"></div>
|
| 95 |
|
| 96 |
+
<!-- Recently Used -->
|
| 97 |
+
<div id="recent-section" class="recent-section hidden">
|
| 98 |
+
<div class="section-header">
|
| 99 |
+
<div class="section-title"><span class="emoji-big">🔄</span> Recently Used</div>
|
| 100 |
+
</div>
|
| 101 |
+
<div id="recent-grid" class="recent-grid"></div>
|
| 102 |
</div>
|
| 103 |
|
| 104 |
+
<div class="cta-banner">
|
| 105 |
+
<div class="cta-left">
|
| 106 |
+
<div class="cta-icon">➕</div>
|
| 107 |
<div>
|
| 108 |
+
<div class="cta-title">Missing a pose?</div>
|
| 109 |
+
<div class="cta-sub">Help us grow the library by adding new asanas</div>
|
| 110 |
</div>
|
| 111 |
</div>
|
| 112 |
<button class="btn-add-pose-sm" onclick="openAddPose()">+ Add Pose</button>
|
|
|
|
| 116 |
<!-- PRACTICE VIEW -->
|
| 117 |
<section id="view-practice" class="view">
|
| 118 |
<div class="view-header">
|
| 119 |
+
<button class="back-btn" onclick="goHome()">← Back</button>
|
|
|
|
|
|
|
|
|
|
| 120 |
<h1 id="practice-pose-title">Practice</h1>
|
| 121 |
<div id="live-badge" class="live-badge hidden"><span class="live-dot"></span> LIVE</div>
|
| 122 |
</div>
|
|
|
|
| 137 |
<ol id="steps-list" class="steps-list"></ol>
|
| 138 |
</div>
|
| 139 |
|
| 140 |
+
<!-- Reference Images -->
|
| 141 |
<div class="reference-section">
|
| 142 |
<div class="reference-header">
|
| 143 |
<span>📸 Reference Poses</span>
|
|
|
|
| 159 |
</div>
|
| 160 |
<div id="fps-badge" class="fps-badge hidden">0 fps</div>
|
| 161 |
<div id="camera-off-overlay" class="camera-off-overlay">
|
| 162 |
+
<svg width="48" height="48" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5"><path d="M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z"/><circle cx="12" cy="13" r="4"/></svg>
|
| 163 |
<p>Camera is off</p>
|
| 164 |
<span>Click "Start Camera" to begin your practice</span>
|
| 165 |
</div>
|
| 166 |
<div id="fullscreen-suggestions" class="fullscreen-suggestions" style="display: none;"></div>
|
| 167 |
</div>
|
| 168 |
<div class="camera-controls">
|
| 169 |
+
<button id="start-camera-btn" class="btn-primary" onclick="startCamera()">▶ Start Camera</button>
|
|
|
|
|
|
|
|
|
|
| 170 |
<button id="stop-camera-btn" class="btn-outline hidden" onclick="stopCamera()">⏹ Stop</button>
|
| 171 |
<button id="snapshot-btn" class="btn-outline hidden" onclick="takeSnapshot()">📸 Snapshot</button>
|
| 172 |
<button id="fullscreen-btn" class="btn-outline" onclick="toggleFullscreen()">⛶ Fullscreen</button>
|
|
|
|
| 179 |
<div id="suggestions-panel" class="suggestions-panel hidden">
|
| 180 |
<div class="suggestions-panel-header">
|
| 181 |
<span style="font-weight: 700;">💡 Pose Guidance</span>
|
| 182 |
+
<span id="suggestions-score" style="font-weight: 800; font-size: 20px; color: var(--primary-400);">0%</span>
|
| 183 |
</div>
|
| 184 |
<div class="suggestions-panel-body">
|
| 185 |
<div class="suggestion-item">
|
|
|
|
| 281 |
<!-- ADD POSE VIEW -->
|
| 282 |
<section id="view-add-pose" class="view">
|
| 283 |
<div class="view-header">
|
| 284 |
+
<button class="back-btn" onclick="goHome()">← Back</button>
|
|
|
|
|
|
|
| 285 |
<h1>➕ Add a New Pose</h1>
|
| 286 |
</div>
|
| 287 |
<div class="add-pose-layout">
|
|
|
|
| 290 |
<label>Reference Image</label>
|
| 291 |
<div class="add-pose-upload" onclick="document.getElementById('add-pose-file').click()">
|
| 292 |
<div id="add-pose-placeholder">
|
| 293 |
+
<svg width="36" height="36" viewBox="0 0 24 24" fill="none" stroke="#A78BFA" stroke-width="1.5"><rect x="3" y="3" width="18" height="18" rx="2"/><circle cx="8.5" cy="8.5" r="1.5"/><polyline points="21 15 16 10 5 21"/></svg>
|
| 294 |
<p>Upload reference image</p>
|
| 295 |
<span>JPG, PNG up to 5 MB</span>
|
| 296 |
</div>
|