diff --git a/website/index.js b/website/index.js index ba733ca9..1ff8d17b 100644 --- a/website/index.js +++ b/website/index.js @@ -60,6 +60,10 @@ class Page extends React.Component { render() { const { content } = this.state; + const menuBarBackground = content ? common.white : common.black; + const toggleButtonColor = content ? "inherit" : "yellow"; + const toggleButtonContent = content ? "VIEW CONTENT JSON" : "EDITOR"; + const exampleBlockClassName = content ? "" : "container--dark"; return ( @@ -78,21 +82,18 @@ class Page extends React.Component { - + - {content ? "VIEW CONTENT JSON" : "EDITOR"} + {toggleButtonContent} -
+