From fec192846e2702498d400b3c07fa5c242c4098de Mon Sep 17 00:00:00 2001 From: Benjamin Jones Date: Fri, 5 Mar 2021 14:37:53 +0100 Subject: [PATCH] added simple chat and begining of Info panel (next streams announcement etc --- app.js | 5 +- index.html | 2 +- package.json | 4 +- .../fonts/Lunchtype/lunchtype24-medium.ttf | Bin 0 -> 60624 bytes .../styles/{fontface.css => fontface.scss} | 12 +- src/assets/styles/index.scss | 5 +- src/assets/styles/{reset.css => reset.scss} | 0 src/assets/theme/index.js | 2 +- src/components/Chat/index.js | 20 +++ src/components/Chat/styles.js | 9 ++ src/components/Info/index.js | 18 +++ src/components/Info/styles.js | 9 ++ src/components/Text/index.js | 119 ++++++++++++++++++ src/components/Text/styles.js | 25 ++++ src/components/Video/index.js | 12 +- src/data/strings.js | 5 + yarn.lock | 108 +++++++++++++++- 17 files changed, 338 insertions(+), 17 deletions(-) create mode 100644 src/assets/fonts/Lunchtype/lunchtype24-medium.ttf rename src/assets/styles/{fontface.css => fontface.scss} (56%) rename src/assets/styles/{reset.css => reset.scss} (100%) create mode 100644 src/components/Chat/index.js create mode 100644 src/components/Chat/styles.js create mode 100644 src/components/Info/index.js create mode 100644 src/components/Info/styles.js create mode 100644 src/components/Text/index.js create mode 100644 src/components/Text/styles.js create mode 100644 src/data/strings.js diff --git a/app.js b/app.js index 958a1dd..217cb9d 100644 --- a/app.js +++ b/app.js @@ -6,6 +6,7 @@ import { useEffect, useState } from 'preact/hooks' import Video from './src/components/Video' import config from './src/data/conf.json' +import Info from './src/components/Info' export default () => { const [isPlaying, setIsPlaying] = useState(false) @@ -27,8 +28,10 @@ export default () => { return (
- {videoUrl && ( + {videoUrl ? (
) diff --git a/index.html b/index.html index b5f8c4b..e1031c1 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ UNDERSCORE STREAMS - +