index.tsx 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. import React from 'react'
  2. import ReactDOM from 'react-dom/client'
  3. import './index.css'
  4. import App from './App'
  5. import reportWebVitals from './reportWebVitals'
  6. import '@fontsource/roboto/300.css'
  7. import '@fontsource/roboto/400.css'
  8. import '@fontsource/roboto/500.css'
  9. import '@fontsource/roboto/700.css'
  10. import CssBaseline from '@mui/material/CssBaseline'
  11. import {createTheme, ThemeProvider} from '@mui/material/styles'
  12. import {VideoInfo} from './types'
  13. const theme = createTheme()
  14. const root = ReactDOM.createRoot(document.getElementById('root') as HTMLElement)
  15. const info: VideoInfo = {
  16. totalFrames: 30 * 60 * 5,
  17. frameRate: 30,
  18. boundaryFrames: [1234, 1290, 3000],
  19. }
  20. root.render(
  21. <React.StrictMode>
  22. <ThemeProvider theme={theme}>
  23. <CssBaseline />
  24. <App info={info} />
  25. </ThemeProvider>
  26. </React.StrictMode>,
  27. )
  28. // If you want to start measuring performance in your app, pass a function
  29. // to log results (for example: reportWebVitals(console.log))
  30. // or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
  31. reportWebVitals()