Neurolingua
commited on
Commit
•
815fe05
1
Parent(s):
21d2a09
Update templates/teacher_paper_gen.html
Browse files- templates/teacher_paper_gen.html +196 -200
templates/teacher_paper_gen.html
CHANGED
@@ -1,200 +1,196 @@
|
|
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>Professional Question Paper Generator</title>
|
7 |
-
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap" rel="stylesheet">
|
8 |
-
<style>
|
9 |
-
:root {
|
10 |
-
--primary-color: #3498db;
|
11 |
-
--secondary-color: #2c3e50;
|
12 |
-
--background-color: #f5f6fa;
|
13 |
-
--text-color: #333;
|
14 |
-
--card-background: rgba(255, 255, 255, 0.8);
|
15 |
-
}
|
16 |
-
|
17 |
-
body {
|
18 |
-
font-family: 'Roboto', sans-serif;
|
19 |
-
background-color: var(--background-color);
|
20 |
-
color: var(--text-color);
|
21 |
-
line-height: 1.6;
|
22 |
-
margin: 0;
|
23 |
-
padding: 0;
|
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 |
-
display:
|
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 |
-
top:
|
115 |
-
|
116 |
-
background-color: #
|
117 |
-
|
118 |
-
border:
|
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 |
-
{% endif %}
|
198 |
-
</div>
|
199 |
-
</body>
|
200 |
-
</html>
|
|
|
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>Professional Question Paper Generator</title>
|
7 |
+
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap" rel="stylesheet">
|
8 |
+
<style>
|
9 |
+
:root {
|
10 |
+
--primary-color: #3498db;
|
11 |
+
--secondary-color: #2c3e50;
|
12 |
+
--background-color: #f5f6fa;
|
13 |
+
--text-color: #333;
|
14 |
+
--card-background: rgba(255, 255, 255, 0.8);
|
15 |
+
}
|
16 |
+
|
17 |
+
body {
|
18 |
+
font-family: 'Roboto', sans-serif;
|
19 |
+
background-color: var(--background-color);
|
20 |
+
color: var(--text-color);
|
21 |
+
line-height: 1.6;
|
22 |
+
margin: 0;
|
23 |
+
padding: 0;
|
24 |
+
min-height: 100vh;
|
25 |
+
display: flex;
|
26 |
+
flex-direction: column;
|
27 |
+
align-items: center;
|
28 |
+
}
|
29 |
+
|
30 |
+
.background-video {
|
31 |
+
position: fixed;
|
32 |
+
right: 0;
|
33 |
+
bottom: 0;
|
34 |
+
min-width: 100%;
|
35 |
+
min-height: 100%;
|
36 |
+
z-index: -1;
|
37 |
+
object-fit: cover;
|
38 |
+
}
|
39 |
+
|
40 |
+
.container {
|
41 |
+
max-width: 1200px;
|
42 |
+
width: 95%;
|
43 |
+
margin: 40px auto;
|
44 |
+
padding: 30px;
|
45 |
+
background: var(--card-background);
|
46 |
+
border-radius: 15px;
|
47 |
+
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
|
48 |
+
backdrop-filter: blur(10px);
|
49 |
+
max-height: 90vh;
|
50 |
+
overflow-y: auto;
|
51 |
+
}
|
52 |
+
|
53 |
+
h1 {
|
54 |
+
color: var(--primary-color);
|
55 |
+
text-align: center;
|
56 |
+
margin-bottom: 30px;
|
57 |
+
font-size: 2.5em;
|
58 |
+
}
|
59 |
+
|
60 |
+
.content-wrapper {
|
61 |
+
display: flex;
|
62 |
+
gap: 30px;
|
63 |
+
}
|
64 |
+
|
65 |
+
.form-container {
|
66 |
+
flex: 1;
|
67 |
+
}
|
68 |
+
|
69 |
+
.generated-paper-container {
|
70 |
+
flex: 1;
|
71 |
+
}
|
72 |
+
|
73 |
+
form {
|
74 |
+
display: grid;
|
75 |
+
gap: 15px;
|
76 |
+
}
|
77 |
+
|
78 |
+
label {
|
79 |
+
font-weight: 500;
|
80 |
+
display: block;
|
81 |
+
margin-bottom: 5px;
|
82 |
+
}
|
83 |
+
|
84 |
+
input[type="number"],
|
85 |
+
input[type="text"],
|
86 |
+
input[type="file"] {
|
87 |
+
width: 100%;
|
88 |
+
padding: 8px;
|
89 |
+
border: 1px solid #ddd;
|
90 |
+
border-radius: 5px;
|
91 |
+
font-size: 14px;
|
92 |
+
}
|
93 |
+
|
94 |
+
input[type="file"] {
|
95 |
+
padding: 8px 0;
|
96 |
+
}
|
97 |
+
|
98 |
+
button {
|
99 |
+
background-color: var(--primary-color);
|
100 |
+
color: white;
|
101 |
+
border: none;
|
102 |
+
padding: 10px 15px;
|
103 |
+
font-size: 16px;
|
104 |
+
border-radius: 5px;
|
105 |
+
cursor: pointer;
|
106 |
+
transition: background-color 0.3s ease;
|
107 |
+
}
|
108 |
+
|
109 |
+
button:hover {
|
110 |
+
background-color: #2980b9;
|
111 |
+
}
|
112 |
+
|
113 |
+
.generated-paper {
|
114 |
+
margin-top: 0;
|
115 |
+
padding: 20px;
|
116 |
+
background-color: #f9f9f9;
|
117 |
+
border-radius: 10px;
|
118 |
+
border: 1px solid #e0e0e0;
|
119 |
+
height: 100%;
|
120 |
+
overflow-y: auto;
|
121 |
+
}
|
122 |
+
|
123 |
+
.generated-paper h2 {
|
124 |
+
color: var(--secondary-color);
|
125 |
+
margin-bottom: 20px;
|
126 |
+
}
|
127 |
+
|
128 |
+
@media (max-width: 900px) {
|
129 |
+
.content-wrapper {
|
130 |
+
flex-direction: column;
|
131 |
+
}
|
132 |
+
}
|
133 |
+
|
134 |
+
@media (max-width: 600px) {
|
135 |
+
.container {
|
136 |
+
padding: 20px;
|
137 |
+
}
|
138 |
+
}
|
139 |
+
</style>
|
140 |
+
</head>
|
141 |
+
<body>
|
142 |
+
<video class="background-video" autoplay muted loop>
|
143 |
+
<source src="../static/paper.mp4" type="video/mp4">
|
144 |
+
Your browser does not support the video tag.
|
145 |
+
</video>
|
146 |
+
|
147 |
+
<div class="container">
|
148 |
+
<h1>Question Paper Generator</h1>
|
149 |
+
<div class="content-wrapper">
|
150 |
+
<div class="form-container">
|
151 |
+
<form action="/generate-paper" method="post" enctype="multipart/form-data">
|
152 |
+
<div>
|
153 |
+
<label for="no_of_questions">Number of questions:</label>
|
154 |
+
<input type="number" id="no_of_questions" name="no_of_questions" required>
|
155 |
+
</div>
|
156 |
+
|
157 |
+
<div>
|
158 |
+
<label for="total_marks">Total marks:</label>
|
159 |
+
<input type="number" id="total_marks" name="total_marks" required>
|
160 |
+
</div>
|
161 |
+
|
162 |
+
<div>
|
163 |
+
<label for="no_of_parts">Number of parts:</label>
|
164 |
+
<input type="number" id="no_of_parts" name="no_of_parts" required>
|
165 |
+
</div>
|
166 |
+
|
167 |
+
<div>
|
168 |
+
<label for="marks_per_part">Marks per part:</label>
|
169 |
+
<input type="number" id="marks_per_part" name="marks_per_part" required>
|
170 |
+
</div>
|
171 |
+
|
172 |
+
<div>
|
173 |
+
<label for="test_duration">Test duration:</label>
|
174 |
+
<input type="text" id="test_duration" name="test_duration" placeholder="e.g., 2 hours" required>
|
175 |
+
</div>
|
176 |
+
|
177 |
+
<div>
|
178 |
+
<label for="pdf_file">Curriculum PDF:</label>
|
179 |
+
<input type="file" id="pdf_file" name="pdf_file" accept="application/pdf" required>
|
180 |
+
</div>
|
181 |
+
|
182 |
+
<button type="submit">Generate Question Paper</button>
|
183 |
+
</form>
|
184 |
+
</div>
|
185 |
+
<div class="generated-paper-container">
|
186 |
+
{% if questions %}
|
187 |
+
<div class="generated-paper">
|
188 |
+
<h2>Generated Question Paper</h2>
|
189 |
+
<p>{{ questions }}</p>
|
190 |
+
</div>
|
191 |
+
{% endif %}
|
192 |
+
</div>
|
193 |
+
</div>
|
194 |
+
</div>
|
195 |
+
</body>
|
196 |
+
</html>
|
|
|
|
|
|
|
|