mirror of
https://github.com/He4eT/elseifplayer.git
synced 2026-05-05 09:27:23 +00:00
Add basic styles
This commit is contained in:
parent
a16e38eca8
commit
6fda37feb5
4 changed files with 44 additions and 5 deletions
|
|
@ -10,6 +10,8 @@ import CheapGlkOte from 'cheap-glkote'
|
||||||
import TextBuffer from './TextBuffer'
|
import TextBuffer from './TextBuffer'
|
||||||
import InputBox from './InputBox'
|
import InputBox from './InputBox'
|
||||||
|
|
||||||
|
import './player.css'
|
||||||
|
|
||||||
const INITIAL_STATUS = {
|
const INITIAL_STATUS = {
|
||||||
stage: 'loading',
|
stage: 'loading',
|
||||||
details: 'Preparing...'
|
details: 'Preparing...'
|
||||||
|
|
@ -104,7 +106,7 @@ export default function ({ vmParts: { file, engine } }) {
|
||||||
return status.stage !== 'ready'
|
return status.stage !== 'ready'
|
||||||
? (<div>{status.details}</div>)
|
? (<div>{status.details}</div>)
|
||||||
: (
|
: (
|
||||||
<section>
|
<section className='ifplayer'>
|
||||||
<TextBuffer {...{
|
<TextBuffer {...{
|
||||||
inbox,
|
inbox,
|
||||||
currentWindow
|
currentWindow
|
||||||
|
|
|
||||||
26
src/components/player/player.css
Normal file
26
src/components/player/player.css
Normal file
|
|
@ -0,0 +1,26 @@
|
||||||
|
.ifplayer {
|
||||||
|
height: 100%;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
box-sizing: border-box;
|
||||||
|
|
||||||
|
padding: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.inputBox {
|
||||||
|
flex: 0 1 auto;
|
||||||
|
|
||||||
|
border: 2px solid #000;
|
||||||
|
padding: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.textBuffer {
|
||||||
|
flex: 2 1 auto;
|
||||||
|
overflow-y: scroll;
|
||||||
|
box-sizing: border-box;
|
||||||
|
|
||||||
|
border: 2px solid #000;
|
||||||
|
padding: 8px;
|
||||||
|
margin-bottom: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -1,3 +1,17 @@
|
||||||
html, body {
|
html, body {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
height: 100vh;
|
||||||
|
}
|
||||||
|
|
||||||
|
#root {
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.app {
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -14,8 +14,5 @@ export default function ({ setTheme, theme, encodedUrl }) {
|
||||||
setTargetUrl(decode(encodedUrl))
|
setTargetUrl(decode(encodedUrl))
|
||||||
}, [encodedUrl])
|
}, [encodedUrl])
|
||||||
|
|
||||||
return (
|
return (<UrlPlayer url={targetUrl} />)
|
||||||
<main>
|
|
||||||
<UrlPlayer url={targetUrl} />
|
|
||||||
</main>)
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue