diff --git a/dashboard-client/app/app/package.json b/dashboard-client/app/app/package.json index 1e0b2e01ad..da43e3d9d7 100644 --- a/dashboard-client/app/app/package.json +++ b/dashboard-client/app/app/package.json @@ -10,7 +10,7 @@ }, "scripts": { "start": "react-scripts start", - "build": "react-scripts build", + "build": "react-scripts build && rm build/static/js/*.map && rm build/static/css/*.map", "test": "react-scripts test", "eject": "react-scripts eject" }, diff --git a/dashboard-client/app/app/src/App.js b/dashboard-client/app/app/src/App.js index 1592c57f08..7fabcc00da 100644 --- a/dashboard-client/app/app/src/App.js +++ b/dashboard-client/app/app/src/App.js @@ -4,6 +4,14 @@ import styled from 'styled-components'; import Tabs from './components/Tabs'; import Search from './components/Search'; import Pareto from './components/Pareto'; +import Footer from './components/Footer'; + +const PageContainer = styled.div` + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; +`; const Container = styled.div` display: flex; @@ -17,6 +25,21 @@ const Container = styled.div` box-shadow: 0 0 4px 0 #777; `; +const Title = styled.h1` + display: flex; + justify-content: center; + align-items: center; + background: ${({ theme }) => theme.primary}; + color: white; + width: 100%; + padding: 3px; +`; + +const imgStyle = { + paddingRight: '20px', + paddingTop: '6px' +}; + class App extends Component { state = { view: 'search' @@ -30,13 +53,15 @@ class App extends Component { render() { const { handleViewChange, state: { view } } = this; return ( - <> + + <img style={imgStyle} src="https://discourse-user-assets.s3.dualstack.us-east-1.amazonaws.com/original/3X/e/d/ed1c70bda321aaeee9e6c20ab650ce8bc34899fa.svg" alt="Free Code Camp Logo" /> Moderator Tools { view === 'search' && } { view === 'reports' && } - +