Spaces:
Sleeping
Sleeping
File size: 34,111 Bytes
d8635c9 | 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 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 | import type { RFPAnswer } from '../stores/appStore'
export interface DocumentOptions {
title: string
company: string
date: string
generatedBy: string
rfpName?: string
bidNumber?: string
}
export async function generateWordDocument(
answers: RFPAnswer[],
options: DocumentOptions
): Promise<Blob> {
// Generate enhanced HTML content with proper styling for Word
const htmlContent = generateWordCompatibleHTML(answers, options)
// Create a more sophisticated document structure
const wordContent = `
<!DOCTYPE html>
<html xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:w="urn:schemas-microsoft-com:office:word"
xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta charset="UTF-8">
<meta name="Generator" content="SEDNA Consulting Group RFP System">
<!--[if gte mso 9]>
<xml>
<w:WordDocument>
<w:View>Print</w:View>
<w:Zoom>90</w:Zoom>
<w:DoNotPromptForConvert/>
<w:DoNotShowInsertionsAndDeletions/>
</w:WordDocument>
</xml>
<![endif]-->
<style>
@page {
size: 8.5in 11in;
margin: 0;
}
body {
font-family: 'Arial', 'Calibri', sans-serif;
font-size: 11pt;
line-height: 1.15;
margin: 0;
padding: 0;
}
.sedna-cover {
width: 100%;
height: 100vh;
margin: 0;
padding: 0;
position: relative;
background: white;
page-break-after: always;
overflow: hidden;
}
.geometric-background {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 65%;
background: linear-gradient(135deg,
#d3d3d3 0%,
#a9a9a9 20%,
#808080 40%,
#404040 60%,
#2c2c2c 80%,
#1a1a1a 100%
);
clip-path: polygon(0 0, 100% 0, 85% 100%, 0 80%);
}
.geometric-accent {
position: absolute;
top: 15%;
right: 8%;
width: 280px;
height: 180px;
background: linear-gradient(45deg,
rgba(59, 130, 246, 0.2) 0%,
rgba(59, 130, 246, 0.4) 50%,
rgba(30, 64, 175, 0.3) 100%
);
border-radius: 20px;
transform: skew(-15deg, 0deg);
}
.tech-elements {
position: absolute;
top: 25%;
right: 12%;
width: 200px;
height: 120px;
}
.person-icon {
position: absolute;
top: 20px;
left: 80px;
font-size: 48px;
color: #fbbf24;
text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.network-dots {
position: absolute;
top: 40px;
left: 20px;
width: 160px;
height: 80px;
}
.network-dots::before {
content: '';
position: absolute;
width: 6px;
height: 6px;
background: rgba(255, 255, 255, 0.6);
border-radius: 50%;
box-shadow:
20px 0 rgba(255, 255, 255, 0.4),
40px 10px rgba(255, 255, 255, 0.5),
60px -5px rgba(255, 255, 255, 0.3),
80px 15px rgba(255, 255, 255, 0.4),
100px 5px rgba(255, 255, 255, 0.5),
120px 20px rgba(255, 255, 255, 0.3),
10px 25px rgba(255, 255, 255, 0.4),
30px 35px rgba(255, 255, 255, 0.5),
50px 30px rgba(255, 255, 255, 0.3),
70px 40px rgba(255, 255, 255, 0.4),
90px 35px rgba(255, 255, 255, 0.5),
110px 45px rgba(255, 255, 255, 0.3);
}
.rfp-title-section {
position: absolute;
top: 40%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
color: white;
z-index: 10;
}
.rfp-main-title {
font-size: 48px;
font-weight: bold;
margin-bottom: 15px;
text-shadow: 3px 3px 6px rgba(0,0,0,0.5);
letter-spacing: 3px;
}
.rfp-subtitle {
font-size: 20px;
opacity: 0.9;
text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
font-weight: 300;
}
.white-section {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 35%;
background: white;
display: flex;
align-items: center;
padding: 0 60px;
box-sizing: border-box;
}
.company-info-left {
flex: 1;
padding-right: 40px;
}
.company-info-right {
flex: 1;
padding-left: 40px;
border-left: 2px solid #e2e8f0;
}
.company-name-large {
font-size: 28px;
font-weight: bold;
color: #000;
margin-bottom: 20px;
letter-spacing: 1px;
}
.address-section h4 {
font-size: 14px;
font-weight: bold;
color: #4a5568;
margin-bottom: 8px;
margin-top: 0;
}
.address-text {
font-size: 13px;
color: #4a5568;
line-height: 1.5;
margin: 0;
}
.contact-section h3 {
font-size: 18px;
font-weight: bold;
color: #000;
margin-bottom: 15px;
margin-top: 0;
text-decoration: underline;
}
.contact-section h4 {
font-size: 14px;
font-weight: bold;
color: #4a5568;
margin-bottom: 5px;
margin-top: 15px;
}
.contact-name {
font-size: 22px;
font-weight: bold;
color: #000;
margin: 8px 0;
}
.contact-details {
font-size: 13px;
color: #4a5568;
line-height: 1.6;
margin: 0;
}
.website-banner {
position: absolute;
bottom: 20px;
right: 60px;
background: #4a5568;
color: white;
padding: 10px 25px;
font-size: 16px;
font-weight: bold;
letter-spacing: 0.5px;
}
.page-break {
page-break-before: always;
padding: 40px;
}
.section-header {
font-size: 24pt;
font-weight: bold;
color: #1e40af;
margin: 0 0 25px 0;
border-bottom: 3px solid #1e40af;
padding-bottom: 10px;
}
.subsection-header {
font-size: 16pt;
font-weight: bold;
color: #059669;
margin: 25px 0 15px 0;
background: #f0f9ff;
padding: 8px 12px;
border-left: 4px solid #059669;
}
.question-container {
margin: 25px 0;
padding: 20px;
border: 1px solid #e2e8f0;
border-radius: 8px;
}
.question-header {
font-size: 18pt;
font-weight: bold;
color: #059669;
margin: 0 0 20px 0;
background: #f0f9ff;
padding: 12px 15px;
border-left: 4px solid #059669;
}
.question-label {
font-size: 14pt;
font-weight: bold;
color: #7c3aed;
margin: 15px 0 8px 0;
}
.question-content {
font-size: 12pt;
color: #374151;
margin: 0 0 20px 0;
padding: 10px;
background: #faf5ff;
border-left: 3px solid #7c3aed;
}
.answer-content {
font-size: 11pt;
color: #1f2937;
line-height: 1.6;
text-align: justify;
margin: 0 0 15px 0;
}
.references-section {
margin-top: 20px;
padding-top: 15px;
border-top: 1px solid #e2e8f0;
}
.references-label {
font-size: 12pt;
font-weight: bold;
color: #dc2626;
margin-bottom: 8px;
}
.references-content {
font-size: 10pt;
color: #7c3aed;
padding: 10px;
background: #faf5ff;
border-left: 3px solid #7c3aed;
}
.section-intro {
font-size: 12pt;
color: #6b7280;
font-style: italic;
margin-bottom: 30px;
padding: 15px;
background: #f8f9fa;
border-radius: 5px;
}
.toc-content {
background: #f8f9fa;
padding: 20px;
border-radius: 8px;
border: 1px solid #e2e8f0;
}
.capability-grid, .industry-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 10px;
margin: 15px 0;
}
.capability-item, .industry-item {
font-size: 11pt;
color: #1f2937;
padding: 8px;
background: #f0f9ff;
border-radius: 4px;
border-left: 3px solid #3b82f6;
}
.summary-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 30px;
margin: 20px 0;
}
.summary-section {
background: #f8f9fa;
padding: 20px;
border-radius: 8px;
border: 1px solid #e2e8f0;
}
.summary-details {
font-size: 11pt;
color: #1f2937;
line-height: 1.6;
margin: 0;
}
.disclaimer-section {
margin: 30px 0;
padding: 20px;
background: #fef2f2;
border: 1px solid #fecaca;
border-radius: 8px;
}
.disclaimer-text {
font-size: 10pt;
color: #7f1d1d;
line-height: 1.5;
margin: 0;
}
.document-footer {
margin-top: 40px;
text-align: center;
}
.footer-line {
height: 3px;
background: linear-gradient(90deg, #1e40af, #3b82f6, #1e40af);
margin: 20px 0;
}
.footer-title {
font-size: 16pt;
font-weight: bold;
color: #1e40af;
margin-bottom: 10px;
}
.footer-copyright {
font-size: 10pt;
color: #6b7280;
}
.answer-text {
font-size: 11pt;
color: #1f2937;
line-height: 1.6;
margin: 10px 0;
}
</style>
</head>
<body>
${htmlContent}
</body>
</html>`
await new Promise(resolve => setTimeout(resolve, 1000))
const blob = new Blob([wordContent], {
type: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'
})
return blob
}
function generateWordCompatibleHTML(answers: RFPAnswer[], options: DocumentOptions): string {
let htmlContent = `
<div class="sedna-cover">
<div class="geometric-background"></div>
<div class="geometric-accent"></div>
<div class="tech-elements">
<div class="person-icon">π€</div>
<div class="network-dots"></div>
</div>
<div class="rfp-title-section">
<div class="rfp-main-title">RFP RESPONSE</div>
<div class="rfp-subtitle">Professional Technology Solutions</div>
</div>
<div class="white-section">
<div class="company-info-left">
<div class="company-name-large">SEDNA CONSULTING GROUP</div>
<div class="address-section">
<h4>HQ Address:</h4>
<p class="address-text">
860 US Route 1 N, Suite 102<br>
Edison, NJ 08817
</p>
</div>
</div>
<div class="company-info-right">
<div class="contact-section">
<h3>Main Point of Contact</h3>
<h4>Name & Title:</h4>
<div class="contact-name">Neha Arnold, CEO</div>
<p class="contact-details">
<strong>Email:</strong> neha@sednacg.com<br>
<strong>Phone #:</strong> 484-893-9910
</p>
</div>
</div>
</div>
<div class="website-banner">www.sednacg.com</div>
</div>
<div class="page-break">
<div class="section-header">EXECUTIVE SUMMARY</div>
<p class="answer-text">
Dear Evaluation Committee,<br><br>
SEDNA Consulting Group is pleased to submit our comprehensive proposal in response to your
${options.rfpName || 'Request for Proposal'}${options.bidNumber ? ` (Bid No: ${options.bidNumber})` : ''}.
As a leading provider of professional technology solutions, we bring extensive expertise, proven
methodologies, and a commitment to excellence that ensures successful project outcomes.<br><br>
Our response demonstrates:<br>
β’ Deep understanding of your requirements and objectives<br>
β’ Comprehensive technical capabilities and industry expertise<br>
β’ Proven track record of successful project delivery<br>
β’ Commitment to quality, innovation, and client satisfaction<br><br>
We look forward to the opportunity to partner with ${options.company} and deliver exceptional
results that exceed your expectations.<br><br>
Sincerely,<br><br>
<strong>Neha Arnold, CEO</strong><br>
SEDNA Consulting Group<br>
Phone: 484-893-9910<br>
Email: neha@sednacg.com
</p>
</div>
<div class="page-break">
<div class="section-header">TABLE OF CONTENTS</div>
<div class="toc-content">
<p class="answer-text">
<strong>1. Executive Summary</strong> ................................................ Page 2<br><br>
<strong>2. RFP Responses:</strong><br>`
// Add table of contents entries for each question
answers.forEach((answer, index) => {
const questionTitle = answer.question.length > 60
? answer.question.substring(0, 60) + "..."
: answer.question
htmlContent += ` <strong>Question ${index + 1}:</strong> ${questionTitle} .............. Page ${index + 4}<br>`
})
htmlContent += `<br>
<strong>3. Company Profile & Capabilities</strong> ................................. Page ${answers.length + 4}<br>
<strong>4. Document Summary</strong> ............................................... Page ${answers.length + 5}
</p>
</div>
</div>
<div class="page-break">
<div class="section-header">RFP RESPONSES</div>
<p class="section-intro">
The following sections provide comprehensive responses to each question in your RFP.
Each response demonstrates our understanding of your requirements and our capability
to deliver exceptional results.
</p>
</div>`
// Add each question and answer
answers.forEach((answer, index) => {
htmlContent += `
<div class="question-container">
<div class="question-header">QUESTION ${index + 1}</div>
<div class="question-label">QUESTION:</div>
<div class="question-content">${answer.question}</div>
<div class="question-label">RESPONSE:</div>
<div class="answer-content">${answer.finalAnswer || answer.aiGeneratedAnswer}</div>`
if (answer.citations && answer.citations.length > 0) {
htmlContent += `
<div class="references-section">
<div class="references-label">REFERENCES:</div>
<div class="references-content">`
answer.citations.forEach((citation, citIndex) => {
htmlContent += `[${citIndex + 1}] ${citation}<br>`
})
htmlContent += `</div>
</div>`
}
htmlContent += `</div>`
if (index < answers.length - 1) {
htmlContent += `<div class="page-break"></div>`
}
})
htmlContent += `
<div class="page-break">
<div class="section-header">COMPANY PROFILE & CAPABILITIES</div>
<div class="subsection-header">ABOUT SEDNA CONSULTING GROUP</div>
<p class="answer-text">
SEDNA Consulting Group is a premier technology consulting firm specializing in comprehensive
IT solutions, digital transformation, and strategic consulting services. Founded with a mission
to deliver exceptional value through innovative technology solutions, we have established
ourselves as a trusted partner for organizations seeking to optimize their technology investments
and achieve sustainable competitive advantages.
</p>
<div class="subsection-header">CORE CAPABILITIES</div>
<div class="capability-grid">
<div class="capability-item">β’ Strategic Technology Consulting</div>
<div class="capability-item">β’ System Integration & Implementation</div>
<div class="capability-item">β’ Digital Transformation Services</div>
<div class="capability-item">β’ Project Management & Delivery</div>
<div class="capability-item">β’ Quality Assurance & Testing</div>
<div class="capability-item">β’ Training & Knowledge Transfer</div>
</div>
<div class="subsection-header">INDUSTRY EXPERTISE</div>
<div class="industry-grid">
<div class="industry-item">β’ Government & Public Sector</div>
<div class="industry-item">β’ Healthcare & Life Sciences</div>
<div class="industry-item">β’ Financial Services</div>
<div class="industry-item">β’ Education & Research</div>
<div class="industry-item">β’ Manufacturing & Industrial</div>
<div class="industry-item">β’ Technology & Communications</div>
</div>
<div class="subsection-header">COMPETITIVE ADVANTAGES</div>
<p class="answer-text">
β’ <strong>Proven Track Record:</strong> Successful delivery of complex technology initiatives<br>
β’ <strong>Technical Expertise:</strong> Deep knowledge across multiple platforms and technologies<br>
β’ <strong>Agile Methodologies:</strong> Adaptive delivery approaches that respond to changing needs<br>
β’ <strong>Client Focus:</strong> Strong emphasis on client satisfaction and long-term partnerships<br>
β’ <strong>Quality Assurance:</strong> Comprehensive QA and risk management practices
</p>
<div class="subsection-header">CERTIFICATIONS & STANDARDS</div>
<p class="answer-text">
β’ ISO 9001:2015 Quality Management System<br>
β’ CMMI Level 3 Process Maturity<br>
β’ PMP Certified Project Managers<br>
β’ Industry-specific security clearances and certifications
</p>
</div>
<div class="page-break">
<div class="section-header">DOCUMENT SUMMARY</div>
<div class="summary-grid">
<div class="summary-section">
<div class="subsection-header">RFP INFORMATION</div>
<p class="summary-details">
<strong>RFP Name:</strong> ${options.rfpName || 'Request for Proposal'}<br>
<strong>Bid Number:</strong> ${options.bidNumber || 'Not Specified'}<br>
<strong>Client Organization:</strong> ${options.company}<br>
<strong>Total Questions Answered:</strong> ${answers.length}<br>
<strong>Document Date:</strong> ${new Date().toLocaleDateString('en-US', {
year: 'numeric',
month: 'long',
day: 'numeric'
})}
</p>
</div>
<div class="summary-section">
<div class="subsection-header">SUBMISSION DETAILS</div>
<p class="summary-details">
<strong>Submitted By:</strong> Neha Arnold, CEO<br>
<strong>Contact Email:</strong> neha@sednacg.com<br>
<strong>Contact Phone:</strong> 484-893-9910<br>
<strong>Company Website:</strong> www.sednacg.com<br>
<strong>Generated By:</strong> ${options.generatedBy}
</p>
</div>
</div>
<div class="disclaimer-section">
<div class="subsection-header">CONFIDENTIALITY NOTICE</div>
<p class="disclaimer-text">
This document contains confidential and proprietary information of SEDNA Consulting Group.
The information contained herein is submitted solely for the purpose of responding to the
referenced Request for Proposal and may not be reproduced, distributed, or disclosed to
third parties without the express written permission of SEDNA Consulting Group.
</p>
</div>
<div class="document-footer">
<div class="footer-line"></div>
<div class="footer-content">
<div class="footer-title">END OF DOCUMENT</div>
<div class="footer-copyright">Β© ${new Date().getFullYear()} SEDNA CONSULTING GROUP - ALL RIGHTS RESERVED</div>
</div>
</div>
</div>`
return htmlContent
}
export function generateDocumentPreview(
answers: RFPAnswer[],
options: DocumentOptions
): string {
const htmlContent = generateWordCompatibleHTML(answers, options)
// Add CSS styles for web preview
return `
<style>
.preview-container {
max-width: 8.5in;
margin: 0 auto;
background: white;
box-shadow: 0 0 20px rgba(0,0,0,0.1);
font-family: 'Calibri', 'Arial', sans-serif;
}
.cover-page {
min-height: 800px;
position: relative;
background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}
.geometric-header {
background: linear-gradient(135deg,
#a9a9a9 0%,
#a9a9a9 25%,
#404040 50%,
#404040 75%,
#202020 100%);
height: 60%;
position: relative;
color: white;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 40px;
}
.tech-visual {
position: absolute;
top: 20%;
right: 10%;
width: 150px;
height: 100px;
background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 30%, transparent 70%);
border-radius: 15px;
}
.tech-icon {
position: absolute;
top: 25%;
right: 15%;
font-size: 36px;
color: #fbbf24;
}
.main-title {
font-size: 36px;
font-weight: bold;
text-align: center;
margin: 20px 0;
text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
letter-spacing: 2px;
}
.subtitle {
font-size: 16px;
text-align: center;
opacity: 0.9;
margin-bottom: 20px;
}
.company-section {
background: white;
padding: 30px;
height: 40%;
display: flex;
align-items: center;
}
.company-left {
flex: 1;
padding-right: 30px;
}
.company-right {
flex: 1;
border-left: 2px solid #e2e8f0;
padding-left: 30px;
}
.company-name {
font-size: 24px;
font-weight: bold;
color: #000;
margin-bottom: 15px;
letter-spacing: 1px;
}
.contact-header {
font-size: 16px;
font-weight: bold;
color: #000;
margin-bottom: 15px;
text-decoration: underline;
}
.contact-name {
font-size: 18px;
font-weight: bold;
color: #000;
margin: 10px 0;
}
.website-footer {
position: absolute;
bottom: 20px;
right: 30px;
background: #4a5568;
color: white;
padding: 8px 20px;
font-size: 14px;
font-weight: bold;
}
.page-break {
margin: 40px 0;
padding: 20px 0;
border-top: 2px solid #e2e8f0;
}
.section-header {
font-size: 24px;
font-weight: bold;
color: #1e40af;
margin: 30px 0 20px 0;
border-bottom: 3px solid #1e40af;
padding-bottom: 10px;
}
.question-header {
font-size: 18px;
font-weight: bold;
color: #059669;
margin: 25px 0 15px 0;
background: #f0f9ff;
padding: 10px 15px;
border-left: 4px solid #059669;
}
.question-text {
font-size: 14px;
font-weight: bold;
color: #374151;
margin: 15px 0 10px 0;
}
.answer-text {
font-size: 12px;
color: #1f2937;
line-height: 1.6;
margin: 10px 0;
}
.references {
font-size: 11px;
color: #7c3aed;
margin: 15px 0;
padding: 10px;
background: #faf5ff;
border-left: 3px solid #7c3aed;
}
</style>
<div class="preview-container">
${htmlContent}
</div>`
}
function generateDocumentContent(answers: RFPAnswer[], options: DocumentOptions): string {
const coverPage = `
SEDNA CONSULTING GROUP
Professional Technology Solutions
RFP RESPONSE
${options.rfpName || 'Request for Proposal'}
${options.bidNumber ? `Bid No: ${options.bidNumber}` : ''}
Submitted To: ${options.company}
Date: ${new Date().toLocaleDateString('en-US', {
year: 'numeric',
month: 'long',
day: 'numeric'
})}
βββββββββββββββββββββββββββββββ
Main Point of Contact:
Neha Arnold, CEO
Email: neha@sednacg.com
Phone: 484-893-9910
HQ Address:
860 US Route 1 N, Suite 102
Edison, NJ 08817
www.sednacg.com
βββββββββββββββββββββββββββββββ
CONFIDENTIAL AND PROPRIETARY INFORMATION
Β© ${new Date().getFullYear()} SEDNA CONSULTING GROUP
ALL RIGHTS RESERVED
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
PAGE BREAK
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
EXECUTIVE SUMMARY
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Dear Evaluation Committee,
SEDNA Consulting Group is pleased to submit our comprehensive proposal in
response to your Request for Proposal. As a leading provider of professional
technology solutions, we bring extensive expertise, proven methodologies, and
a commitment to excellence that ensures successful project outcomes.
Our response demonstrates:
β’ Deep understanding of your requirements and objectives
β’ Comprehensive technical capabilities and industry expertise
β’ Proven track record of successful project delivery
β’ Commitment to quality, innovation, and client satisfaction
We look forward to the opportunity to partner with ${options.company} and
deliver exceptional results that exceed your expectations.
Sincerely,
Neha Arnold, CEO
SEDNA Consulting Group
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
PAGE BREAK
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
TABLE OF CONTENTS
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
1. Executive Summary ................................................ Page 2
2. RFP Responses:
`
let content = coverPage
// Add table of contents entries for each question
answers.forEach((answer, index) => {
const questionTitle = answer.question.length > 60
? answer.question.substring(0, 60) + "..."
: answer.question
content += ` Question ${index + 1}: ${questionTitle} .............. Page ${index + 4}\n`
})
content += `
3. Company Profile & Capabilities ................................. Page ${answers.length + 4}
4. Document Summary ............................................... Page ${answers.length + 5}
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
PAGE BREAK
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
RFP RESPONSES
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
`
answers.forEach((answer, index) => {
content += `
QUESTION ${index + 1}
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
QUESTION:
${answer.question}
RESPONSE:
${answer.finalAnswer || answer.aiGeneratedAnswer}
`
if (answer.citations && answer.citations.length > 0) {
content += `REFERENCES:
`
answer.citations.forEach((citation, citIndex) => {
content += `[${citIndex + 1}] ${citation}\n`
})
}
content += `
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
PAGE BREAK
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
`
})
content += `
COMPANY PROFILE & CAPABILITIES
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
ABOUT SEDNA CONSULTING GROUP
SEDNA Consulting Group is a premier technology consulting firm specializing in
comprehensive IT solutions, digital transformation, and strategic consulting
services. Founded with a mission to deliver exceptional value through innovative
technology solutions, we have established ourselves as a trusted partner for
organizations seeking to optimize their technology investments and achieve
sustainable competitive advantages.
CORE CAPABILITIES
β’ Strategic Technology Consulting
β’ System Integration & Implementation
β’ Digital Transformation Services
β’ Project Management & Delivery
β’ Quality Assurance & Testing
β’ Training & Knowledge Transfer
INDUSTRY EXPERTISE
β’ Government & Public Sector
β’ Healthcare & Life Sciences
β’ Financial Services
β’ Education & Research
β’ Manufacturing & Industrial
β’ Technology & Communications
COMPETITIVE ADVANTAGES
β’ Proven track record of successful project delivery
β’ Deep technical expertise across multiple platforms
β’ Agile and adaptive delivery methodologies
β’ Strong focus on client satisfaction and long-term partnerships
β’ Comprehensive quality assurance and risk management practices
CERTIFICATIONS & STANDARDS
β’ ISO 9001:2015 Quality Management
β’ CMMI Level 3 Process Maturity
β’ PMP Certified Project Managers
β’ Industry-specific security clearances
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
PAGE BREAK
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
DOCUMENT SUMMARY
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
RFP INFORMATION:
β’ RFP Name: ${options.rfpName || 'Request for Proposal'}
β’ ${options.bidNumber ? `Bid Number: ${options.bidNumber}` : 'Bid Number: Not Specified'}
β’ Client: ${options.company}
β’ Total Questions Answered: ${answers.length}
DOCUMENT DETAILS:
β’ Document Generated: ${new Date().toLocaleString()}
β’ Generated By: ${options.generatedBy}
β’ System: SEDNA Consulting Group RFP Management System
β’ Version: 2.0
SUBMISSION INFORMATION:
β’ Submitted By: Neha Arnold, CEO
β’ Contact Email: neha@sednacg.com
β’ Contact Phone: 484-893-9910
β’ Company Website: www.sednacg.com
DISCLAIMER:
This document contains confidential and proprietary information of SEDNA
Consulting Group. The information contained herein is submitted solely for
the purpose of responding to the referenced RFP and may not be reproduced
or distributed without express written permission.
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
END OF DOCUMENT
Β© ${new Date().getFullYear()} SEDNA CONSULTING GROUP
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ`
return content
} |