From 2fc2a8c76722f801c29e8a314f8de22ae9572a04 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Sat, 19 Jun 2021 13:22:52 +0200 Subject: button styling --- pages/editor.tsx | 141 ++++++++++++++++++++++++++++++------------------------- 1 file changed, 78 insertions(+), 63 deletions(-) (limited to 'pages') diff --git a/pages/editor.tsx b/pages/editor.tsx index a1960a8..0387246 100644 --- a/pages/editor.tsx +++ b/pages/editor.tsx @@ -27,6 +27,10 @@ import NavigateNextRoundedIcon from '@material-ui/icons/NavigateNextRounded'; import SkipPreviousRoundedIcon from '@material-ui/icons/SkipPreviousRounded'; import { mdiCursorDefault } from '@mdi/js'; +import CodeRoundedIcon from '@material-ui/icons/CodeRounded'; +import GetAppRoundedIcon from '@material-ui/icons/GetAppRounded'; +import VideoLabelRoundedIcon from '@material-ui/icons/VideoLabelRounded'; + var keyframeInAnimations: { [key: string]: { x: number; y: number; }; } = {}; var slideAPIs: { [key: string]: any; }[] = []; @@ -670,69 +674,80 @@ export default function Index() {
- { - var file = event.target.files[0]; - if (!file) return; - var reader = new FileReader(); - reader.addEventListener('load', ev => { - player.loadVideo(ev.target.result as string); - - player.player.addEventListener('play', () => setPlaying(true)); - player.player.addEventListener('pause', () => setPlaying(false)); - }); - reader.readAsDataURL(file); - }} - /> -
+ +
-- cgit v1.2.3