Update templates/teacher_paper_gen.html
#2
by
Sharvesh1206
- opened
- templates/teacher_paper_gen.html +41 -34
templates/teacher_paper_gen.html
CHANGED
|
@@ -13,7 +13,6 @@
|
|
| 13 |
--text-color: #333;
|
| 14 |
--card-background: #fff;
|
| 15 |
}
|
| 16 |
-
|
| 17 |
body {
|
| 18 |
font-family: 'Roboto', sans-serif;
|
| 19 |
background-color: var(--background-color);
|
|
@@ -21,8 +20,22 @@
|
|
| 21 |
line-height: 1.6;
|
| 22 |
margin: 0;
|
| 23 |
padding: 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
}
|
| 25 |
-
|
| 26 |
.container {
|
| 27 |
max-width: 800px;
|
| 28 |
margin: 40px auto;
|
|
@@ -30,26 +43,23 @@
|
|
| 30 |
background: var(--card-background);
|
| 31 |
border-radius: 15px;
|
| 32 |
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
|
|
|
|
| 33 |
}
|
| 34 |
-
|
| 35 |
h1 {
|
| 36 |
color: var(--primary-color);
|
| 37 |
text-align: center;
|
| 38 |
margin-bottom: 30px;
|
| 39 |
font-size: 2.5em;
|
| 40 |
}
|
| 41 |
-
|
| 42 |
form {
|
| 43 |
display: grid;
|
| 44 |
gap: 20px;
|
| 45 |
}
|
| 46 |
-
|
| 47 |
label {
|
| 48 |
font-weight: 500;
|
| 49 |
display: block;
|
| 50 |
margin-bottom: 5px;
|
| 51 |
}
|
| 52 |
-
|
| 53 |
input[type="number"],
|
| 54 |
input[type="text"],
|
| 55 |
input[type="file"] {
|
|
@@ -59,11 +69,9 @@
|
|
| 59 |
border-radius: 5px;
|
| 60 |
font-size: 16px;
|
| 61 |
}
|
| 62 |
-
|
| 63 |
input[type="file"] {
|
| 64 |
padding: 10px 0;
|
| 65 |
}
|
| 66 |
-
|
| 67 |
button {
|
| 68 |
background-color: var(--primary-color);
|
| 69 |
color: white;
|
|
@@ -74,11 +82,9 @@
|
|
| 74 |
cursor: pointer;
|
| 75 |
transition: background-color 0.3s ease;
|
| 76 |
}
|
| 77 |
-
|
| 78 |
button:hover {
|
| 79 |
background-color: #2980b9;
|
| 80 |
}
|
| 81 |
-
|
| 82 |
.generated-paper {
|
| 83 |
margin-top: 40px;
|
| 84 |
padding: 20px;
|
|
@@ -86,12 +92,10 @@
|
|
| 86 |
border-radius: 10px;
|
| 87 |
border: 1px solid #e0e0e0;
|
| 88 |
}
|
| 89 |
-
|
| 90 |
.generated-paper h2 {
|
| 91 |
color: var(--secondary-color);
|
| 92 |
margin-bottom: 20px;
|
| 93 |
}
|
| 94 |
-
|
| 95 |
@media (max-width: 600px) {
|
| 96 |
.container {
|
| 97 |
padding: 20px;
|
|
@@ -102,7 +106,6 @@
|
|
| 102 |
text-align: center;
|
| 103 |
margin-top: 20px;
|
| 104 |
}
|
| 105 |
-
|
| 106 |
.loading-icon {
|
| 107 |
border: 5px solid #f3f3f3;
|
| 108 |
border-top: 5px solid var(--primary-color);
|
|
@@ -112,31 +115,22 @@
|
|
| 112 |
animation: spin 1s linear infinite;
|
| 113 |
margin: 0 auto;
|
| 114 |
}
|
| 115 |
-
|
| 116 |
@keyframes spin {
|
| 117 |
0% { transform: rotate(0deg); }
|
| 118 |
100% { transform: rotate(360deg); }
|
| 119 |
}
|
| 120 |
-
|
| 121 |
.part {
|
| 122 |
margin-bottom: 20px;
|
| 123 |
}
|
| 124 |
-
|
| 125 |
.part h3 {
|
| 126 |
margin-bottom: 10px;
|
| 127 |
color: var(--primary-color);
|
| 128 |
}
|
| 129 |
-
|
| 130 |
.question {
|
| 131 |
margin-left: 20px;
|
| 132 |
margin-bottom: 10px;
|
| 133 |
}
|
| 134 |
-
|
| 135 |
-
.container {
|
| 136 |
-
padding: 20px;
|
| 137 |
-
}
|
| 138 |
-
}
|
| 139 |
-
.back-button {
|
| 140 |
position: fixed;
|
| 141 |
top: 20px;
|
| 142 |
left: 20px;
|
|
@@ -154,20 +148,38 @@
|
|
| 154 |
justify-content: center;
|
| 155 |
align-items: center;
|
| 156 |
text-decoration: none;
|
|
|
|
| 157 |
}
|
| 158 |
-
|
| 159 |
.back-button:hover {
|
| 160 |
background-color: #2980b9;
|
| 161 |
transform: scale(1.1);
|
| 162 |
}
|
| 163 |
-
|
| 164 |
.back-button i {
|
| 165 |
transition: transform 0.3s ease;
|
| 166 |
}
|
| 167 |
-
|
| 168 |
.back-button:hover i {
|
| 169 |
transform: translateX(-5px);
|
| 170 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 171 |
</style>
|
| 172 |
</head>
|
| 173 |
<body>
|
|
@@ -177,8 +189,8 @@
|
|
| 177 |
</video>
|
| 178 |
<a href="teacher" class="back-button" title="Back to Home">Back
|
| 179 |
<i class="fas fa-arrow-left"></i>
|
| 180 |
-
|
| 181 |
-
|
| 182 |
<p>We have used the following documents in the demo video, which are given in the drive link. You can use your own docs also.</p>
|
| 183 |
<button class="drive-button" onclick="openDriveLink()">
|
| 184 |
<i class="fas fa-cloud-upload-alt"></i> Open in Drive
|
|
@@ -228,18 +240,14 @@
|
|
| 228 |
document.addEventListener("DOMContentLoaded", function() {
|
| 229 |
const questionsText =` {{ questions|tojson }}`;
|
| 230 |
const parts = questionsText.split("Part ");
|
| 231 |
-
|
| 232 |
const generatedPaper = document.getElementById("generated-paper");
|
| 233 |
-
|
| 234 |
parts.forEach((partText, index) => {
|
| 235 |
if (index > 0) {
|
| 236 |
const partDiv = document.createElement("div");
|
| 237 |
partDiv.className = "part";
|
| 238 |
-
|
| 239 |
const partHeader = document.createElement("h3");
|
| 240 |
partHeader.textContent = "Part " + index;
|
| 241 |
partDiv.appendChild(partHeader);
|
| 242 |
-
|
| 243 |
const questions = partText.split(/[0-9]+\./).slice(1);
|
| 244 |
questions.forEach((question, qIndex) => {
|
| 245 |
const questionDiv = document.createElement("div");
|
|
@@ -247,7 +255,6 @@
|
|
| 247 |
questionDiv.textContent = (qIndex + 1) + ". " + question.trim();
|
| 248 |
partDiv.appendChild(questionDiv);
|
| 249 |
});
|
| 250 |
-
|
| 251 |
generatedPaper.appendChild(partDiv);
|
| 252 |
}
|
| 253 |
});
|
|
@@ -255,7 +262,7 @@
|
|
| 255 |
</script>
|
| 256 |
{% endif %}
|
| 257 |
</div>
|
| 258 |
-
<script>
|
| 259 |
function openDriveLink() {
|
| 260 |
window.open('https://drive.google.com/drive/folders/1g135rBls7OROtbEpEhfjScT5gsODB0mR?usp=sharing', '_blank');
|
| 261 |
}
|
|
|
|
| 13 |
--text-color: #333;
|
| 14 |
--card-background: #fff;
|
| 15 |
}
|
|
|
|
| 16 |
body {
|
| 17 |
font-family: 'Roboto', sans-serif;
|
| 18 |
background-color: var(--background-color);
|
|
|
|
| 20 |
line-height: 1.6;
|
| 21 |
margin: 0;
|
| 22 |
padding: 0;
|
| 23 |
+
min-height: 100vh;
|
| 24 |
+
display: flex;
|
| 25 |
+
flex-direction: column;
|
| 26 |
+
justify-content: center;
|
| 27 |
+
align-items: center;
|
| 28 |
+
position: relative;
|
| 29 |
+
}
|
| 30 |
+
.background-video {
|
| 31 |
+
position: fixed;
|
| 32 |
+
top: 0;
|
| 33 |
+
left: 0;
|
| 34 |
+
width: 100%;
|
| 35 |
+
height: 100%;
|
| 36 |
+
object-fit: cover;
|
| 37 |
+
z-index: -1;
|
| 38 |
}
|
|
|
|
| 39 |
.container {
|
| 40 |
max-width: 800px;
|
| 41 |
margin: 40px auto;
|
|
|
|
| 43 |
background: var(--card-background);
|
| 44 |
border-radius: 15px;
|
| 45 |
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
|
| 46 |
+
z-index: 1;
|
| 47 |
}
|
|
|
|
| 48 |
h1 {
|
| 49 |
color: var(--primary-color);
|
| 50 |
text-align: center;
|
| 51 |
margin-bottom: 30px;
|
| 52 |
font-size: 2.5em;
|
| 53 |
}
|
|
|
|
| 54 |
form {
|
| 55 |
display: grid;
|
| 56 |
gap: 20px;
|
| 57 |
}
|
|
|
|
| 58 |
label {
|
| 59 |
font-weight: 500;
|
| 60 |
display: block;
|
| 61 |
margin-bottom: 5px;
|
| 62 |
}
|
|
|
|
| 63 |
input[type="number"],
|
| 64 |
input[type="text"],
|
| 65 |
input[type="file"] {
|
|
|
|
| 69 |
border-radius: 5px;
|
| 70 |
font-size: 16px;
|
| 71 |
}
|
|
|
|
| 72 |
input[type="file"] {
|
| 73 |
padding: 10px 0;
|
| 74 |
}
|
|
|
|
| 75 |
button {
|
| 76 |
background-color: var(--primary-color);
|
| 77 |
color: white;
|
|
|
|
| 82 |
cursor: pointer;
|
| 83 |
transition: background-color 0.3s ease;
|
| 84 |
}
|
|
|
|
| 85 |
button:hover {
|
| 86 |
background-color: #2980b9;
|
| 87 |
}
|
|
|
|
| 88 |
.generated-paper {
|
| 89 |
margin-top: 40px;
|
| 90 |
padding: 20px;
|
|
|
|
| 92 |
border-radius: 10px;
|
| 93 |
border: 1px solid #e0e0e0;
|
| 94 |
}
|
|
|
|
| 95 |
.generated-paper h2 {
|
| 96 |
color: var(--secondary-color);
|
| 97 |
margin-bottom: 20px;
|
| 98 |
}
|
|
|
|
| 99 |
@media (max-width: 600px) {
|
| 100 |
.container {
|
| 101 |
padding: 20px;
|
|
|
|
| 106 |
text-align: center;
|
| 107 |
margin-top: 20px;
|
| 108 |
}
|
|
|
|
| 109 |
.loading-icon {
|
| 110 |
border: 5px solid #f3f3f3;
|
| 111 |
border-top: 5px solid var(--primary-color);
|
|
|
|
| 115 |
animation: spin 1s linear infinite;
|
| 116 |
margin: 0 auto;
|
| 117 |
}
|
|
|
|
| 118 |
@keyframes spin {
|
| 119 |
0% { transform: rotate(0deg); }
|
| 120 |
100% { transform: rotate(360deg); }
|
| 121 |
}
|
|
|
|
| 122 |
.part {
|
| 123 |
margin-bottom: 20px;
|
| 124 |
}
|
|
|
|
| 125 |
.part h3 {
|
| 126 |
margin-bottom: 10px;
|
| 127 |
color: var(--primary-color);
|
| 128 |
}
|
|
|
|
| 129 |
.question {
|
| 130 |
margin-left: 20px;
|
| 131 |
margin-bottom: 10px;
|
| 132 |
}
|
| 133 |
+
.back-button {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 134 |
position: fixed;
|
| 135 |
top: 20px;
|
| 136 |
left: 20px;
|
|
|
|
| 148 |
justify-content: center;
|
| 149 |
align-items: center;
|
| 150 |
text-decoration: none;
|
| 151 |
+
z-index: 2;
|
| 152 |
}
|
|
|
|
| 153 |
.back-button:hover {
|
| 154 |
background-color: #2980b9;
|
| 155 |
transform: scale(1.1);
|
| 156 |
}
|
|
|
|
| 157 |
.back-button i {
|
| 158 |
transition: transform 0.3s ease;
|
| 159 |
}
|
|
|
|
| 160 |
.back-button:hover i {
|
| 161 |
transform: translateX(-5px);
|
| 162 |
}
|
| 163 |
+
.info-drive-box {
|
| 164 |
+
background-color: rgba(255, 255, 255, 0.8);
|
| 165 |
+
padding: 20px;
|
| 166 |
+
border-radius: 10px;
|
| 167 |
+
margin-bottom: 20px;
|
| 168 |
+
z-index: 1;
|
| 169 |
+
}
|
| 170 |
+
.drive-button {
|
| 171 |
+
background-color: #4CAF50;
|
| 172 |
+
color: white;
|
| 173 |
+
padding: 10px 20px;
|
| 174 |
+
border: none;
|
| 175 |
+
border-radius: 5px;
|
| 176 |
+
cursor: pointer;
|
| 177 |
+
font-size: 16px;
|
| 178 |
+
transition: background-color 0.3s;
|
| 179 |
+
}
|
| 180 |
+
.drive-button:hover {
|
| 181 |
+
background-color: #45a049;
|
| 182 |
+
}
|
| 183 |
</style>
|
| 184 |
</head>
|
| 185 |
<body>
|
|
|
|
| 189 |
</video>
|
| 190 |
<a href="teacher" class="back-button" title="Back to Home">Back
|
| 191 |
<i class="fas fa-arrow-left"></i>
|
| 192 |
+
</a>
|
| 193 |
+
<div class="info-drive-box">
|
| 194 |
<p>We have used the following documents in the demo video, which are given in the drive link. You can use your own docs also.</p>
|
| 195 |
<button class="drive-button" onclick="openDriveLink()">
|
| 196 |
<i class="fas fa-cloud-upload-alt"></i> Open in Drive
|
|
|
|
| 240 |
document.addEventListener("DOMContentLoaded", function() {
|
| 241 |
const questionsText =` {{ questions|tojson }}`;
|
| 242 |
const parts = questionsText.split("Part ");
|
|
|
|
| 243 |
const generatedPaper = document.getElementById("generated-paper");
|
|
|
|
| 244 |
parts.forEach((partText, index) => {
|
| 245 |
if (index > 0) {
|
| 246 |
const partDiv = document.createElement("div");
|
| 247 |
partDiv.className = "part";
|
|
|
|
| 248 |
const partHeader = document.createElement("h3");
|
| 249 |
partHeader.textContent = "Part " + index;
|
| 250 |
partDiv.appendChild(partHeader);
|
|
|
|
| 251 |
const questions = partText.split(/[0-9]+\./).slice(1);
|
| 252 |
questions.forEach((question, qIndex) => {
|
| 253 |
const questionDiv = document.createElement("div");
|
|
|
|
| 255 |
questionDiv.textContent = (qIndex + 1) + ". " + question.trim();
|
| 256 |
partDiv.appendChild(questionDiv);
|
| 257 |
});
|
|
|
|
| 258 |
generatedPaper.appendChild(partDiv);
|
| 259 |
}
|
| 260 |
});
|
|
|
|
| 262 |
</script>
|
| 263 |
{% endif %}
|
| 264 |
</div>
|
| 265 |
+
<script>
|
| 266 |
function openDriveLink() {
|
| 267 |
window.open('https://drive.google.com/drive/folders/1g135rBls7OROtbEpEhfjScT5gsODB0mR?usp=sharing', '_blank');
|
| 268 |
}
|