Skip to content

Commit c0b0fd2

Browse files
Update index.html
added Tailwind CSS, Modernized Layout
1 parent be212dc commit c0b0fd2

File tree

1 file changed

+48
-8
lines changed

1 file changed

+48
-8
lines changed

index.html

+48-8
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,57 @@
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
66
<title>Sudoku Checker</title>
7-
<link rel="stylesheet" href="style.css">
7+
<script src="https://cdn.tailwindcss.com"></script>
8+
<link rel="stylesheet" href="styles.css">
89
</head>
9-
<body>
10-
<div class="container">
11-
<h1>Sudoku Checker</h1>
12-
<div class="grid" id="sudokuGrid">
13-
<!-- 81 input cells for Sudoku puzzle will be dynamically generated here -->
10+
<body class="bg-gray-800 text-white flex flex-col items-center justify-center min-h-screen">
11+
<div class="bg-gray-900 p-10 rounded-lg shadow-lg text-center">
12+
<h1 class="text-3xl font-bold mb-6 text-white">Sudoku Checker</h1>
13+
14+
<!-- Sudoku Grid -->
15+
<div class="bg-gray-200 rounded-lg p-4 flex justify-center items-center mb-6">
16+
<div id="sudokuGrid" class="sudoku-grid"></div>
1417
</div>
15-
<button class="button" onclick="validateSudoku()">Validate</button>
16-
<div class="result" id="result"></div>
18+
19+
<!-- Dropdown and input for specific rows -->
20+
<div class="mb-6">
21+
<label for="rowSelect" class="block mb-2 text-lg">Select Row:</label>
22+
<select id="rowSelect" class="block w-full p-2 rounded border-gray-300 bg-white text-black cursor-pointer">
23+
<option value="0">Row 1</option>
24+
<option value="1">Row 2</option>
25+
<option value="2">Row 3</option>
26+
<option value="3">Row 4</option>
27+
<option value="4">Row 5</option>
28+
<option value="5">Row 6</option>
29+
<option value="6">Row 7</option>
30+
<option value="7">Row 8</option>
31+
<option value="8">Row 9</option>
32+
</select>
33+
<input
34+
id="rowInput"
35+
class="block w-full p-2 mt-2 rounded border-gray-300 text-black text-center"
36+
type="text"
37+
placeholder="Enter 9 numbers only"
38+
maxlength="9"
39+
/>
40+
<button
41+
onclick="updateRow()"
42+
class="block w-full mt-2 bg-blue-500 hover:bg-blue-600 text-white font-bold py-2 rounded"
43+
>
44+
Update Row
45+
</button>
46+
</div>
47+
48+
<!-- Buttons -->
49+
<button
50+
onclick="validateSudoku()"
51+
class="block w-full bg-green-500 hover:bg-green-600 text-white font-bold py-2 rounded mb-2"
52+
>
53+
Validate Sudoku
54+
</button>
55+
<div id="result" class="text-lg font-bold"></div>
1756
</div>
57+
1858
<script src="script.js"></script>
1959
</body>
2060
</html>

0 commit comments

Comments
 (0)