-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
207 lines (191 loc) · 6.53 KB
/
index.html
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
<html>
<head>
<title>Simone's Ludo</title>
<link rel="stylesheet" type="text/css" href="board.css" />
<link rel="stylesheet" type="text/css" href="dice.css" />
<link rel="stylesheet" type="text/css" href="token.css" />
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/github-fork-ribbon-css/0.2.3/gh-fork-ribbon.min.css" />
<!--responsive viewport tag-->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<h1>Simone's Ludo</h1>
<div class="game-table">
<div class="yellow-player">Yellow Player</div>
<div class="green-player">Green Player</div>
<div class="game-board">
<!--1st Row-->
<div class="green-home">
<div class="token token-green"></div>
<div class="token token-green"></div>
<div class="token token-green"></div>
<div class="token token-green"></div>
</div>
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
<div class="yellow-home"></div>
<!--2nd Row-->
<div class="box"></div>
<div class="yellow"></div>
<div class="yellow"></div>
<!--3rd Row-->
<!--Star Box-->
<div class="box">☆</div>
<div class="yellow"></div>
<div class="box"></div>
<!--4th Row-->
<div class="box"></div>
<div class="yellow"></div>
<div class="box"></div>
<!--5th Row-->
<div class="box"></div>
<div class="yellow"></div>
<div class="box"></div>
<!--6th Row-->
<div class="box"></div>
<div class="yellow"></div>
<div class="box"></div>
<!--7th Row-->
<div class="box"></div>
<div class="green"></div>
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
<div class="home">
<div class="token token-yellow"></div>
<div class="token token-yellow"></div>
<div class="token token-yellow"></div>
<div class="token token-yellow"></div>
<div class="token token-blue"></div>
</div>
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
<!--Star Box-->
<div class="box">☆</div>
<div class="box"></div>
<div class="box"></div>
<!--8th Row-->
<div class="box"></div>
<div class="green"></div>
<div class="green"></div>
<div class="green"></div>
<div class="green"></div>
<div class="green"></div>
<div class="blue"></div>
<div class="blue">
<div class="token token-blue"></div>
</div>
<div class="blue"></div>
<div class="blue"></div>
<div class="blue"></div>
<div class="box"></div>
<!--9th Row-->
<div class="box"></div>
<div class="box"></div>
<!--Star Box-->
<div class="box">☆</div>
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
<div class="blue"></div>
<div class="box"></div>
<!--10th Row-->
<div class="red-home">
<div class="token token-red"></div>
<div class="token token-red"></div>
</div>
<div class="box"></div>
<div class="red"></div>
<div class="box"></div>
<div class="blue-home">
<div class="token token-blue"></div>
</div>
<!--11th Row-->
<div class="box"></div>
<div class="red"></div>
<div class="box"></div>
<!--12th Row-->
<div class="box"></div>
<div class="red">
<div class="token token-red"></div>
</div>
<div class="box"></div>
<!--13th Row-->
<div class="box"></div>
<div class="red"></div>
<!--Star Box-->
<div class="box">
<div class="token token-red"></div>
☆
</div>
<!--14th Row-->
<div class="red"></div>
<div class="red"></div>
<div class="box">
</div>
<!--15th Row-->
<div class="box">
<div class="token token-blue"></div>
</div>
<div class="box"></div>
<div class="box"></div>
</div>
<div class="blue-player"><span class="blue-player-name">Blue Player</span></div>
<div class="red-player">Red Player</div>
</div>
<!--Dice original design by https://codepen.io/LandonSchropp/pen/KpzzGo
AND converted to Grid Layout by:
https://dev.to/ekeijl/creating-dice-using-css-grid-j4
AND Rotated and Animated using code from:
https://codepen.io/jpanter/pen/PGqJOm -->
<div class="dice-container">
<div class="dice">
<div class="face back">
<span class="dot"></span>
</div>
<div class="face bottom">
<span class="dot"></span>
<span class="dot"></span>
</div>
<div class="face left">
<span class="dot"></span>
<span class="dot"></span>
<span class="dot"></span>
</div>
<div class="face right">
<span class="dot"></span>
<span class="dot"></span>
<span class="dot"></span>
<span class="dot"></span>
</div>
<div class="face top">
<span class="dot"></span>
<span class="dot"></span>
<span class="dot"></span>
<span class="dot"></span>
<span class="dot"></span>
</div>
<div class="face front">
<span class="dot"></span>
<span class="dot"></span>
<span class="dot"></span>
<span class="dot"></span>
<span class="dot"></span>
<span class="dot"></span>
</div>
</div>
</div>
<!-- BOTTOM RIGHT RIBBON-->
<a class="github-fork-ribbon right-bottom fixed" href="https://github.com/palewar/simple-ludo"
data-ribbon="Fork me on GitHub" title="Fork me on GitHub">Fork me on GitHub</a>
<!-- BOTTOM RIGHT RIBBON-->
</body>
</html>