forked from thesam73/wordle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
InfoModal.tsx
99 lines (93 loc) · 2.93 KB
/
InfoModal.tsx
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
92
93
94
95
96
97
98
99
import { Cell } from '../grid/Cell'
import { BaseModal } from './BaseModal'
type Props = {
isOpen: boolean
handleClose: () => void
}
export const InfoModal = ({ isOpen, handleClose }: Props) => {
return (
<BaseModal title="How to play" isOpen={isOpen} handleClose={handleClose}>
<p className="text-sm text-gray-500 dark:text-gray-300">
Guess the <b>color code </b>of the tile above in 6 tries. After each
guess, the color of the tiles will change to show how close your guess
was to the color. And the color of the characters will be the color your
guess.
</p>
<div className="flex justify-center mb-1 mt-4">
<Cell
isRevealing={true}
isCompleted={true}
value="F"
status="correct"
color="FF0000"
/>
<Cell value="F" color="FF0000" />
<Cell value="0" color="FF0000" />
<Cell value="0" color="FF0000" />
<Cell value="0" color="FF0000" />
<Cell value="0" color="FF0000" />
</div>
<p className="text-sm text-gray-500 dark:text-gray-300">
The letter F is in the color code and in the correct spot.
</p>
<div className="flex justify-center mb-1 mt-4">
<Cell value="0" color="008000" />
<Cell value="0" color="008000" />
<Cell
isRevealing={true}
isCompleted={true}
value="8"
color="008000"
status="present"
/>
<Cell value="0" color="008000" />
<Cell value="0" color="008000" />
<Cell value="0" color="008000" />
</div>
<p className="text-sm text-gray-500 dark:text-gray-300">
The letter 8 is in the color code but in the wrong spot.
</p>
<div className="flex justify-center mb-1 mt-4">
<Cell value="0" color="0000CD" />
<Cell value="0" color="0000CD" />
<Cell value="0" color="0000CD" />
<Cell value="0" color="0000CD" />
<Cell
isRevealing={true}
isCompleted={true}
value="C"
color="0000CD"
status="absent"
/>
<Cell value="D" color="0000CD" />
</div>
<p className="text-sm text-gray-500 dark:text-gray-300">
The letter C is not in the color code in any spot.
</p>
<p className="mt-6 text-sm text-gray-500 dark:text-gray-300">
Colorfle by{' '}
<a
href="https://twitter.com/mazamachi"
className="underline font-bold"
target="_blank"
rel="noreferrer"
>
@mazamachi
</a>
.
</p>
<p className="mt-2 italic text-sm text-gray-500 dark:text-gray-300">
Forked from{' '}
<a
href="https://github.com/cwackerfuss/react-wordle"
className="underline font-bold"
target="_blank"
rel="noreferrer"
>
react-wordle
</a>
.
</p>
</BaseModal>
)
}