diff --git a/src/assets/demo-with-narration.mp4 b/src/assets/demo-with-narration.mp4 new file mode 100644 index 0000000..f0d5112 Binary files /dev/null and b/src/assets/demo-with-narration.mp4 differ diff --git a/src/components/BrainDataIntro.tsx b/src/components/BrainDataIntro.tsx index 33fd499..a1c7af9 100644 --- a/src/components/BrainDataIntro.tsx +++ b/src/components/BrainDataIntro.tsx @@ -1,7 +1,13 @@ import { Box, Divider, Link, Typography } from '@mui/material'; -import { FC } from 'react'; +import { FC, useState } from 'react'; +import { VideoPopup } from './VideoPopup'; export const BrainDataIntro: FC = () => { + // video popup state + const [open, setOpen] = useState(false); + const handleOpen = () => setOpen(true); + const handleClose = () => setOpen(false); + return ( @@ -48,9 +54,14 @@ export const BrainDataIntro: FC = () => {
  • Data are available for download in CSV or JSON format using the respective button. Click "DISMISS" when done
  • - Click here for a step-by-step visual demonstration. + Click{' '} + + here + {' '} + for a step-by-step visual demonstration.

    +
    ); }; diff --git a/src/components/VideoPopup.tsx b/src/components/VideoPopup.tsx new file mode 100644 index 0000000..ffebe8c --- /dev/null +++ b/src/components/VideoPopup.tsx @@ -0,0 +1,21 @@ +import { Dialog, IconButton } from '@mui/material'; +import CloseIcon from '@mui/icons-material/Close'; +import videoPath from '../assets/demo-with-narration.mp4'; +import { FC } from 'react'; + +interface VideoPopupProps { + open: boolean; + onClose: () => void; +} + +export const VideoPopup: FC = ({ open, onClose }) => { + console.log('videoPath', videoPath); + return ( + + + + + + + ); +}; diff --git a/src/pages/Root.tsx b/src/pages/Root.tsx index efbfdb8..7003742 100644 --- a/src/pages/Root.tsx +++ b/src/pages/Root.tsx @@ -6,10 +6,17 @@ import ChevronRightIcon from '@mui/icons-material/ChevronRight'; import OndemandVideoIcon from '@mui/icons-material/OndemandVideo'; import InfoIcon from '@mui/icons-material/Info'; import CallIcon from '@mui/icons-material/Call'; +import { useState } from 'react'; +import { VideoPopup } from '../components/VideoPopup'; export function RootLayout() { const datasets = [{ displayedName: 'Brain Tissue', name: 'brain-tissue' }]; + // video + const [open, setOpen] = useState(false); + const handleOpen = () => setOpen(true); + const handleClose = () => setOpen(false); + return ( <> theme.zIndex.drawer + 1 }}> @@ -49,7 +56,7 @@ export function RootLayout() { ))} - + @@ -95,6 +102,7 @@ export function RootLayout() { > + ); }