From 62589c5a11b7c4681624922a0a11802e4789b2b1 Mon Sep 17 00:00:00 2001 From: empathicqubit Date: Sun, 27 May 2018 19:50:53 -0400 Subject: [PATCH] Added dynamic title. --- frontend/package.json | 1 + frontend/src/index.css | 4 ++++ frontend/src/index.js | 6 +++--- frontend/src/view/admin.css | 18 ++++++++++++++++++ frontend/src/view/admin.js | 4 ++++ frontend/src/view/app.js | 4 ++++ frontend/src/view/buffer-client.css | 4 ++++ frontend/src/view/client.js | 10 +++++++--- frontend/src/view/simulator.js | 4 ++++ frontend/yarn.lock | 24 ++++++++++++++++++++++++ 10 files changed, 73 insertions(+), 6 deletions(-) diff --git a/frontend/package.json b/frontend/package.json index d15a7e2..0bca856 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -7,6 +7,7 @@ "react": "^16.3.2", "react-dom": "^16.3.2", "react-draggable": "^3.0.5", + "react-helmet": "^5.2.0", "react-router": "^4.2.0", "react-router-dom": "^4.2.2", "react-scripts": "1.1.4", diff --git a/frontend/src/index.css b/frontend/src/index.css index 3cd44c9..3f424de 100644 --- a/frontend/src/index.css +++ b/frontend/src/index.css @@ -11,6 +11,10 @@ body { background-color: #FCC5A2; } +h1, h2, h3, h4, h5, h6 { + margin-bottom: 1em; +} + body, button { color: #00173D; } diff --git a/frontend/src/index.js b/frontend/src/index.js index 7db6f32..cba4c83 100644 --- a/frontend/src/index.js +++ b/frontend/src/index.js @@ -27,9 +27,9 @@ const render = () => ReactDOM.render(router(), document.getElementById('root')); let routeSwitch = ( } /> - } /> - } /> - } /> + } /> + } /> + } /> ); diff --git a/frontend/src/view/admin.css b/frontend/src/view/admin.css index e38ce8d..bc6f6e8 100644 --- a/frontend/src/view/admin.css +++ b/frontend/src/view/admin.css @@ -3,9 +3,27 @@ float: left; width: 5em; height: 10em; + margin: 1em 0; -webkit-appearance: slider-vertical; } +.track-controls button { + margin: 0; + border-radius: 0; +} + +.track-controls button:first-child { + border-right: none; + border-bottom-left-radius: .5em; + border-top-left-radius: .5em; +} + +.track-controls button:last-child { + border-left: none; + border-bottom-right-radius: .5em; + border-top-right-radius: .5em; +} + .clients { display: flex; } diff --git a/frontend/src/view/admin.js b/frontend/src/view/admin.js index c757b2d..78a8a92 100644 --- a/frontend/src/view/admin.js +++ b/frontend/src/view/admin.js @@ -2,6 +2,7 @@ import _ from 'lodash'; import React from 'react'; import ReactDOM from 'react-dom'; import Knob from '../Knob'; +import Helmet from 'react-helmet'; import './admin.css'; @@ -171,6 +172,9 @@ class Admin extends React.Component { const state = this.state return (
+ + Source Administrator +

Source administrator

diff --git a/frontend/src/view/app.js b/frontend/src/view/app.js index 284e63f..88439ca 100644 --- a/frontend/src/view/app.js +++ b/frontend/src/view/app.js @@ -1,5 +1,6 @@ import React from 'react'; import { NavLink, Link } from 'react-router-dom'; +import {Helmet} from 'react-helmet'; import './app.css'; @@ -7,6 +8,9 @@ class App extends React.Component { render() { return (
+ + Web Audio +