-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
120 lines (108 loc) · 3.96 KB
/
index.html
File metadata and controls
120 lines (108 loc) · 3.96 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Bloom Battles Amateur Practice</title>
<!-- Tailwind CSS-->
<link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
<!-- Link to the external JavaScript file -->
<script defer src="script.js"></script>
</head>
<body class="bg-gray-100 p-8">
<div class="max-w-xl mx-auto bg-white p-8 shadow-lg rounded-lg">
<h1 class="text-2xl font-bold mb-4">
Bloom Battles Amateur Coffee Competition
</h1>
<div>
<!-- Coffee Input -->
<label for="coffeeInput" class="block text-sm font-medium text-gray-700"
>Ingrese sus cafés (separados por comas):</label
>
<input
type="text"
id="coffeeInput"
class="mt-1 block w-full border border-gray-300 rounded-md shadow-sm focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"
/>
<!-- Round Selection -->
<label
for="roundSelect"
class="block text-sm font-medium text-gray-700 mt-4"
>Seleccione la ronda:</label
>
<select
id="roundSelect"
class="mt-1 block w-full border border-gray-300 rounded-md shadow-sm focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"
>
<option value="16ths">16vos</option>
<option value="8ths">8vos</option>
<option value="4ths">4tos</option>
<option value="semifinals">Semifinal</option>
<option value="finals">Final</option>
</select>
<!-- Generate Recipe Button -->
<button
id="generateRecipeBtn"
class="mt-4 w-full bg-indigo-500 text-white py-2 px-4 rounded-md hover:bg-indigo-600"
>
Generar Receta
</button>
<!-- Initial Recipe Result -->
<div id="result" class="mt-4 hidden">
<h2 class="text-lg font-bold">Tu receta es la siguiente:</h2>
<p id="recipeDetails" class="mt-2"></p>
<div id="followUp" class="mt-4 hidden">
<p>Hiciste la receta?</p>
<button
id="yesBtn"
class="bg-green-500 text-white py-2 px-4 rounded-md hover:bg-green-600"
>
Sí
</button>
<button
id="noBtn"
class="bg-red-500 text-white py-2 px-4 rounded-md hover:bg-red-600"
>
No
</button>
</div>
</div>
<!-- Additional Inputs for 'Yes' -->
<div id="additionalInputs" class="mt-4 hidden">
<label
for="commanderClicks"
class="block text-sm font-medium text-gray-700"
>Clicks en comandante:</label
>
<input
type="number"
id="commanderClicks"
class="mt-1 block w-full border border-gray-300 rounded-md shadow-sm focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"
/>
<label
for="waterTemp"
class="block text-sm font-medium text-gray-700 mt-4"
>Temperatura del agua:</label
>
<input
type="number"
id="waterTemp"
class="mt-1 block w-full border border-gray-300 rounded-md shadow-sm focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"
/>
<div id="optionalItemsContainer" class="mt-4"></div>
<button
id="finalRecipeBtn"
class="mt-4 w-full bg-blue-500 text-white py-2 px-4 rounded-md hover:bg-blue-600"
>
Ver Receta Final
</button>
</div>
<!-- Final Recipe Result -->
<div id="finalResult" class="mt-4 hidden">
<h2 class="text-lg font-bold">Detalles de la receta final:</h2>
<p id="finalDetails" class="mt-2"></p>
</div>
</div>
</div>
</body>
</html>