Spaces:
Sleeping
Sleeping
apirrone
commited on
Commit
·
0fe6450
1
Parent(s):
9aee6fa
update
Browse files- src/pages/GettingStarted.jsx +9 -8
- src/pages/Home.jsx +1 -1
src/pages/GettingStarted.jsx
CHANGED
|
@@ -27,9 +27,10 @@ import Layout from '../components/Layout';
|
|
| 27 |
import PageHero from '../components/PageHero';
|
| 28 |
|
| 29 |
// YouTube Video with styled overlay
|
| 30 |
-
function YouTubeEmbed({ videoId, title }) {
|
| 31 |
const [isPlaying, setIsPlaying] = useState(false);
|
| 32 |
-
const
|
|
|
|
| 33 |
|
| 34 |
if (isPlaying) {
|
| 35 |
return (
|
|
@@ -74,7 +75,7 @@ function YouTubeEmbed({ videoId, title }) {
|
|
| 74 |
{/* Thumbnail */}
|
| 75 |
<Box
|
| 76 |
component="img"
|
| 77 |
-
src={
|
| 78 |
alt={title}
|
| 79 |
sx={{
|
| 80 |
width: '100%',
|
|
@@ -141,7 +142,7 @@ function YouTubeEmbed({ videoId, title }) {
|
|
| 141 |
}
|
| 142 |
|
| 143 |
export default function GettingStarted() {
|
| 144 |
-
const [version, setVersion] = useState('
|
| 145 |
|
| 146 |
return (
|
| 147 |
<Layout transparentHeader>
|
|
@@ -261,12 +262,12 @@ export default function GettingStarted() {
|
|
| 261 |
borderRadius: 3,
|
| 262 |
overflow: 'hidden',
|
| 263 |
backgroundColor: '#000',
|
| 264 |
-
maxWidth:
|
| 265 |
mx: 'auto',
|
| 266 |
boxShadow: '0 8px 40px rgba(0, 0, 0, 0.2)',
|
| 267 |
}}
|
| 268 |
>
|
| 269 |
-
<YouTubeEmbed videoId="PC5Yx950nMY" title="Reachy Mini Lite Assembly" />
|
| 270 |
</Box>
|
| 271 |
|
| 272 |
<Button
|
|
@@ -404,12 +405,12 @@ export default function GettingStarted() {
|
|
| 404 |
borderRadius: 3,
|
| 405 |
overflow: 'hidden',
|
| 406 |
backgroundColor: '#000',
|
| 407 |
-
maxWidth:
|
| 408 |
mx: 'auto',
|
| 409 |
boxShadow: '0 8px 40px rgba(0, 0, 0, 0.2)',
|
| 410 |
}}
|
| 411 |
>
|
| 412 |
-
<YouTubeEmbed videoId="WeKKdnuXca4" title="Reachy Mini Assembly" />
|
| 413 |
</Box>
|
| 414 |
|
| 415 |
<Button
|
|
|
|
| 27 |
import PageHero from '../components/PageHero';
|
| 28 |
|
| 29 |
// YouTube Video with styled overlay
|
| 30 |
+
function YouTubeEmbed({ videoId, title, version = 'wireless' }) {
|
| 31 |
const [isPlaying, setIsPlaying] = useState(false);
|
| 32 |
+
const thumbnailUrlLite = '/assets/miniature_lite.png';
|
| 33 |
+
const thumbnailUrlWireless = '/assets/miniature_wireless.png';
|
| 34 |
|
| 35 |
if (isPlaying) {
|
| 36 |
return (
|
|
|
|
| 75 |
{/* Thumbnail */}
|
| 76 |
<Box
|
| 77 |
component="img"
|
| 78 |
+
src={version === 'lite' ? thumbnailUrlLite : thumbnailUrlWireless}
|
| 79 |
alt={title}
|
| 80 |
sx={{
|
| 81 |
width: '100%',
|
|
|
|
| 142 |
}
|
| 143 |
|
| 144 |
export default function GettingStarted() {
|
| 145 |
+
const [version, setVersion] = useState('wireless'); // 'lite' or 'wireless'
|
| 146 |
|
| 147 |
return (
|
| 148 |
<Layout transparentHeader>
|
|
|
|
| 262 |
borderRadius: 3,
|
| 263 |
overflow: 'hidden',
|
| 264 |
backgroundColor: '#000',
|
| 265 |
+
maxWidth: 1000,
|
| 266 |
mx: 'auto',
|
| 267 |
boxShadow: '0 8px 40px rgba(0, 0, 0, 0.2)',
|
| 268 |
}}
|
| 269 |
>
|
| 270 |
+
<YouTubeEmbed videoId="PC5Yx950nMY" title="Reachy Mini Lite Assembly" version="lite" />
|
| 271 |
</Box>
|
| 272 |
|
| 273 |
<Button
|
|
|
|
| 405 |
borderRadius: 3,
|
| 406 |
overflow: 'hidden',
|
| 407 |
backgroundColor: '#000',
|
| 408 |
+
maxWidth: 1000,
|
| 409 |
mx: 'auto',
|
| 410 |
boxShadow: '0 8px 40px rgba(0, 0, 0, 0.2)',
|
| 411 |
}}
|
| 412 |
>
|
| 413 |
+
<YouTubeEmbed videoId="WeKKdnuXca4" title="Reachy Mini Assembly" version="wireless" />
|
| 414 |
</Box>
|
| 415 |
|
| 416 |
<Button
|
src/pages/Home.jsx
CHANGED
|
@@ -293,7 +293,7 @@ function StatsSection() {
|
|
| 293 |
sx={{
|
| 294 |
position: 'absolute',
|
| 295 |
top: -50,
|
| 296 |
-
right:
|
| 297 |
height: 350,
|
| 298 |
opacity: 1,
|
| 299 |
pointerEvents: 'none',
|
|
|
|
| 293 |
sx={{
|
| 294 |
position: 'absolute',
|
| 295 |
top: -50,
|
| 296 |
+
right: 20,
|
| 297 |
height: 350,
|
| 298 |
opacity: 1,
|
| 299 |
pointerEvents: 'none',
|