aboutsummaryrefslogtreecommitdiff
path: root/src/index.js
diff options
context:
space:
mode:
authorEug-VS <eug-vs@keemail.me>2020-01-02 17:20:23 +0300
committerEug-VS <eug-vs@keemail.me>2020-01-02 17:20:23 +0300
commit7c4e13d11bc2fc5b0f03efc959dd551a30565e8a (patch)
tree897f94f10f6bf2289b191bc89679e7c18ef14424 /src/index.js
parent88475b18f12e16fe32130a9e52ff6fe4297f5ba3 (diff)
downloadchrono-cube-ui-7c4e13d11bc2fc5b0f03efc959dd551a30565e8a.tar.gz
Create Scoreboard component & integrate with API
Diffstat (limited to 'src/index.js')
-rw-r--r--src/index.js28
1 files changed, 23 insertions, 5 deletions
diff --git a/src/index.js b/src/index.js
index 5c657f9..38a79a6 100644
--- a/src/index.js
+++ b/src/index.js
@@ -1,10 +1,17 @@
import React, { useState } from 'react';
import ReactDOM from 'react-dom';
+import {
+ Typography,
+ Paper,
+ Container,
+} from "@material-ui/core";
+
import styled from 'styled-components';
import CssBaseline from '@material-ui/core/CssBaseline'
import Header from './components/Header/Header';
+import Scoreboard from "./components/Scoreboard/Scoreboard";
const App = () => {
@@ -15,11 +22,22 @@ const App = () => {
<Root>
<CssBaseline/>
<Header setPage={setPage} />
- <h1> This is the {page} page! </h1>
- <p>
- This text is rendered outside of <code>Header</code> component, but
- interacting with <code>Header</code> can influence content of this page!
- </p>
+ <Container maxWidth="xl">
+ <Paper elevation={4} style={{backgroundColor: "bisque"}}>
+ <Typography variant="h4"> This is the {page} page! </Typography>
+ {
+ (page === 'scoreboard')?
+ (<Scoreboard/>)
+ :
+ (
+ <p>
+ This text is rendered outside of <code>Header</code> component, but
+ interacting with <code>Header</code> can influence content of this page!
+ </p>
+ )
+ }
+ </Paper>
+ </Container>
</Root>
);
};