|
@@ -11,18 +11,34 @@ const Container = styled.div`
|
|
|
flex-flow: column nowrap;
|
|
|
justify-content: space-around;
|
|
|
align-items: center;
|
|
|
+ height: 100%;
|
|
|
`
|
|
|
|
|
|
const ScoreBoard = styled.div`
|
|
|
display: flex;
|
|
|
flex-flow: row wrap;
|
|
|
- justify-content: space-around;
|
|
|
- align-items: center;
|
|
|
+ justify-content: space-evenly;
|
|
|
+ align-items: flex-start;
|
|
|
align-content: space-around;
|
|
|
+ max-width: 80%;
|
|
|
+ margin-top: 10%;
|
|
|
+`
|
|
|
+
|
|
|
+const LowerContainer = styled.div`
|
|
|
+ display: flex;
|
|
|
+ flex-flow: column nowrap;
|
|
|
+ justify-content: space-between;
|
|
|
+ align-items: center;
|
|
|
+ margin: 1em;
|
|
|
`
|
|
|
|
|
|
const Label = styled.span`
|
|
|
padding: 0.2em;
|
|
|
+ margin-bottom: 0.5em;
|
|
|
+`
|
|
|
+
|
|
|
+const StyledButton = styled(Button)`
|
|
|
+ margin-top: 0.5em;
|
|
|
`
|
|
|
|
|
|
const getUrl = gameId => {
|
|
@@ -48,9 +64,11 @@ export default ({ gameId, onReturnToStart }) => {
|
|
|
.map((data) => <PlayerScoreTile key={data.name} {...data} />)
|
|
|
}
|
|
|
</ScoreBoard>
|
|
|
- <Label>This page can be directly linked with:</Label>
|
|
|
- <Label><ClickToCopy text={getUrl(gameId)} /></Label>
|
|
|
- <Button onClick={onReturnToStart}>Return to Start</Button>
|
|
|
+ <LowerContainer>
|
|
|
+ <Label>This page can be directly linked with:</Label>
|
|
|
+ <Label><ClickToCopy text={getUrl(gameId)} /></Label>
|
|
|
+ <StyledButton onClick={onReturnToStart}>Return to Start</StyledButton>
|
|
|
+ </LowerContainer>
|
|
|
</Container>
|
|
|
);
|
|
|
}
|