Create templates/index.html
Browse files- templates/index.html +60 -0
templates/index.html
ADDED
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="en">
|
3 |
+
<head>
|
4 |
+
<meta charset="UTF-8">
|
5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
+
<title>Generate Quiz</title>
|
7 |
+
<style>
|
8 |
+
body {
|
9 |
+
font-family: Arial, sans-serif;
|
10 |
+
background-color: #f0f0f0;
|
11 |
+
color: #333;
|
12 |
+
margin: 20px;
|
13 |
+
}
|
14 |
+
h2 {
|
15 |
+
background-color: #ffc107;
|
16 |
+
padding: 10px;
|
17 |
+
border-radius: 5px;
|
18 |
+
}
|
19 |
+
form {
|
20 |
+
background-color: #fff;
|
21 |
+
padding: 20px;
|
22 |
+
border-radius: 5px;
|
23 |
+
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
24 |
+
margin-bottom: 20px;
|
25 |
+
}
|
26 |
+
label {
|
27 |
+
display: block;
|
28 |
+
margin-bottom: 10px;
|
29 |
+
}
|
30 |
+
textarea {
|
31 |
+
width: 100%;
|
32 |
+
padding: 10px;
|
33 |
+
border: 2px solid #ffc107;
|
34 |
+
border-radius: 4px;
|
35 |
+
resize: vertical;
|
36 |
+
min-height: 150px;
|
37 |
+
background-color: #f0f0f0;
|
38 |
+
}
|
39 |
+
input[type="submit"] {
|
40 |
+
background-color: #ffc107;
|
41 |
+
color: #333;
|
42 |
+
border: none;
|
43 |
+
padding: 10px 20px;
|
44 |
+
cursor: pointer;
|
45 |
+
border-radius: 4px;
|
46 |
+
}
|
47 |
+
input[type="submit"]:hover {
|
48 |
+
background-color: #ffca28;
|
49 |
+
}
|
50 |
+
</style>
|
51 |
+
</head>
|
52 |
+
<body>
|
53 |
+
<h2>Generate Quiz</h2>
|
54 |
+
<form action="/" method="post">
|
55 |
+
<label for="context">Context:</label><br>
|
56 |
+
<textarea id="context" name="context" rows="20" required></textarea><br><br>
|
57 |
+
<input type="submit" value="Generate Quiz">
|
58 |
+
</form>
|
59 |
+
</body>
|
60 |
+
</html>
|