forked from next-step/js-lotto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
201 lines (199 loc) · 9 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
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8"/>
<title>🎱 행운의 로또</title>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link rel="stylesheet" href="./src/css/index.css"/>
</head>
<body>
<div id="app" class="p-3">
<div class="d-flex justify-center mt-5">
<div class="w-100">
<h1 class="text-center">🎱 행운의 로또</h1>
<label class="mb-2 d-inline-block">구입할 금액을 입력해주세요.</label>
<div class="d-flex">
<input
type="number"
class="w-100 mr-2 pl-2"
id="purchase-amount"
placeholder="구입 금액"
min="1000"
max="10000"
data-cy="purchase-amount"
required
/>
<button
type="button"
class="btn btn-cyan purchase-button"
data-cy="purchase-button">확인
</button>
</div>
<section class="purchased-lotto-manuel">
<form class="mt-9 purchased-lotto-manuel-container">
<label class="flex-auto d-inline-block mb-3">수동 구매를 원하시면 번호를 입력해주세요.</label>
<div class="manuel-icons flex-grow">
<button type="button" class="purchased-lotto-manuel-add btn btn-cyan flex-auto">추가</button>
<button type="button" class="purchased-lotto-manuel-delete btn btn-red flex-auto">삭제</button>
</div>
<div class="purchased-lotto-manuel-set">
<div class="d-flex purchased-lotto-manuel-inputs">
<input
type="number"
max="45"
min="1"
maxlength="2"
class="manuel-number mx-1 text-center"
/>
<input
type="number"
max="45"
min="1"
maxlength="2"
class="manuel-number mx-1 text-center"
/>
<input
type="number"
max="45"
min="1"
maxlength="2"
class="manuel-number mx-1 text-center"
/>
<input
type="number"
max="45"
min="1"
maxlength="2"
class="manuel-number mx-1 text-center"
/>
<input
type="number"
max="45"
min="1"
maxlength="2"
class="manuel-number mx-1 text-center"
/>
<input
type="number"
max="45"
min="1"
maxlength="2"
class="manuel-number mx-1 text-center"
/>
</div>
</div>
</form>
<button type="button" class="purchase-lotto-button mt-5 btn btn-cyan w-100">로또 구매하기</button>
</section>
<section class="mt-9 purchased-lotto">
<div class="d-flex">
<label class="flex-auto my-0 purchased-lotto-total"></label>
<div class="flex-auto d-flex justify-end pr-1">
<label class="switch">
<input type="checkbox" class="lotto-numbers-toggle-button"/>
<span class="text-base font-normal" data-cy="toggle-lotto-numbers">번호보기</span>
</label>
</div>
</div>
<ul class="d-flex flex-wrap lotto-tickets" data-cy="lotto-tickets"></ul>
</section>
<form class="mt-9 lotto-stats">
<label class="flex-auto d-inline-block mb-3">지난 주 당첨번호 6개와 보너스 넘버 1개를 입력해주세요.</label>
<div class="d-flex">
<div>
<h4 class="mt-0 mb-3 text-center">당첨 번호</h4>
<div>
<input
type="number"
max="45"
min="1"
maxlength="2"
class="winning-number mx-1 text-center"
/>
<input
type="number"
max="45"
min="1"
maxlength="2"
class="winning-number mx-1 text-center"
/>
<input
type="number"
max="45"
min="1"
maxlength="2"
class="winning-number mx-1 text-center"
/>
<input
type="number"
max="45"
min="1"
maxlength="2"
class="winning-number mx-1 text-center"
/>
<input
type="number"
max="45"
min="1"
maxlength="2"
class="winning-number mx-1 text-center"
/>
<input
type="number"
max="45"
min="1"
maxlength="2"
class="winning-number mx-1 text-center"
/>
</div>
</div>
<div class="bonus-number-container flex-grow">
<h4 class="mt-0 mb-3 text-center">보너스 번호</h4>
<div class="d-flex justify-center">
<input maxlength="2"
max="45"
min="1"
type="number"
class="bonus-number text-center"/>
</div>
</div>
</div>
<button
type="button"
class="open-stats-modal-button mt-5 btn btn-cyan w-100">
결과 확인하기
</button>
</form>
</div>
</div>
<div class="modal">
<div class="modal-outer"></div>
<div class="modal-inner p-10">
<div class="modal-close">
<svg viewbox="0 0 40 40">
<path class="close-x" d="M 10,10 L 30,30 M 30,10 L 10,30"/>
</svg>
</div>
<h2 class="text-center">🏆 당첨 통계 🏆</h2>
<div class="d-flex justify-center">
<table class="result-table border-collapse border border-black">
<thead>
<tr class="text-center">
<th class="p-3">일치 갯수</th>
<th class="p-3">당첨금</th>
<th class="p-3">당첨 갯수</th>
</tr>
</thead>
<tbody class="stats-table-tbody"></tbody>
</table>
</div>
<p class="stats-total text-center font-bold"></p>
<div class="d-flex justify-center mt-5">
<button type="button" class="stats-reset-button btn btn-cyan">다시 시작하기</button>
</div>
</div>
</div>
</div>
<script type="module" src="./src/js/index.js"></script>
</body>
</html>