@@ -4,7 +4,14 @@ import { useLogout } from '@pipeline/auth';
4
4
import { RoutingPath , useNavigateTo } from '@pipeline/routing' ;
5
5
import { Box , Button , Link , TextLogo , Typography } from '@pipeline/components' ;
6
6
import JoinGameButton from '../JoinGameButton' ;
7
- import { DashboardContainer , DashboardHeader } from './Dashboard.styled' ;
7
+ import {
8
+ CardsIllustration ,
9
+ DashboardContainer ,
10
+ DashboardHeader ,
11
+ DashboardLeftSide ,
12
+ Triangle ,
13
+ } from './Dashboard.styled' ;
14
+ import { ReactComponent as FloatingCardsImg } from '@assets/images/dashboard-floating-cards-reference.svg' ;
8
15
9
16
type Props = { } ;
10
17
@@ -26,17 +33,23 @@ const Dashboard: React.FC<Props> = () => {
26
33
< Button label = { t ( 'dashboard.contactUs' ) } onClick = { ( ) => ( { } ) } />
27
34
</ Box >
28
35
</ DashboardHeader >
29
- < Box maxWidth = "40vw" >
30
- < Typography variant = "title" fontFamily = "Merriweather" >
31
- { t ( 'dashboard.title' ) }
32
- </ Typography >
33
- < Typography mt = { 3 } variant = "dialogHead" fontWeight = "normal" >
34
- { t ( 'dashboard.message' ) }
35
- </ Typography >
36
- < Box mt = { 4 } display = "flex" flexDirection = "row" >
37
- < Button id = "go-to-create-game-button" onClick = { goToCreateGame } label = { t ( 'dashboard.newGameLabel' ) } />
38
- < JoinGameButton />
39
- </ Box >
36
+ < Box flex = { 1 } display = "flex" flexDirection = "row" >
37
+ < DashboardLeftSide >
38
+ < Typography variant = "title" fontFamily = "Merriweather" >
39
+ { t ( 'dashboard.title' ) }
40
+ </ Typography >
41
+ < Typography mt = { 3 } variant = "dialogHead" fontWeight = "normal" >
42
+ { t ( 'dashboard.message' ) }
43
+ </ Typography >
44
+ < Box mt = { 4 } display = "flex" flexDirection = "row" >
45
+ < Button id = "go-to-create-game-button" onClick = { goToCreateGame } label = { t ( 'dashboard.newGameLabel' ) } />
46
+ < JoinGameButton />
47
+ </ Box >
48
+ </ DashboardLeftSide >
49
+ < Triangle />
50
+ < CardsIllustration flex = { 1 } >
51
+ < FloatingCardsImg />
52
+ </ CardsIllustration >
40
53
</ Box >
41
54
</ Box >
42
55
</ DashboardContainer >
0 commit comments