Update index.html
Browse files- index.html +262 -276
index.html
CHANGED
|
@@ -1,280 +1,266 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
<head>
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
</head>
|
| 10 |
-
|
| 11 |
<body>
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
|
| 157 |
-
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
-
|
| 165 |
-
|
| 166 |
-
|
| 167 |
-
|
| 168 |
-
|
| 169 |
-
|
| 170 |
-
|
| 171 |
-
|
| 172 |
-
|
| 173 |
-
|
| 174 |
-
|
| 175 |
-
|
| 176 |
-
|
| 177 |
-
|
| 178 |
-
|
| 179 |
-
|
| 180 |
-
|
| 181 |
-
|
| 182 |
-
|
| 183 |
-
|
| 184 |
-
|
| 185 |
-
|
| 186 |
-
|
| 187 |
-
|
| 188 |
-
|
| 189 |
-
|
| 190 |
-
|
| 191 |
-
|
| 192 |
-
|
| 193 |
-
|
| 194 |
-
|
| 195 |
-
|
| 196 |
-
|
| 197 |
-
|
| 198 |
-
|
| 199 |
-
|
| 200 |
-
|
| 201 |
-
|
| 202 |
-
|
| 203 |
-
|
| 204 |
-
|
| 205 |
-
|
| 206 |
-
|
| 207 |
-
|
| 208 |
-
|
| 209 |
-
|
| 210 |
-
|
| 211 |
-
|
| 212 |
-
|
| 213 |
-
|
| 214 |
-
|
| 215 |
-
|
| 216 |
-
|
| 217 |
-
|
| 218 |
-
|
| 219 |
-
|
| 220 |
-
|
| 221 |
-
|
| 222 |
-
|
| 223 |
-
|
| 224 |
-
|
| 225 |
-
|
| 226 |
-
|
| 227 |
-
|
| 228 |
-
|
| 229 |
-
|
| 230 |
-
|
| 231 |
-
|
| 232 |
-
|
| 233 |
-
|
| 234 |
-
|
| 235 |
-
|
| 236 |
-
|
| 237 |
-
|
| 238 |
-
|
| 239 |
-
|
| 240 |
-
|
| 241 |
-
|
| 242 |
-
|
| 243 |
-
|
| 244 |
-
|
| 245 |
-
|
| 246 |
-
|
| 247 |
-
|
| 248 |
-
|
| 249 |
-
|
| 250 |
-
|
| 251 |
-
|
| 252 |
-
|
| 253 |
-
|
| 254 |
-
|
| 255 |
-
|
| 256 |
-
|
| 257 |
-
|
| 258 |
-
|
| 259 |
-
|
| 260 |
-
|
| 261 |
-
|
| 262 |
-
|
| 263 |
-
|
| 264 |
-
|
| 265 |
-
|
| 266 |
-
|
| 267 |
-
|
| 268 |
-
// Update the repository URL display if element exists
|
| 269 |
-
const repoUrlElement = document.getElementById('repoUrl');
|
| 270 |
-
if (repoUrlElement) {
|
| 271 |
-
repoUrlElement.textContent = getCurrentSpaceUrl();
|
| 272 |
-
}
|
| 273 |
-
});
|
| 274 |
-
|
| 275 |
-
// Event listeners
|
| 276 |
-
document.getElementById('installBtn').addEventListener('click', installToReachy);
|
| 277 |
-
</script>
|
| 278 |
</body>
|
| 279 |
-
|
| 280 |
-
</html>
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
|
|
|
| 3 |
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Reachy Mini Space Template</title>
|
| 7 |
+
<link rel="stylesheet" href="style.css">
|
| 8 |
</head>
|
|
|
|
| 9 |
<body>
|
| 10 |
+
<!-- ============================================ -->
|
| 11 |
+
<!-- GUIDE PART - DELETE THIS SECTION BEFORE PUBLISHING -->
|
| 12 |
+
<!-- ============================================ -->
|
| 13 |
+
<section class="guide-section">
|
| 14 |
+
<div class="container">
|
| 15 |
+
<div class="guide-header">
|
| 16 |
+
<img src="reachy-mini-icon-happy.png" alt="Reachy Mini Robot" class="robot-icon">
|
| 17 |
+
<h1>Reachy Mini Template</h1>
|
| 18 |
+
<p class="guide-description">
|
| 19 |
+
Duplicate and customize this template to quickly set up a Space for your Reachy Mini project.
|
| 20 |
+
Add your app's content, repository URL, and deploy your Space in just a few minutes!
|
| 21 |
+
</p>
|
| 22 |
+
<p class="guide-info">
|
| 23 |
+
Creating a Hugging Face Space for your Reachy Mini app will make it visible on the Hugging Face platform
|
| 24 |
+
and directly accessible from the Reachy Mini dashboard, so users can easily discover, install, and run your
|
| 25 |
+
app on their robots.
|
| 26 |
+
</p>
|
| 27 |
+
</div>
|
| 28 |
+
|
| 29 |
+
<div class="how-to-section">
|
| 30 |
+
<h2>How to Use This Template</h2>
|
| 31 |
+
|
| 32 |
+
<!-- Carousel -->
|
| 33 |
+
<div class="carousel">
|
| 34 |
+
<div class="carousel-inner">
|
| 35 |
+
<!-- Step 1 -->
|
| 36 |
+
<div class="carousel-item active">
|
| 37 |
+
<div class="step-content">
|
| 38 |
+
<img src="step1.png" alt="Step 1: Duplicate this space" class="step-image">
|
| 39 |
+
<div class="step-text">
|
| 40 |
+
<h3>STEP 1: Duplicate this space</h3>
|
| 41 |
+
<p>Click on the three dots menu and select "Duplicate this Space" to create your own copy.</p>
|
| 42 |
+
</div>
|
| 43 |
+
</div>
|
| 44 |
+
</div>
|
| 45 |
+
|
| 46 |
+
<!-- Step 2 -->
|
| 47 |
+
<div class="carousel-item">
|
| 48 |
+
<div class="step-content">
|
| 49 |
+
<img src="step2.png" alt="Step 2: Change the name" class="step-image">
|
| 50 |
+
<div class="step-text">
|
| 51 |
+
<h3>STEP 2: Change the name of the space</h3>
|
| 52 |
+
<p><strong>NOTE:</strong> Put visibility on 'Private' as long as your space is not ready for new users.</p>
|
| 53 |
+
</div>
|
| 54 |
+
</div>
|
| 55 |
+
</div>
|
| 56 |
+
|
| 57 |
+
<!-- Step 3 -->
|
| 58 |
+
<div class="carousel-item">
|
| 59 |
+
<div class="step-content">
|
| 60 |
+
<img src="step3.png" alt="Step 3: Go to Files" class="step-image">
|
| 61 |
+
<div class="step-text">
|
| 62 |
+
<h3>STEP 3: Go to "Files"</h3>
|
| 63 |
+
<p>Navigate to the Files tab to access your Space's code and configuration files.</p>
|
| 64 |
+
</div>
|
| 65 |
+
</div>
|
| 66 |
+
</div>
|
| 67 |
+
|
| 68 |
+
<!-- Step 4 -->
|
| 69 |
+
<div class="carousel-item">
|
| 70 |
+
<div class="step-content">
|
| 71 |
+
<img src="step4.png" alt="Step 4: Edit README.md" class="step-image">
|
| 72 |
+
<div class="step-text">
|
| 73 |
+
<h3>STEP 4: Click on README.md section, then on the 'Edit' button</h3>
|
| 74 |
+
<p>The README.md contains your Space's metadata and configuration.</p>
|
| 75 |
+
</div>
|
| 76 |
+
</div>
|
| 77 |
+
</div>
|
| 78 |
+
|
| 79 |
+
<!-- Step 5 -->
|
| 80 |
+
<div class="carousel-item">
|
| 81 |
+
<div class="step-content">
|
| 82 |
+
<img src="step5.png" alt="Step 5: Update metadata" class="step-image">
|
| 83 |
+
<div class="step-text">
|
| 84 |
+
<h3>STEP 5: Update your Space's metadata</h3>
|
| 85 |
+
<p>This will update your Space's thumbnail across all Hugging Face Spaces.
|
| 86 |
+
Make sure to include a clear description and add the <code>reachy_mini</code> tag so people can easily find your Space.</p>
|
| 87 |
+
</div>
|
| 88 |
+
</div>
|
| 89 |
+
</div>
|
| 90 |
+
|
| 91 |
+
<!-- Step 6 -->
|
| 92 |
+
<div class="carousel-item">
|
| 93 |
+
<div class="step-content">
|
| 94 |
+
<img src="step6.png" alt="Step 6: Update HTML and CSS" class="step-image">
|
| 95 |
+
<div class="step-text">
|
| 96 |
+
<h3>STEP 6: Update index.html and style.css</h3>
|
| 97 |
+
<p>Create a nice landing page for your Space. This is the storefront of your space.
|
| 98 |
+
Add as much useful information as possible so future users will want to install it.
|
| 99 |
+
Clearly state the goals and benefits of your space, and don't hesitate to mention its
|
| 100 |
+
limitations to encourage potential contributions.</p>
|
| 101 |
+
</div>
|
| 102 |
+
</div>
|
| 103 |
+
</div>
|
| 104 |
+
|
| 105 |
+
<!-- Step 7 -->
|
| 106 |
+
<div class="carousel-item">
|
| 107 |
+
<div class="step-content">
|
| 108 |
+
<img src="step7.png" alt="Step 7: Update Repository URL" class="step-image">
|
| 109 |
+
<div class="step-text">
|
| 110 |
+
<h3>STEP 7: Update Repository URL</h3>
|
| 111 |
+
<p>Change the JavaScript to point to your space's Git repository so users can install your app.</p>
|
| 112 |
+
</div>
|
| 113 |
+
</div>
|
| 114 |
+
</div>
|
| 115 |
+
|
| 116 |
+
<!-- Step 8 -->
|
| 117 |
+
<div class="carousel-item">
|
| 118 |
+
<div class="step-content">
|
| 119 |
+
<img src="step8.png" alt="Step 8: Make your space public" class="step-image">
|
| 120 |
+
<div class="step-text">
|
| 121 |
+
<h3>STEP 8: Put your space on PUBLIC</h3>
|
| 122 |
+
<p>Once everything is ready and tested, change your Space visibility to Public so everyone can use it!</p>
|
| 123 |
+
</div>
|
| 124 |
+
</div>
|
| 125 |
+
</div>
|
| 126 |
+
</div>
|
| 127 |
+
|
| 128 |
+
<!-- Carousel Controls -->
|
| 129 |
+
<button class="carousel-control prev" onclick="changeSlide(-1)">❮</button>
|
| 130 |
+
<button class="carousel-control next" onclick="changeSlide(1)">❯</button>
|
| 131 |
+
|
| 132 |
+
<!-- Carousel Indicators -->
|
| 133 |
+
<div class="carousel-indicators">
|
| 134 |
+
<span class="indicator active" onclick="currentSlide(1)"></span>
|
| 135 |
+
<span class="indicator" onclick="currentSlide(2)"></span>
|
| 136 |
+
<span class="indicator" onclick="currentSlide(3)"></span>
|
| 137 |
+
<span class="indicator" onclick="currentSlide(4)"></span>
|
| 138 |
+
<span class="indicator" onclick="currentSlide(5)"></span>
|
| 139 |
+
<span class="indicator" onclick="currentSlide(6)"></span>
|
| 140 |
+
<span class="indicator" onclick="currentSlide(7)"></span>
|
| 141 |
+
<span class="indicator" onclick="currentSlide(8)"></span>
|
| 142 |
+
</div>
|
| 143 |
+
</div>
|
| 144 |
+
</div>
|
| 145 |
+
|
| 146 |
+
<div class="delete-warning">
|
| 147 |
+
β οΈ <strong>Don't forget to remove this customization guide before making your Space public!</strong>
|
| 148 |
+
</div>
|
| 149 |
+
</div>
|
| 150 |
+
</section>
|
| 151 |
+
|
| 152 |
+
<!-- Separator -->
|
| 153 |
+
<div class="separator">
|
| 154 |
+
<h2>The template starts here π</h2>
|
| 155 |
+
</div>
|
| 156 |
+
|
| 157 |
+
<!-- ============================================ -->
|
| 158 |
+
<!-- CUSTOMIZATION PART - YOUR SPACE TEMPLATE -->
|
| 159 |
+
<!-- ============================================ -->
|
| 160 |
+
<section class="template-section">
|
| 161 |
+
<div class="container">
|
| 162 |
+
<!-- Hero Section -->
|
| 163 |
+
<div class="hero">
|
| 164 |
+
<img src="reachy-mini-icon-happy.png" alt="Reachy Mini Robot" class="hero-robot-icon">
|
| 165 |
+
<h1 class="hero-title">Your Space Title Here</h1>
|
| 166 |
+
|
| 167 |
+
<!-- Placeholder for user's demo image/GIF -->
|
| 168 |
+
<div class="demo-placeholder">
|
| 169 |
+
<p>Add your image, GIF, or demo of your Reachy Mini project here</p>
|
| 170 |
+
</div>
|
| 171 |
+
|
| 172 |
+
<!-- Keywords -->
|
| 173 |
+
<div class="keywords">
|
| 174 |
+
<span class="keyword">AI</span>
|
| 175 |
+
<span class="keyword">Fun</span>
|
| 176 |
+
<span class="keyword">LLM</span>
|
| 177 |
+
<span class="keyword">VLM</span>
|
| 178 |
+
</div>
|
| 179 |
+
|
| 180 |
+
<!-- Description -->
|
| 181 |
+
<p class="description">
|
| 182 |
+
Your space description here. Write a short and clear description so people immediately understand
|
| 183 |
+
your project. Be sure to describe your space well and include relevant keywords so people can easily
|
| 184 |
+
find it. The more details you add, the more attractive and useful your space will be for future users!
|
| 185 |
+
</p>
|
| 186 |
+
|
| 187 |
+
<!-- Install Button -->
|
| 188 |
+
<button class="install-button" onclick="installToReachy()">
|
| 189 |
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
| 190 |
+
<path d="M10 2V14M10 14L14 10M10 14L6 10" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
| 191 |
+
<path d="M2 18H18" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>
|
| 192 |
+
</svg>
|
| 193 |
+
Install to Your Reachy Mini
|
| 194 |
+
</button>
|
| 195 |
+
|
| 196 |
+
<!-- Dashboard URL Input (hidden by default) -->
|
| 197 |
+
<div id="dashboard-input" class="dashboard-input" style="display: none;">
|
| 198 |
+
<label for="dashboardUrl">Your Reachy Dashboard URL:</label>
|
| 199 |
+
<input type="text" id="dashboardUrl" placeholder="http://localhost:8000" value="http://localhost:8000">
|
| 200 |
+
<button onclick="proceedInstall()">Proceed with Installation</button>
|
| 201 |
+
</div>
|
| 202 |
+
</div>
|
| 203 |
+
</div>
|
| 204 |
+
</section>
|
| 205 |
+
|
| 206 |
+
<!-- Footer -->
|
| 207 |
+
<footer class="footer">
|
| 208 |
+
<div class="container">
|
| 209 |
+
<p>Created by <strong>[Your Name]</strong></p>
|
| 210 |
+
<a href="https://huggingface.co/spaces?search=reachy_mini" target="_blank" class="browse-link">
|
| 211 |
+
Browse More Reachy Mini Spaces β
|
| 212 |
+
</a>
|
| 213 |
+
</div>
|
| 214 |
+
</footer>
|
| 215 |
+
|
| 216 |
+
<!-- JavaScript -->
|
| 217 |
+
<script>
|
| 218 |
+
// Carousel functionality
|
| 219 |
+
let currentSlideIndex = 1;
|
| 220 |
+
showSlide(currentSlideIndex);
|
| 221 |
+
|
| 222 |
+
function changeSlide(n) {
|
| 223 |
+
showSlide(currentSlideIndex += n);
|
| 224 |
+
}
|
| 225 |
+
|
| 226 |
+
function currentSlide(n) {
|
| 227 |
+
showSlide(currentSlideIndex = n);
|
| 228 |
+
}
|
| 229 |
+
|
| 230 |
+
function showSlide(n) {
|
| 231 |
+
const slides = document.getElementsByClassName("carousel-item");
|
| 232 |
+
const indicators = document.getElementsByClassName("indicator");
|
| 233 |
+
|
| 234 |
+
if (n > slides.length) { currentSlideIndex = 1; }
|
| 235 |
+
if (n < 1) { currentSlideIndex = slides.length; }
|
| 236 |
+
|
| 237 |
+
for (let i = 0; i < slides.length; i++) {
|
| 238 |
+
slides[i].classList.remove("active");
|
| 239 |
+
}
|
| 240 |
+
for (let i = 0; i < indicators.length; i++) {
|
| 241 |
+
indicators[i].classList.remove("active");
|
| 242 |
+
}
|
| 243 |
+
|
| 244 |
+
slides[currentSlideIndex - 1].classList.add("active");
|
| 245 |
+
indicators[currentSlideIndex - 1].classList.add("active");
|
| 246 |
+
}
|
| 247 |
+
|
| 248 |
+
// Install functionality
|
| 249 |
+
function installToReachy() {
|
| 250 |
+
document.getElementById('dashboard-input').style.display = 'flex';
|
| 251 |
+
}
|
| 252 |
+
|
| 253 |
+
function proceedInstall() {
|
| 254 |
+
const dashboardUrl = document.getElementById('dashboardUrl').value;
|
| 255 |
+
// TODO: Update this URL to point to YOUR SPACE's Git repository
|
| 256 |
+
const repoUrl = 'https://huggingface.co/spaces/YOUR-USERNAME/YOUR-SPACE-NAME';
|
| 257 |
+
|
| 258 |
+
// Construct the installation URL
|
| 259 |
+
const installUrl = `${dashboardUrl}/install?repo=${encodeURIComponent(repoUrl)}`;
|
| 260 |
+
|
| 261 |
+
// Open in new window
|
| 262 |
+
window.open(installUrl, '_blank');
|
| 263 |
+
}
|
| 264 |
+
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 265 |
</body>
|
| 266 |
+
</html>
|
|
|