-
Notifications
You must be signed in to change notification settings - Fork 322
/
Copy pathLevel.js
91 lines (83 loc) · 2.28 KB
/
Level.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
/* eslint-disable no-nested-ternary */
import styled from 'styled-components';
import start from 'images/start.png'
import image1 from 'images/level1.png'
import image2 from 'images/level2.png'
import image3 from 'images/level3.png'
import image4 from 'images/level4.png'
import image5 from 'images/level5.png'
import image6 from 'images/level6.png'
import image7 from 'images/level7.png'
export const Background = styled.div`
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
background-size: cover;
background-position: center;
background-repeat: no-repeat;
background-image: url(${(props) => (props.coordinates === undefined || props.coordinates === '0,0' ? image1 : props.coordinates === '1,0' ? image2 : props.coordinates === '1,1' ? image3 : props.coordinates === '0,1' ? image4 : props.coordinates === '0,2' ? image5 : props.coordinates === '0,3' ? image6 : props.coordinates === '1,3' ? image7 : '')})
`
export const StartBackground = styled.div`
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
background-size: cover;
background-position: center;
background-repeat: no-repeat;
background-image: url(${start})
`
export const LevelCard = styled.div`
padding: 0 20px;
position: relative;
width: 100%;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
`
export const DescriptionCard = styled.div`
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
`
export const Description = styled.p`
font-family: 'Teko', sans-serif;
padding: 20px;
width: 80%;
border-radius: 6px;
color: #FFFAF0;
background: rgb(151 71 255 / 70%);
font-weight: 800;
font-size: 24px;
line-height: 27px;
letter-spacing: 1px;
`
export const GreetingText = styled.h1`
color: white;
font-size: 60px;
letter-spacing: 1px;
`
export const DirectionButton = styled.button`
background: #9747FF;
`
export const SpaceButton = styled.button`
width:150px;
background: none;
border:none;
display: flex;
img{
width: 50%;
padding: 10px;
}
`
export const StarterForm = styled.form`
display: flex;
justify-content: center;
align-items: center;
`