File size: 22,197 Bytes
7adf043 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 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 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 115 116 117 118 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 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>🎓 Smart Academic Report Generator</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
padding: 20px;
}
.container {
max-width: 1200px;
margin: 0 auto;
}
.header {
text-align: center;
margin-bottom: 40px;
}
.header-badge {
display: inline-flex;
align-items: center;
gap: 15px;
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
padding: 15px 30px;
border-radius: 50px;
border: 1px solid rgba(255, 255, 255, 0.2);
margin-bottom: 20px;
}
.header h1 {
font-size: 2.5em;
color: white;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
margin: 0;
}
.header p {
color: rgba(255, 255, 255, 0.9);
font-size: 1.2em;
font-weight: 500;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}
.main-card {
background: white;
border-radius: 20px;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
overflow: hidden;
}
.form-content {
padding: 40px;
}
.section {
padding: 30px;
border-radius: 15px;
margin-bottom: 30px;
border: 2px solid;
}
.section.student {
background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
border-color: #667eea;
}
.section.course {
background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
border-color: #f6ad55;
}
.section.report {
background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
border-color: #48bb78;
}
.section.formatting {
background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
border-color: #e53e3e;
}
.section-header {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 20px;
}
.section-header h2 {
font-size: 1.5em;
color: #2d3748;
font-weight: 700;
margin: 0;
}
.form-grid {
display: grid;
gap: 20px;
}
.grid-2 {
grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
grid-template-columns: repeat(4, 1fr);
}
.form-group {
display: flex;
flex-direction: column;
}
label {
display: block;
margin-bottom: 8px;
font-size: 0.95em;
font-weight: 700;
color: #2d3748;
text-transform: uppercase;
letter-spacing: 0.5px;
}
input, select, textarea {
width: 100%;
padding: 12px 15px;
font-size: 1em;
border: 2px solid rgba(0, 0, 0, 0.1);
border-radius: 8px;
transition: all 0.3s;
background: rgba(255, 255, 255, 0.9);
font-family: inherit;
}
input:focus, select:focus, textarea:focus {
outline: none;
border-color: #667eea;
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
textarea {
min-height: 80px;
resize: vertical;
}
.checkbox-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 15px;
margin-top: 20px;
}
.checkbox-label {
display: flex;
align-items: center;
gap: 10px;
padding: 12px;
background: rgba(255, 255, 255, 0.6);
border-radius: 8px;
cursor: pointer;
transition: all 0.3s;
border: 2px solid transparent;
}
.checkbox-label:hover {
border-color: #e53e3e;
}
.checkbox-label input {
width: 18px;
height: 18px;
cursor: pointer;
}
.checkbox-label span {
font-size: 0.95em;
font-weight: 600;
}
.generate-btn {
width: 100%;
padding: 20px 40px;
font-size: 1.3em;
font-weight: 700;
color: white;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
border: none;
border-radius: 15px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
gap: 15px;
box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
transition: all 0.3s;
margin-top: 20px;
}
.generate-btn:hover {
transform: scale(1.02);
box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
}
.generate-btn:disabled {
background: linear-gradient(135deg, #a0a0a0 0%, #808080 100%);
cursor: not-allowed;
transform: scale(0.98);
}
.alert {
padding: 20px;
border-radius: 12px;
display: flex;
align-items: center;
gap: 15px;
margin-top: 20px;
border: 2px solid;
}
.alert.success {
background: linear-gradient(135deg, #9ae6b4 0%, #c6f6d5 100%);
border-color: #48bb78;
color: #22543d;
}
.alert.error {
background: linear-gradient(135deg, #fc8181 0%, #feb2b2 100%);
border-color: #e53e3e;
color: #742a2a;
}
.footer {
padding: 30px;
background: linear-gradient(135deg, #434343 0%, #000000 100%);
color: rgba(255, 255, 255, 0.8);
text-align: center;
}
.spinner {
animation: spin 1s linear infinite;
}
@keyframes spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
@media (max-width: 768px) {
.grid-2, .grid-3, .grid-4, .checkbox-grid {
grid-template-columns: 1fr;
}
.header h1 {
font-size: 1.8em;
}
.form-content {
padding: 20px;
}
.section {
padding: 20px;
}
}
.icon {
width: 24px;
height: 24px;
}
</style>
</head>
<body>
<div class="container">
<!-- Header -->
<div class="header">
<div class="header-badge">
<svg class="icon" fill="white" viewBox="0 0 24 24">
<path d="M12 3L1 9l4 2.18v6L12 21l7-3.82v-6l2-1.09V17h2V9L12 3zm6.82 6L12 12.72 5.18 9 12 5.28 18.82 9zM17 15.99l-5 2.73-5-2.73v-3.72L12 15l5-2.73v3.72z"/>
</svg>
<h1>Smart Academic Report Generator</h1>
</div>
<p>Professional PhD-Level Reports in Minutes ✨</p>
</div>
<!-- Main Card -->
<div class="main-card">
<form id="reportForm" class="form-content">
<!-- Student Information -->
<div class="section student">
<div class="section-header">
<svg class="icon" fill="#667eea" viewBox="0 0 24 24">
<path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/>
</svg>
<h2>Student Information</h2>
</div>
<div class="form-grid grid-2">
<div class="form-group">
<label>Full Name *</label>
<input type="text" id="studentName" required placeholder="e.g., Md. Rahman Ahmed">
</div>
<div class="form-group">
<label>Student ID *</label>
<input type="text" id="studentId" required placeholder="e.g., 2023-1-60-001">
</div>
<div class="form-group">
<label>Department *</label>
<input type="text" id="department" required placeholder="e.g., Computer Science & Engineering">
</div>
<div class="form-group">
<label>University *</label>
<input type="text" id="university" required placeholder="e.g., East West University">
</div>
</div>
</div>
<!-- Course Information -->
<div class="section course">
<div class="section-header">
<svg class="icon" fill="#f6ad55" viewBox="0 0 24 24">
<path d="M21 5c-1.11-.35-2.33-.5-3.5-.5-1.95 0-4.05.4-5.5 1.5-1.45-1.1-3.55-1.5-5.5-1.5S2.45 4.9 1 6v14.65c0 .25.25.5.5.5.1 0 .15-.05.25-.05C3.1 20.45 5.05 20 6.5 20c1.95 0 4.05.4 5.5 1.5 1.35-.85 3.8-1.5 5.5-1.5 1.65 0 3.35.3 4.75 1.05.1.05.15.05.25.05.25 0 .5-.25.5-.5V6c-.6-.45-1.25-.75-2-1zm0 13.5c-1.1-.35-2.3-.5-3.5-.5-1.7 0-4.15.65-5.5 1.5V8c1.35-.85 3.8-1.5 5.5-1.5 1.2 0 2.4.15 3.5.5v11.5z"/>
</svg>
<h2>Course Information</h2>
</div>
<div class="form-grid grid-2">
<div class="form-group">
<label>Course Title *</label>
<input type="text" id="courseTitle" required placeholder="e.g., Artificial Intelligence">
</div>
<div class="form-group">
<label>Course Code *</label>
<input type="text" id="courseCode" required placeholder="e.g., CSE 366">
</div>
<div class="form-group">
<label>Instructor Name *</label>
<input type="text" id="teacherName" required placeholder="e.g., Dr. Sarah Johnson">
</div>
<div class="form-group">
<label>Designation</label>
<input type="text" id="teacherDesignation" placeholder="e.g., Associate Professor">
</div>
</div>
</div>
<!-- Report Details -->
<div class="section report">
<div class="section-header">
<svg class="icon" fill="#48bb78" viewBox="0 0 24 24">
<path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z"/>
</svg>
<h2>Report Details</h2>
</div>
<div class="form-grid">
<div class="form-grid grid-2">
<div class="form-group">
<label>Report Type *</label>
<select id="reportType">
<option value="assignment">Assignment</option>
<option value="project">Project Report</option>
<option value="thesis">Thesis</option>
<option value="research">Research Paper</option>
<option value="case-study">Case Study</option>
<option value="lab-report">Lab Report</option>
</select>
</div>
<div class="form-group">
<label>Submission Date *</label>
<input type="date" id="submissionDate" required>
</div>
</div>
<div class="form-group">
<label>Report Title *</label>
<input type="text" id="reportTitle" required placeholder="e.g., Deep Learning Applications in Medical Imaging">
</div>
<div class="form-group">
<label>Topic/Subject Area *</label>
<textarea id="topic" required placeholder="e.g., Analysis of convolutional neural networks for detecting lung cancer from CT scans"></textarea>
</div>
</div>
</div>
<!-- Formatting Options -->
<div class="section formatting">
<div class="section-header">
<svg class="icon" fill="#e53e3e" viewBox="0 0 24 24">
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/>
</svg>
<h2>Document Settings</h2>
</div>
<div class="form-grid grid-3">
<div class="form-group">
<label>Font Family</label>
<select id="fontFamily">
<option value="Times New Roman">Times New Roman</option>
<option value="Arial">Arial</option>
<option value="Calibri">Calibri</option>
<option value="Georgia">Georgia</option>
</select>
</div>
<div class="form-group">
<label>Font Size</label>
<select id="fontSize">
<option value="11">11 pt</option>
<option value="12" selected>12 pt</option>
<option value="14">14 pt</option>
</select>
</div>
<div class="form-group">
<label>Line Spacing</label>
<select id="lineSpacing">
<option value="1.0">Single</option>
<option value="1.5" selected>1.5 Lines</option>
<option value="2.0">Double</option>
</select>
</div>
</div>
<div class="checkbox-grid">
<label class="checkbox-label">
<input type="checkbox" id="includeAbstract" checked>
<span>Include Abstract</span>
</label>
<label class="checkbox-label">
<input type="checkbox" id="includeTOC" checked>
<span>Table of Contents</span>
</label>
<label class="checkbox-label">
<input type="checkbox" id="includeReferences" checked>
<span>References</span>
</label>
<label class="checkbox-label">
<input type="checkbox" id="pageNumbers" checked>
<span>Page Numbers</span>
</label>
</div>
</div>
<!-- Generate Button -->
<button type="submit" class="generate-btn" id="generateBtn">
<svg class="icon" fill="white" viewBox="0 0 24 24">
<path d="M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"/>
</svg>
Generate Academic Report
</button>
<!-- Alerts -->
<div id="alertContainer"></div>
</form>
<!-- Footer -->
<div class="footer">
<p style="margin: 0 0 10px 0; font-size: 1.1em; font-weight: 600;">
🎓 Smart Academic Report Generator
</p>
<p style="margin: 0; font-size: 0.9em; opacity: 0.7;">
Professional PhD-Level Reports • Auto Cover Page • Table of Contents • APA References
</p>
</div>
</div>
</div>
<script>
// Set default date to today
document.getElementById('submissionDate').valueAsDate = new Date();
// Form submission handler
document.getElementById('reportForm').addEventListener('submit', async function(e) {
e.preventDefault();
const generateBtn = document.getElementById('generateBtn');
const alertContainer = document.getElementById('alertContainer');
// Disable button and show loading
generateBtn.disabled = true;
generateBtn.innerHTML = `
<svg class="icon spinner" fill="white" viewBox="0 0 24 24">
<path d="M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z"/>
</svg>
Generating Your Professional Report...
`;
// Collect form data
const formData = {
studentName: document.getElementById('studentName').value,
studentId: document.getElementById('studentId').value,
department: document.getElementById('department').value,
university: document.getElementById('university').value,
courseTitle: document.getElementById('courseTitle').value,
courseCode: document.getElementById('courseCode').value,
teacherName: document.getElementById('teacherName').value,
teacherDesignation: document.getElementById('teacherDesignation').value,
submissionDate: document.getElementById('submissionDate').value,
reportType: document.getElementById('reportType').value,
reportTitle: document.getElementById('reportTitle').value,
topic: document.getElementById('topic').value,
includeAbstract: document.getElementById('includeAbstract').checked,
includeTOC: document.getElementById('includeTOC').checked,
includeReferences: document.getElementById('includeReferences').checked,
pageNumbers: document.getElementById('pageNumbers').checked,
fontFamily: document.getElementById('fontFamily').value,
fontSize: document.getElementById('fontSize').value,
lineSpacing: document.getElementById('lineSpacing').value
};
// Show configuration in alert
alertContainer.innerHTML = `
<div class="alert success">
<svg class="icon" fill="#2f855a" viewBox="0 0 24 24">
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/>
</svg>
<div>
<strong style="font-size: 1.1em;">✨ Configuration Saved!</strong><br>
<small>To generate the actual DOCX file, please run:</small><br>
<code style="background: rgba(0,0,0,0.1); padding: 5px 10px; border-radius: 5px; display: inline-block; margin-top: 5px;">
node generate-academic-report.js --config your-config.json
</code><br>
<small style="margin-top: 10px; display: block;">
Your configuration has been prepared. Copy it to a JSON file and use the Node.js backend to generate the DOCX document.
</small>
</div>
</div>
`;
// Download configuration as JSON
const configJson = JSON.stringify(formData, null, 2);
const blob = new Blob([configJson], { type: 'application/json' });
const url = URL.createObjectURL(blob);
const a = document.createElement('a');
a.href = url;
a.download = 'academic-report-config.json';
document.body.appendChild(a);
a.click();
document.body.removeChild(a);
URL.revokeObjectURL(url);
// Re-enable button
setTimeout(() => {
generateBtn.disabled = false;
generateBtn.innerHTML = `
<svg class="icon" fill="white" viewBox="0 0 24 24">
<path d="M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"/>
</svg>
Generate Academic Report
`;
}, 2000);
});
</script>
</body>
</html>
|