|
@@ -29,12 +29,12 @@ const ScoreBoard = styled.div`
|
|
margin-top: 2em;
|
|
margin-top: 2em;
|
|
`
|
|
`
|
|
|
|
|
|
-const LowerContainer = styled.div`
|
|
|
|
|
|
+const LinkedGameContainer = styled.div`
|
|
display: flex;
|
|
display: flex;
|
|
- flex-flow: column nowrap;
|
|
|
|
- justify-content: space-between;
|
|
|
|
- align-items: center;
|
|
|
|
- margin: 1em;
|
|
|
|
|
|
+ justify-content: center;
|
|
|
|
+ width: 100%;
|
|
|
|
+ margin-top: 1em;
|
|
|
|
+ margin-bottom: 10em;
|
|
`
|
|
`
|
|
|
|
|
|
const Label = styled.span`
|
|
const Label = styled.span`
|
|
@@ -71,20 +71,16 @@ export default () => {
|
|
.map((data) => <PlayerScoreTile key={data.name} {...data} />)
|
|
.map((data) => <PlayerScoreTile key={data.name} {...data} />)
|
|
}
|
|
}
|
|
</ScoreBoard>
|
|
</ScoreBoard>
|
|
- {
|
|
|
|
- linkedGame
|
|
|
|
- ? (
|
|
|
|
- <StyledButton onClick={() => dispatch.goToLobby(linkedGame)}>
|
|
|
|
|
|
+ <LinkedGameContainer>
|
|
|
|
+ {
|
|
|
|
+ linkedGame
|
|
|
|
+ ? <StyledButton onClick={() => dispatch.goToLobby(linkedGame)}>
|
|
Continue to Linked Game Lobby
|
|
Continue to Linked Game Lobby
|
|
</StyledButton>
|
|
</StyledButton>
|
|
- )
|
|
|
|
- : <GameCreationForm afterCreate={linkId => linkGame(gameId, linkId)}/>
|
|
|
|
- }
|
|
|
|
- <LowerContainer>
|
|
|
|
- <Label>This page can be directly linked with:</Label>
|
|
|
|
- <Label><ClickToCopy text={getUrl(gameId)} /></Label>
|
|
|
|
- <StyledButton onClick={dispatch.resetGame}>Return to Start</StyledButton>
|
|
|
|
- </LowerContainer>
|
|
|
|
|
|
+ : <GameCreationForm afterCreate={linkId => linkGame(gameId, linkId)}/>
|
|
|
|
+ }
|
|
|
|
+ </LinkedGameContainer>
|
|
|
|
+ <Label><ClickToCopy text={getUrl(gameId)}>Click here to copy a link to this summary!</ClickToCopy></Label>
|
|
</Container>
|
|
</Container>
|
|
</HeaderAndFooter>
|
|
</HeaderAndFooter>
|
|
);
|
|
);
|