From ba45ba5ae8caffd696eb062d278c06ebc60dfbb8 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Wed, 12 May 2021 14:31:26 +0200 Subject: present screen working --- pages/_app.tsx | 2 +- pages/present.tsx | 87 +++++++++++++++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 85 insertions(+), 4 deletions(-) (limited to 'pages') diff --git a/pages/_app.tsx b/pages/_app.tsx index 6592b09..fecbad0 100644 --- a/pages/_app.tsx +++ b/pages/_app.tsx @@ -4,8 +4,8 @@ import '../styles/colors.css'; import '../styles/globals.css'; import '../styles/keyframes.css'; import '../styles/paper.css'; -import '../styles/util.css'; import '../styles/presentation.css'; +import '../styles/util.css'; export default function Blog({ Component, pageProps }) { return <> diff --git a/pages/present.tsx b/pages/present.tsx index 27e2f1a..eb1b2ec 100644 --- a/pages/present.tsx +++ b/pages/present.tsx @@ -1,7 +1,88 @@ +import Button from '@material-ui/core/Button'; +import { useEffect } from 'react'; + +import ExitToAppRoundedIcon from '@material-ui/icons/ExitToAppRounded'; +import PlayArrowRoundedIcon from '@material-ui/icons/PlayArrowRounded'; +import SettingsRemoteRoundedIcon from '@material-ui/icons/SettingsRemoteRounded'; +import SettingsRoundedIcon from '@material-ui/icons/SettingsRounded'; + +function previous() { + console.log('previous slide'); +} + +function next() { + console.log('next slide'); +} + export default function Present() { - return
-
-
+ useEffect(() => { + setInterval(() => { + document.getElementById('time').innerText = new Date().toLocaleTimeString(); + }, 500); + }, []); + + return
+
+
+
+
+
+
{ + document.getElementById('menu').classList.add('active'); + }} + /> +
+
+ ; } -- cgit v1.2.3