Sharvesh1206 commited on
Commit
a3a034a
1 Parent(s): da867de

Update templates/teacher_paper_gen.html

Browse files
Files changed (1) hide show
  1. templates/teacher_paper_gen.html +61 -25
templates/teacher_paper_gen.html CHANGED
@@ -13,7 +13,6 @@
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);
@@ -26,7 +25,6 @@
26
  flex-direction: column;
27
  align-items: center;
28
  }
29
-
30
  .background-video {
31
  position: fixed;
32
  right: 0;
@@ -36,7 +34,6 @@
36
  z-index: -1;
37
  object-fit: cover;
38
  }
39
-
40
  .container {
41
  max-width: 1200px;
42
  width: 95%;
@@ -49,38 +46,31 @@
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"] {
@@ -90,11 +80,9 @@
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;
@@ -105,11 +93,9 @@
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;
@@ -119,24 +105,21 @@
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
- .back-button {
140
  position: fixed;
141
  top: 20px;
142
  left: 20px;
@@ -154,20 +137,61 @@
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>
@@ -175,10 +199,16 @@
175
  <source src="../static/paper.mp4" type="video/mp4">
176
  Your browser does not support the video tag.
177
  </video>
178
- <a href="teacher" class="back-button" title="Back to Home">Back
179
- <i class="fas fa-arrow-left"></i>
180
- </a>
181
 
 
 
 
 
 
 
182
 
183
  <div class="container">
184
  <h1>Question Paper Generator</h1>
@@ -228,5 +258,11 @@
228
  </div>
229
  </div>
230
  </div>
 
 
 
 
 
 
231
  </body>
232
- </html>
 
13
  --text-color: #333;
14
  --card-background: rgba(255, 255, 255, 0.8);
15
  }
 
16
  body {
17
  font-family: 'Roboto', sans-serif;
18
  background-color: var(--background-color);
 
25
  flex-direction: column;
26
  align-items: center;
27
  }
 
28
  .background-video {
29
  position: fixed;
30
  right: 0;
 
34
  z-index: -1;
35
  object-fit: cover;
36
  }
 
37
  .container {
38
  max-width: 1200px;
39
  width: 95%;
 
46
  max-height: 90vh;
47
  overflow-y: auto;
48
  }
 
49
  h1 {
50
  color: var(--primary-color);
51
  text-align: center;
52
  margin-bottom: 30px;
53
  font-size: 2.5em;
54
  }
 
55
  .content-wrapper {
56
  display: flex;
57
  gap: 30px;
58
  }
 
59
  .form-container {
60
  flex: 1;
61
  }
 
62
  .generated-paper-container {
63
  flex: 1;
64
  }
 
65
  form {
66
  display: grid;
67
  gap: 15px;
68
  }
 
69
  label {
70
  font-weight: 500;
71
  display: block;
72
  margin-bottom: 5px;
73
  }
 
74
  input[type="number"],
75
  input[type="text"],
76
  input[type="file"] {
 
80
  border-radius: 5px;
81
  font-size: 14px;
82
  }
 
83
  input[type="file"] {
84
  padding: 8px 0;
85
  }
 
86
  button {
87
  background-color: var(--primary-color);
88
  color: white;
 
93
  cursor: pointer;
94
  transition: background-color 0.3s ease;
95
  }
 
96
  button:hover {
97
  background-color: #2980b9;
98
  }
 
99
  .generated-paper {
100
  margin-top: 0;
101
  padding: 20px;
 
105
  height: 100%;
106
  overflow-y: auto;
107
  }
 
108
  .generated-paper h2 {
109
  color: var(--secondary-color);
110
  margin-bottom: 20px;
111
  }
 
112
  @media (max-width: 900px) {
113
  .content-wrapper {
114
  flex-direction: column;
115
  }
116
  }
 
117
  @media (max-width: 600px) {
118
  .container {
119
  padding: 20px;
120
  }
121
  }
122
+ .back-button {
123
  position: fixed;
124
  top: 20px;
125
  left: 20px;
 
137
  justify-content: center;
138
  align-items: center;
139
  text-decoration: none;
140
+ z-index: 1;
141
  }
 
142
  .back-button:hover {
143
  background-color: #2980b9;
144
  transform: scale(1.1);
145
  }
 
146
  .back-button i {
147
  transition: transform 0.3s ease;
148
  }
 
149
  .back-button:hover i {
150
  transform: translateX(-5px);
151
  }
152
+
153
+ .info-drive-box {
154
+ position: fixed;
155
+ top: 20px;
156
+ right: 20px;
157
+ padding: 15px;
158
+ background-color: white;
159
+ border-radius: 10px;
160
+ box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
161
+ z-index: 1;
162
+ max-width: 300px;
163
+ display: flex;
164
+ flex-direction: column;
165
+ align-items: center;
166
+ transition: transform 0.3s ease;
167
+ }
168
+
169
+ .info-drive-box:hover {
170
+ transform: translateY(-5px); /* Moves up on hover */
171
+ }
172
+
173
+ .drive-button {
174
+ background-color: #e74c3c;
175
+ color: white;
176
+ border: none;
177
+ padding: 0.5rem 1rem;
178
+ border-radius: 20px;
179
+ cursor: pointer;
180
+ display: flex;
181
+ align-items: center;
182
+ transition: all 0.3s ease;
183
+ margin-top: 10px;
184
+ }
185
+
186
+ .drive-button:hover {
187
+ background-color: #c0392b;
188
+ transform: translateY(-2px);
189
+ box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
190
+ }
191
+
192
+ .drive-button i {
193
+ margin-right: 0.5rem;
194
+ }
195
  </style>
196
  </head>
197
  <body>
 
199
  <source src="../static/paper.mp4" type="video/mp4">
200
  Your browser does not support the video tag.
201
  </video>
202
+ <a href="teacher" class="back-button" title= "Back to Home">
203
+ <i class="fas fa-arrow-left"></i>Back
204
+ </a>
205
 
206
+ <div class="info-drive-box">
207
+ <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>
208
+ <button class="drive-button" onclick="openDriveLink()">
209
+ <i class="fas fa-cloud-upload-alt"></i> Open in Drive
210
+ </button>
211
+ </div>
212
 
213
  <div class="container">
214
  <h1>Question Paper Generator</h1>
 
258
  </div>
259
  </div>
260
  </div>
261
+
262
+ <script>
263
+ function openDriveLink() {
264
+ window.open('https://drive.google.com/drive/folders/1g135rBls7OROtbEpEhfjScT5gsODB0mR?usp=sharing', '_blank');
265
+ }
266
+ </script>
267
  </body>
268
+ </html>