Spaces:
Running
feat: replace the website with a "site has moved" page
Browse filesThe Reachy Mini website now lives at pollen-robotics.com and the copy
hosted in this Space was out of date. The Space now serves one page for
every route and hash, with a single button to the matching page of the
new site:
getting-started -> /reachy-mini/getting-started/
download -> /reachy-mini/download/
apps -> /reachy-mini/apps/
buy -> /reachy-mini/buy/
anything else -> /reachy-mini/
Both "#/x" and "#x" are accepted, as well as the path ("/x").
The button opens a new tab: on huggingface.co the Space runs in a
sandboxed frame that is not allowed to navigate the browser tab. When the
page is opened directly (*.hf.space), it redirects to the same
destination; add ?noredirect to the URL to look at the page itself.
Remove the former React frontend (src/, public/assets). The Express API
in server/ is untouched and keeps serving its endpoints: the desktop app,
pollen-robotics.com and other clients still call them on this host.
public/assets/desktop-app-screenshot--white.png stays because the
reachy_mini documentation embeds it straight from this repository.
Frontend dependencies are left in package.json on purpose, so that the
lockfile and the Docker build are unchanged by this commit.
Co-authored-by: Cursor <cursoragent@cursor.com>
- index.html +229 -4
- public/assets/Reachy-mini-wake-up-companion.mp4 +0 -3
- public/assets/apple-logo.svg +0 -4
- public/assets/application-box.svg +0 -0
- public/assets/assembly-screenshot.png +0 -3
- public/assets/desktop-app-screenshot--dark.png +0 -3
- public/assets/discord-logo.svg +0 -4
- public/assets/expression.svg +0 -0
- public/assets/hf-logo.svg +0 -13
- public/assets/idle-reachy-ai.gif +0 -3
- public/assets/idle-reachy-opencv.gif +0 -3
- public/assets/idle-reachy.gif +0 -3
- public/assets/joystick.svg +0 -0
- public/assets/linux-logo.svg +0 -4
- public/assets/logo--black.svg +0 -13
- public/assets/logo--white.svg +0 -25
- public/assets/logo.svg +0 -33
- public/assets/miniature_lite.png +0 -3
- public/assets/miniature_wireless.png +0 -3
- public/assets/pollen-logo-icon.svg +0 -22
- public/assets/pollen-robotics-logo.svg +0 -92
- public/assets/reachies/astronaut.png +0 -3
- public/assets/reachies/builder.png +0 -3
- public/assets/reachies/captain.png +0 -3
- public/assets/reachies/cowboy.png +0 -3
- public/assets/reachies/doctor.png +0 -3
- public/assets/reachies/explorer.png +0 -3
- public/assets/reachies/hacker.png +0 -3
- public/assets/reachies/jazzman.png +0 -3
- public/assets/reachies/magician.png +0 -3
- public/assets/reachies/plumber.png +0 -3
- public/assets/reachies/student.png +0 -3
- public/assets/reachy-conversation-app.jpg +0 -3
- public/assets/reachy-detective.svg +0 -0
- public/assets/reachy-hand-tracking-app.jpg +0 -3
- public/assets/reachy-how-to-create-app.svg +0 -0
- public/assets/reachy-icon.svg +0 -31
- public/assets/reachy-mini-access-point-QR-code.png +0 -3
- public/assets/reachy-mini-demo-dashboard.gif +0 -3
- public/assets/reachy-mini-hand-tracking.gif +0 -3
- public/assets/reachy-stop.svg +0 -0
- public/assets/reachy-update-box.svg +0 -64
- public/assets/rocket.svg +0 -101
- public/assets/sleeping-reachy.svg +0 -0
- public/assets/windows-logo.svg +0 -4
- public/vite.svg +0 -1
- src/App.jsx +0 -113
- src/assets/hf-logo.svg +0 -19
- src/assets/original/alfred.png +0 -3
- src/assets/original/ambulance.png +0 -3
|
@@ -18,8 +18,200 @@
|
|
| 18 |
<meta charset="UTF-8" />
|
| 19 |
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
| 20 |
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
| 21 |
-
<meta name="description" content="Reachy Mini
|
| 22 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
</head>
|
| 24 |
<body>
|
| 25 |
<!-- Google Tag Manager (noscript) -->
|
|
@@ -27,7 +219,40 @@
|
|
| 27 |
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
|
| 28 |
<!-- End Google Tag Manager (noscript) -->
|
| 29 |
|
| 30 |
-
<
|
| 31 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
</body>
|
| 33 |
</html>
|
|
|
|
| 18 |
<meta charset="UTF-8" />
|
| 19 |
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
| 20 |
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
| 21 |
+
<meta name="description" content="The Reachy Mini website has moved to pollen-robotics.com." />
|
| 22 |
+
<link rel="canonical" href="https://pollen-robotics.com/reachy-mini/" />
|
| 23 |
+
<title>Reachy Mini has moved to pollen-robotics.com</title>
|
| 24 |
+
|
| 25 |
+
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
| 26 |
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
| 27 |
+
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400..700&display=swap" />
|
| 28 |
+
|
| 29 |
+
<!--
|
| 30 |
+
The whole site is this one "we have moved" page: it is served for every
|
| 31 |
+
route (see the SPA fallback in server/index.js) and src/moved.js points
|
| 32 |
+
the button at the matching page of the new site. Markup and styles are
|
| 33 |
+
inline so the page shows at once, and still works if the script fails.
|
| 34 |
+
-->
|
| 35 |
+
<style>
|
| 36 |
+
:root {
|
| 37 |
+
color-scheme: dark;
|
| 38 |
+
--orange: #ff9500;
|
| 39 |
+
--orange-light: #ffb340;
|
| 40 |
+
--orange-dark: #e08500;
|
| 41 |
+
--ink: #1d1d1f;
|
| 42 |
+
}
|
| 43 |
+
|
| 44 |
+
* {
|
| 45 |
+
box-sizing: border-box;
|
| 46 |
+
}
|
| 47 |
+
|
| 48 |
+
html {
|
| 49 |
+
-webkit-text-size-adjust: 100%;
|
| 50 |
+
}
|
| 51 |
+
|
| 52 |
+
body {
|
| 53 |
+
margin: 0;
|
| 54 |
+
background: #0f0f1a linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%) fixed;
|
| 55 |
+
color: #fff;
|
| 56 |
+
font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
| 57 |
+
-webkit-font-smoothing: antialiased;
|
| 58 |
+
}
|
| 59 |
+
|
| 60 |
+
.moved {
|
| 61 |
+
position: relative;
|
| 62 |
+
display: flex;
|
| 63 |
+
flex-direction: column;
|
| 64 |
+
align-items: center;
|
| 65 |
+
justify-content: center;
|
| 66 |
+
min-height: 100vh;
|
| 67 |
+
min-height: 100dvh;
|
| 68 |
+
padding: 32px 24px 48px;
|
| 69 |
+
overflow: hidden;
|
| 70 |
+
text-align: center;
|
| 71 |
+
}
|
| 72 |
+
|
| 73 |
+
/* Soft orange glow, as in the hero of the former site. */
|
| 74 |
+
.moved::before {
|
| 75 |
+
content: '';
|
| 76 |
+
position: absolute;
|
| 77 |
+
top: -20%;
|
| 78 |
+
left: 50%;
|
| 79 |
+
width: 640px;
|
| 80 |
+
height: 640px;
|
| 81 |
+
transform: translateX(-50%);
|
| 82 |
+
background: radial-gradient(circle, rgba(255, 149, 0, 0.16) 0%, transparent 60%);
|
| 83 |
+
pointer-events: none;
|
| 84 |
+
}
|
| 85 |
+
|
| 86 |
+
.moved > * {
|
| 87 |
+
position: relative;
|
| 88 |
+
}
|
| 89 |
+
|
| 90 |
+
.moved__brand {
|
| 91 |
+
display: flex;
|
| 92 |
+
align-items: center;
|
| 93 |
+
gap: 12px;
|
| 94 |
+
margin-bottom: 32px;
|
| 95 |
+
font-size: 20px;
|
| 96 |
+
font-weight: 700;
|
| 97 |
+
letter-spacing: -0.03em;
|
| 98 |
+
}
|
| 99 |
+
|
| 100 |
+
.moved__brand img {
|
| 101 |
+
display: block;
|
| 102 |
+
width: 60px;
|
| 103 |
+
height: 60px;
|
| 104 |
+
}
|
| 105 |
+
|
| 106 |
+
.moved__title {
|
| 107 |
+
max-width: 560px;
|
| 108 |
+
margin: 0 0 16px;
|
| 109 |
+
font-size: 32px;
|
| 110 |
+
font-weight: 700;
|
| 111 |
+
line-height: 1.15;
|
| 112 |
+
letter-spacing: -0.03em;
|
| 113 |
+
text-wrap: balance;
|
| 114 |
+
}
|
| 115 |
+
|
| 116 |
+
.moved__lead {
|
| 117 |
+
max-width: 440px;
|
| 118 |
+
margin: 0 0 32px;
|
| 119 |
+
color: rgba(255, 255, 255, 0.75);
|
| 120 |
+
font-size: 17px;
|
| 121 |
+
line-height: 1.6;
|
| 122 |
+
}
|
| 123 |
+
|
| 124 |
+
.moved__lead strong {
|
| 125 |
+
color: #fff;
|
| 126 |
+
font-weight: 600;
|
| 127 |
+
/* Never break the domain name at its hyphen. */
|
| 128 |
+
white-space: nowrap;
|
| 129 |
+
}
|
| 130 |
+
|
| 131 |
+
.moved__button {
|
| 132 |
+
display: inline-flex;
|
| 133 |
+
align-items: center;
|
| 134 |
+
justify-content: center;
|
| 135 |
+
gap: 10px;
|
| 136 |
+
width: 100%;
|
| 137 |
+
max-width: 360px;
|
| 138 |
+
min-height: 56px;
|
| 139 |
+
padding: 14px 28px;
|
| 140 |
+
border-radius: 999px;
|
| 141 |
+
background: linear-gradient(135deg, var(--orange) 0%, var(--orange-light) 100%);
|
| 142 |
+
box-shadow: 0 8px 28px rgba(255, 149, 0, 0.32);
|
| 143 |
+
/* Dark text: white on this orange is too faint to read outdoors. */
|
| 144 |
+
color: var(--ink);
|
| 145 |
+
font-size: 17px;
|
| 146 |
+
font-weight: 700;
|
| 147 |
+
line-height: 1.25;
|
| 148 |
+
text-decoration: none;
|
| 149 |
+
transition: transform 0.2s ease, background 0.2s ease;
|
| 150 |
+
}
|
| 151 |
+
|
| 152 |
+
.moved__button:hover {
|
| 153 |
+
background: linear-gradient(135deg, var(--orange-dark) 0%, var(--orange) 100%);
|
| 154 |
+
transform: scale(1.02);
|
| 155 |
+
}
|
| 156 |
+
|
| 157 |
+
.moved__button:focus-visible {
|
| 158 |
+
outline: 3px solid #fff;
|
| 159 |
+
outline-offset: 3px;
|
| 160 |
+
}
|
| 161 |
+
|
| 162 |
+
.moved__button svg {
|
| 163 |
+
flex-shrink: 0;
|
| 164 |
+
width: 20px;
|
| 165 |
+
height: 20px;
|
| 166 |
+
fill: currentColor;
|
| 167 |
+
}
|
| 168 |
+
|
| 169 |
+
.moved__destination {
|
| 170 |
+
max-width: 360px;
|
| 171 |
+
margin: 16px 0 0;
|
| 172 |
+
color: rgba(255, 255, 255, 0.6);
|
| 173 |
+
font-size: 14px;
|
| 174 |
+
line-height: 1.5;
|
| 175 |
+
overflow-wrap: anywhere;
|
| 176 |
+
}
|
| 177 |
+
|
| 178 |
+
.moved__sr-only {
|
| 179 |
+
position: absolute;
|
| 180 |
+
width: 1px;
|
| 181 |
+
height: 1px;
|
| 182 |
+
margin: -1px;
|
| 183 |
+
padding: 0;
|
| 184 |
+
border: 0;
|
| 185 |
+
overflow: hidden;
|
| 186 |
+
clip: rect(0 0 0 0);
|
| 187 |
+
white-space: nowrap;
|
| 188 |
+
}
|
| 189 |
+
|
| 190 |
+
@media (min-width: 600px) {
|
| 191 |
+
.moved__title {
|
| 192 |
+
font-size: 44px;
|
| 193 |
+
}
|
| 194 |
+
|
| 195 |
+
.moved__lead {
|
| 196 |
+
font-size: 18px;
|
| 197 |
+
}
|
| 198 |
+
|
| 199 |
+
.moved__button {
|
| 200 |
+
width: auto;
|
| 201 |
+
min-width: 300px;
|
| 202 |
+
}
|
| 203 |
+
}
|
| 204 |
+
|
| 205 |
+
@media (prefers-reduced-motion: reduce) {
|
| 206 |
+
.moved__button {
|
| 207 |
+
transition: none;
|
| 208 |
+
}
|
| 209 |
+
|
| 210 |
+
.moved__button:hover {
|
| 211 |
+
transform: none;
|
| 212 |
+
}
|
| 213 |
+
}
|
| 214 |
+
</style>
|
| 215 |
</head>
|
| 216 |
<body>
|
| 217 |
<!-- Google Tag Manager (noscript) -->
|
|
|
|
| 219 |
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
|
| 220 |
<!-- End Google Tag Manager (noscript) -->
|
| 221 |
|
| 222 |
+
<main class="moved">
|
| 223 |
+
<div class="moved__brand">
|
| 224 |
+
<img src="/favicon.svg" alt="" width="60" height="60" />
|
| 225 |
+
<span>Reachy Mini</span>
|
| 226 |
+
</div>
|
| 227 |
+
|
| 228 |
+
<h1 class="moved__title">Reachy Mini has a new home</h1>
|
| 229 |
+
<p class="moved__lead">
|
| 230 |
+
Our website now lives at <strong>pollen-robotics.com</strong>.
|
| 231 |
+
This page is no longer updated.
|
| 232 |
+
</p>
|
| 233 |
+
|
| 234 |
+
<!--
|
| 235 |
+
The defaults below point at the new home page. src/moved.js swaps in
|
| 236 |
+
the page matching the route or hash the visitor arrived with.
|
| 237 |
+
Keep target="_blank": inside the Hugging Face frame a link cannot
|
| 238 |
+
navigate the browser tab, it can only open a new one.
|
| 239 |
+
-->
|
| 240 |
+
<a
|
| 241 |
+
id="moved-link"
|
| 242 |
+
class="moved__button"
|
| 243 |
+
href="https://pollen-robotics.com/reachy-mini/"
|
| 244 |
+
target="_blank"
|
| 245 |
+
rel="noopener"
|
| 246 |
+
>
|
| 247 |
+
<span id="moved-label">Go to the new site</span>
|
| 248 |
+
<svg viewBox="0 0 24 24" aria-hidden="true" focusable="false">
|
| 249 |
+
<path d="M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z" />
|
| 250 |
+
</svg>
|
| 251 |
+
<span class="moved__sr-only">(opens in a new tab)</span>
|
| 252 |
+
</a>
|
| 253 |
+
<p id="moved-destination" class="moved__destination">pollen-robotics.com/reachy-mini</p>
|
| 254 |
+
</main>
|
| 255 |
+
|
| 256 |
+
<script type="module" src="/src/moved.js"></script>
|
| 257 |
</body>
|
| 258 |
</html>
|
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:8a1f5d23ffddfa87218f1697533f187cf76c3327e18234fa8ed5a2d8bf05dae0
|
| 3 |
-
size 15339406
|
|
|
|
|
|
|
|
|
|
|
|
Git LFS Details
|
Git LFS Details
|
Git LFS Details
|
Git LFS Details
|
Git LFS Details
|
Git LFS Details
|
Git LFS Details
|
Git LFS Details
|
Git LFS Details
|
Git LFS Details
|
Git LFS Details
|
Git LFS Details
|
Git LFS Details
|
Git LFS Details
|
Git LFS Details
|
Git LFS Details
|
Git LFS Details
|
Git LFS Details
|
Git LFS Details
|
Git LFS Details
|
Git LFS Details
|
Git LFS Details
|
Git LFS Details
|
|
@@ -1,113 +0,0 @@
|
|
| 1 |
-
import { useEffect } from 'react';
|
| 2 |
-
import { BrowserRouter, Routes, Route, Navigate, useLocation, useNavigate } from 'react-router-dom';
|
| 3 |
-
import { ThemeProvider, CssBaseline } from '@mui/material';
|
| 4 |
-
import theme from './theme/theme';
|
| 5 |
-
import { AppsProvider } from './context/AppsContext';
|
| 6 |
-
import { AuthProvider } from './context/AuthContext';
|
| 7 |
-
|
| 8 |
-
import Home from './pages/Home';
|
| 9 |
-
import Download from './pages/Download';
|
| 10 |
-
import FAQ from './pages/FAQ';
|
| 11 |
-
import Apps from './pages/Apps';
|
| 12 |
-
import Buy from './pages/Buy';
|
| 13 |
-
import GettingStarted from './pages/GettingStarted';
|
| 14 |
-
import Build from './pages/Build';
|
| 15 |
-
|
| 16 |
-
/**
|
| 17 |
-
* Handle hash-to-path redirect for HuggingFace Spaces iframe embedding.
|
| 18 |
-
*
|
| 19 |
-
* HF propagates the parent page's hash to the iframe on initial load.
|
| 20 |
-
* For example, visiting huggingface.co/reachy-mini#/apps will load the
|
| 21 |
-
* iframe at *.hf.space/#/apps. This component reads that hash and
|
| 22 |
-
* converts it to a BrowserRouter path (e.g. /apps).
|
| 23 |
-
*/
|
| 24 |
-
function HashRedirect() {
|
| 25 |
-
const navigate = useNavigate();
|
| 26 |
-
|
| 27 |
-
useEffect(() => {
|
| 28 |
-
const hash = window.location.hash;
|
| 29 |
-
// Match hash routes like #/apps, #/download, #apps, #download, etc.
|
| 30 |
-
if (hash && hash.length > 1) {
|
| 31 |
-
// Support both #/apps and #apps formats
|
| 32 |
-
const path = hash.startsWith('#/') ? hash.slice(1) : `/${hash.slice(1)}`;
|
| 33 |
-
// Use replaceState to cleanly remove hash without triggering navigation
|
| 34 |
-
window.history.replaceState(null, '', window.location.pathname);
|
| 35 |
-
navigate(path, { replace: true });
|
| 36 |
-
}
|
| 37 |
-
}, [navigate]);
|
| 38 |
-
|
| 39 |
-
return null;
|
| 40 |
-
}
|
| 41 |
-
|
| 42 |
-
/**
|
| 43 |
-
* Sync the current route back to the HF parent page via postMessage.
|
| 44 |
-
* This updates the URL in the browser address bar so users can
|
| 45 |
-
* copy/share deep links (e.g. huggingface.co/reachy-mini#/apps).
|
| 46 |
-
*
|
| 47 |
-
* Also handles scrollTo query parameter for anchor-like behavior.
|
| 48 |
-
*/
|
| 49 |
-
function RouteSync() {
|
| 50 |
-
const location = useLocation();
|
| 51 |
-
|
| 52 |
-
useEffect(() => {
|
| 53 |
-
// Sync current path to parent frame hash (for HF Spaces embedding)
|
| 54 |
-
const isInIframe = window.parent !== window;
|
| 55 |
-
if (isInIframe && location.pathname !== '/') {
|
| 56 |
-
window.parent.postMessage(
|
| 57 |
-
{ hash: `#${location.pathname}` },
|
| 58 |
-
'https://huggingface.co'
|
| 59 |
-
);
|
| 60 |
-
} else if (isInIframe && location.pathname === '/') {
|
| 61 |
-
// Clear hash when on home page
|
| 62 |
-
window.parent.postMessage({ hash: '' }, 'https://huggingface.co');
|
| 63 |
-
}
|
| 64 |
-
|
| 65 |
-
// Handle scrollTo query parameter
|
| 66 |
-
const params = new URLSearchParams(location.search);
|
| 67 |
-
const scrollTo = params.get('scrollTo');
|
| 68 |
-
|
| 69 |
-
if (scrollTo) {
|
| 70 |
-
// Retry mechanism to wait for element to be rendered
|
| 71 |
-
const scrollToElement = (retries = 0) => {
|
| 72 |
-
const element = document.getElementById(scrollTo);
|
| 73 |
-
if (element) {
|
| 74 |
-
element.scrollIntoView({ behavior: 'smooth', block: 'center' });
|
| 75 |
-
} else if (retries < 10) {
|
| 76 |
-
setTimeout(() => scrollToElement(retries + 1), 100);
|
| 77 |
-
}
|
| 78 |
-
};
|
| 79 |
-
setTimeout(() => scrollToElement(), 300);
|
| 80 |
-
} else {
|
| 81 |
-
window.scrollTo({ top: 0, behavior: 'smooth' });
|
| 82 |
-
}
|
| 83 |
-
}, [location.pathname, location.search]);
|
| 84 |
-
|
| 85 |
-
return null;
|
| 86 |
-
}
|
| 87 |
-
|
| 88 |
-
export default function App() {
|
| 89 |
-
return (
|
| 90 |
-
<ThemeProvider theme={theme}>
|
| 91 |
-
<CssBaseline />
|
| 92 |
-
<AuthProvider>
|
| 93 |
-
<AppsProvider>
|
| 94 |
-
<BrowserRouter>
|
| 95 |
-
<HashRedirect />
|
| 96 |
-
<RouteSync />
|
| 97 |
-
<Routes>
|
| 98 |
-
<Route path="/" element={<Home />} />
|
| 99 |
-
<Route path="/getting-started" element={<GettingStarted />} />
|
| 100 |
-
<Route path="https://huggingface.co/docs/reachy_mini/" element={<Build />} />
|
| 101 |
-
<Route path="/download" element={<Download />} />
|
| 102 |
-
<Route path="https://huggingface.co/docs/reachy_mini/troubleshooting" element={<FAQ />} />
|
| 103 |
-
<Route path="/apps" element={<Apps />} />
|
| 104 |
-
<Route path="/buy" element={<Buy />} />
|
| 105 |
-
{/* Catch-all: redirect unknown routes to home */}
|
| 106 |
-
<Route path="*" element={<Navigate to="/" replace />} />
|
| 107 |
-
</Routes>
|
| 108 |
-
</BrowserRouter>
|
| 109 |
-
</AppsProvider>
|
| 110 |
-
</AuthProvider>
|
| 111 |
-
</ThemeProvider>
|
| 112 |
-
);
|
| 113 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Git LFS Details
|
Git LFS Details
|