Skip to content

Commit 72b8b6f

Browse files
committed
feat: add four preview videos in about page
1 parent 73b301f commit 72b8b6f

File tree

2 files changed

+37
-14
lines changed

2 files changed

+37
-14
lines changed

src/components/Routes.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ const Routes = () => (
3333
{/* Dataset Details Page */}
3434
<Route
3535
path={`${RoutesEnum.DATABASES}/:dbName/:docId`}
36-
// element={<DatasetDetailPage />}
37-
element={<UpdatedDatasetDetailPage />}
36+
element={<DatasetDetailPage />}
37+
// element={<UpdatedDatasetDetailPage />}
3838
/>
3939

4040
{/* Search Page */}

src/pages/AboutPage.tsx

Lines changed: 35 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ const AboutPage: React.FC = () => {
272272
Getting Started with NeuroJSON
273273
</Typography>
274274

275-
<Grid container spacing={5} sx={{ mt: 3 }}>
275+
<Grid container spacing={5} sx={{ mt: 3 }} ref={searchVideoRef}>
276276
<Grid item xs={12}>
277277
<Divider
278278
sx={{
@@ -292,14 +292,14 @@ const AboutPage: React.FC = () => {
292292
</Typography>
293293
</Divider>
294294
</Grid>
295-
<Grid item xs={12} sm={6} ref={searchVideoRef}>
295+
<Grid item xs={12} sm={6}>
296296
<TutorialVideoItem
297297
title="Search tutorial"
298298
videoUrl="https://neurojson.io/io/download/static/videos/search_video.mp4"
299299
/>
300300
</Grid>
301301
</Grid>
302-
<Grid container spacing={5} sx={{ mt: 3 }}>
302+
<Grid container spacing={5} sx={{ mt: 3 }} ref={previewVideoRef}>
303303
<Grid item xs={12}>
304304
<Divider
305305
sx={{ borderColor: Colors.darkPurple, opacity: 1, mb: 2 }}
@@ -312,14 +312,38 @@ const AboutPage: React.FC = () => {
312312
</Typography>
313313
</Divider>
314314
</Grid>
315-
<Grid item xs={12} sm={6} ref={previewVideoRef}>
315+
<Grid item xs={12} sm={6}>
316316
<TutorialVideoItem
317317
title="Preview tutorial"
318318
videoUrl="https://neurojson.io/io/download/static/videos/preview.mp4"
319319
/>
320320
</Grid>
321+
<Grid item xs={12} sm={6}>
322+
<TutorialVideoItem
323+
title="mesh preview tutorial"
324+
videoUrl="https://neurojson.io/io/download/static/videos/preview_mesh.mp4"
325+
/>
326+
</Grid>
327+
<Grid item xs={12} sm={6}>
328+
<TutorialVideoItem
329+
title="fnirs preview tutorial"
330+
videoUrl="https://neurojson.io/io/download/static/videos/preview_fnirs.mp4"
331+
/>
332+
</Grid>
333+
<Grid item xs={12} sm={6}>
334+
<TutorialVideoItem
335+
title="atlas preview tutorial"
336+
videoUrl="https://neurojson.io/io/download/static/videos/preview_atlas.mp4"
337+
/>
338+
</Grid>
339+
<Grid item xs={12} sm={6}>
340+
<TutorialVideoItem
341+
title="mri preview tutorial"
342+
videoUrl="https://neurojson.io/io/download/static/videos/preview_mri.mp4"
343+
/>
344+
</Grid>
321345
</Grid>
322-
<Grid container spacing={5} sx={{ mt: 3 }}>
346+
<Grid container spacing={5} sx={{ mt: 3 }} ref={downloadVideoRef}>
323347
<Grid item xs={12}>
324348
<Divider
325349
sx={{ borderColor: Colors.darkPurple, opacity: 1, mb: 2 }}
@@ -332,6 +356,12 @@ const AboutPage: React.FC = () => {
332356
</Typography>
333357
</Divider>
334358
</Grid>
359+
<Grid item xs={12} sm={6}>
360+
<TutorialVideoItem
361+
title="Download tutorial"
362+
videoUrl="https://neurojson.io/io/download/static/videos/download.mp4"
363+
/>
364+
</Grid>
335365
<Grid item xs={12} sm={6} ref={apiVideoRef}>
336366
<TutorialVideoItem
337367
title="Rest API - Python tutorial"
@@ -345,13 +375,6 @@ const AboutPage: React.FC = () => {
345375
videoUrl="https://neurojson.io/io/download/static/videos/matlab_api.mp4"
346376
/>
347377
</Grid>
348-
349-
<Grid item xs={12} sm={6} ref={downloadVideoRef}>
350-
<TutorialVideoItem
351-
title="Download tutorial"
352-
videoUrl="https://neurojson.io/io/download/static/videos/download.mp4"
353-
/>
354-
</Grid>
355378
</Grid>
356379
<Grid container spacing={5} sx={{ mt: 3 }}>
357380
<Grid item xs={12}>

0 commit comments

Comments
 (0)