KunalThakare279 commited on
Commit
75a538d
·
verified ·
1 Parent(s): cd6a4d1

Create templates/index.html

Browse files
Files changed (1) hide show
  1. templates/index.html +65 -0
templates/index.html ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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>Question Generator</title>
7
+ <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap" rel="stylesheet">
8
+ <style>
9
+ body {
10
+ font-family: 'Roboto', sans-serif;
11
+ background-color: #f4f4f9;
12
+ margin: 0;
13
+ padding: 0;
14
+ display: flex;
15
+ justify-content: center;
16
+ align-items: center;
17
+ height: 100vh;
18
+ }
19
+ .container {
20
+ background-color: white;
21
+ padding: 2rem;
22
+ border-radius: 8px;
23
+ box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
24
+ max-width: 400px;
25
+ text-align: center;
26
+ }
27
+ h1 {
28
+ margin-bottom: 1.5rem;
29
+ font-weight: 500;
30
+ }
31
+ select, button {
32
+ width: 100%;
33
+ padding: 0.8rem;
34
+ margin-bottom: 1rem;
35
+ border-radius: 4px;
36
+ border: 1px solid #ddd;
37
+ font-size: 1rem;
38
+ }
39
+ button {
40
+ background-color: #5cb85c;
41
+ color: white;
42
+ border: none;
43
+ cursor: pointer;
44
+ }
45
+ button:hover {
46
+ background-color: #4cae4c;
47
+ }
48
+ </style>
49
+ </head>
50
+ <body>
51
+ <div class="container">
52
+ <h1>Select Question Type</h1>
53
+ <form action="/get_questions" method="POST">
54
+ <select name="question_type" required>
55
+ <option value="t1" selected>Choose the correct meaning of the word</option>
56
+ <option value="t2">Personal responce</option>
57
+ <option value="t3">Give the reasons</option>
58
+ <option value="t4">Fill in the blanks</option>
59
+ <option value="t5">True or False: If False, correct them.</option>
60
+ </select>
61
+ <button type="submit">Generate Questions</button>
62
+ </form>
63
+ </div>
64
+ </body>
65
+ </html>