-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
118 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
packages/game-app/src/_shared/components/TowColumnPage/TowColumnPage.styled.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import styled from 'styled-components'; | ||
import { flex, FlexProps } from 'styled-system'; | ||
|
||
export const TowColumnsContainer = styled.div` | ||
width: 100vw; | ||
height: 100vh; | ||
overflow: hidden; | ||
display: flex; | ||
flex-direction: row; | ||
`; | ||
|
||
TowColumnsContainer.displayName = 'TowColumnsContainer'; | ||
|
||
export const Column = styled.div<FlexProps>` | ||
${flex} | ||
`; | ||
|
||
Column.displayName = 'Column'; | ||
|
||
export const LeftColumn = styled(Column)` | ||
padding: 40px 8%; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
background: #eeeeee; | ||
box-sizing: border-box; | ||
max-width: 45%; | ||
flex: 0.45 0.45 auto; | ||
`; | ||
|
||
LeftColumn.displayName = 'LeftColumn'; | ||
|
||
export const Logo = styled.div` | ||
width: 100px; | ||
position: absolute; | ||
top: 16px; | ||
left: 8%; | ||
svg { | ||
max-width: 100%; | ||
} | ||
`; | ||
|
||
Logo.displayName = 'Logo'; |
23 changes: 23 additions & 0 deletions
23
packages/game-app/src/_shared/components/TowColumnPage/TowColumnPage.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import React from 'react'; | ||
import { Column, LeftColumn, Logo, TowColumnsContainer } from './TowColumnPage.styled'; | ||
import { ReactComponent as TextLogo } from '@assets/images/eficode-text-logo.svg'; | ||
|
||
type Props = { | ||
left: React.ReactElement; | ||
}; | ||
|
||
const TowColumnPage: React.FC<Props> = ({ left }) => { | ||
return ( | ||
<TowColumnsContainer> | ||
<Logo> | ||
<TextLogo /> | ||
</Logo> | ||
<LeftColumn>{left}</LeftColumn> | ||
<Column flex={0.55}></Column> | ||
</TowColumnsContainer> | ||
); | ||
}; | ||
|
||
TowColumnPage.displayName = 'TowColumnPage'; | ||
|
||
export default TowColumnPage; |
3 changes: 3 additions & 0 deletions
3
packages/game-app/src/_shared/components/TowColumnPage/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import TowColumnPage from './TowColumnPage'; | ||
|
||
export default TowColumnPage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
packages/game-app/src/login/components/Login/Login.styled.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { animations } from '@pipeline/components'; | ||
import styled from 'styled-components'; | ||
|
||
export const LoginForm = styled.div<{ error?: boolean }>` | ||
${props => props.error && animations.shake()} | ||
`; | ||
|
||
LoginForm.displayName = 'LoginForm'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters