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 ++++++++++++++++++++++++++++++------------------------ styles/editor.css | 27 +++++++++++ 2 files changed, 105 insertions(+), 63 deletions(-) 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); - }} - /> -
+ +
diff --git a/styles/editor.css b/styles/editor.css index 881f82c..210ffbc 100644 --- a/styles/editor.css +++ b/styles/editor.css @@ -22,6 +22,33 @@ background-color: var(--c400); } +.appGrid .settings .inner { + margin: 16px; +} + +.settings .inner .title { + font-size: 1em; + font-weight: 500; + color: var(--mint); +} + +.settings .inner .section { + margin-top: 16px; +} + +.settings .inner .section .title { + color: var(--c800); + display: block; +} + +.settings .inner .section > * { margin-bottom: 8px; } +.settings .inner .scroll { top: 32px; } +.settings .inner button { + width: 100%; + background-color: var(--piss); + color: var(--bg); +} + .appGrid .viewer { grid-column: 2; grid-row: 2; -- cgit v1.2.3