diff --git a/frontend/src/buffer-client.js b/frontend/src/buffer-client.js index e98cb26..9965bda 100644 --- a/frontend/src/buffer-client.js +++ b/frontend/src/buffer-client.js @@ -1,29 +1,35 @@ import React from 'react'; +import './buffer-client.css'; + class BufferClient extends React.Component { constructor(props) { super(props); } render() { + let enabledSources = this.props.sources.filter(source => source.enabled); return (
- {"Client " + (this.props.clientName || this.props.clientId)} + {"Client " + (this.props.clientName || this.props.clientId)}
- Enter client name: this.props.onChangeName(evt.target.value) } /> - + Enter client name: this.props.onChangeName(evt.target.value) } /> +
- Current play position: {this.props.realPosition / 1000} seconds + Current play position: {this.props.realPosition / 1000} seconds

- Enabled sources: - + {enabledSources.length + ?
+ Enabled sources: + +
: null}
); } diff --git a/frontend/src/index.css b/frontend/src/index.css index f475615..06ca1f5 100644 --- a/frontend/src/index.css +++ b/frontend/src/index.css @@ -15,6 +15,13 @@ body, button { color: #00173D; } +input[type="text"], input[type="number"], input[type="email"] { + background-color: #A2F9FC; + border: 2px ridge #F17A6B; + border-radius: .4em; + padding: 0.25em; +} + input[type="range"] { width: 90vw; display: block; diff --git a/frontend/src/index.js b/frontend/src/index.js index be5fdd2..77a90ea 100644 --- a/frontend/src/index.js +++ b/frontend/src/index.js @@ -6,6 +6,8 @@ import StartAudioContext from 'startaudiocontext'; import { HashRouter, Route, Switch } from 'react-router-dom'; import './index.css'; +import './range.css'; + import App from './app'; import Client from './client'; import Admin from './admin'; diff --git a/frontend/src/simulator.css b/frontend/src/simulator.css index d6b2769..cc8651a 100644 --- a/frontend/src/simulator.css +++ b/frontend/src/simulator.css @@ -13,7 +13,7 @@ mask-image: url('../node_modules/material-design-icons/hardware/svg/design/ic_speaker_24px.svg'); mask-repeat: none; mask-size: contain; - background-color: green; + background-color: #109030; width: 100%; z-index: -1; height: 100%; @@ -27,6 +27,7 @@ padding-top: 1em; width: 3em; height: 3em; + background-color: #c01030;; color: #000; border-radius: 3em; vertical-align: bottom;