fmard/pdf-api
0
1<!DOCTYPE html>2<html lang="en">3<head>4 <meta charset="UTF-8">5 <title>{{ subject | default("Reference Letter") }}</title>6 <style>7 * { margin: 0; padding: 0; box-sizing: border-box; }8 body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; padding: 40px; font-size: 14px; line-height: 1.6; color: #1a1a2e; }9 .letterhead { border-bottom: 3px solid #4f46e5; padding-bottom: 20px; margin-bottom: 30px; }10 .letterhead h1 { font-size: 22px; color: #4f46e5; margin-bottom: 4px; }11 .letterhead .company-details { font-size: 12px; color: #666; }12 .date { margin-bottom: 25px; color: #666; }13 .title-line { font-size: 16px; font-weight: 600; color: #4f46e5; text-align: center; margin-bottom: 25px; padding: 12px; border: 2px solid #4f46e5; border-radius: 6px; text-transform: uppercase; letter-spacing: 1px; }14 .salutation { margin-bottom: 20px; }15 .body-text p { margin-bottom: 14px; color: #444; text-align: justify; }16 .qualities-box { background: #f8f9ff; border: 1px solid #e0e2ff; padding: 20px; border-radius: 8px; margin: 20px 0; }17 .qualities-box h3 { font-size: 13px; text-transform: uppercase; color: #4f46e5; margin-bottom: 12px; letter-spacing: 0.5px; }18 .qualities-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }19 .quality-item { padding: 6px 12px; background: white; border-radius: 4px; border-left: 3px solid #4f46e5; font-size: 13px; }20 .closing { margin-top: 30px; }21 .closing .regards { margin-bottom: 45px; }22 .signature-block .name { font-weight: 600; color: #333; }23 .signature-block .title { font-size: 13px; color: #666; }24 .signature-block .company { font-size: 13px; color: #4f46e5; }25 .signature-block .contact { font-size: 12px; color: #666; margin-top: 4px; }26 .confidential { margin-top: 30px; padding-top: 15px; border-top: 1px solid #e5e7eb; font-size: 11px; color: #999; text-align: center; font-style: italic; }27 </style>28</head>29<body>30 <div class="letterhead">31 <h1>{{ company_name | default("Acme Corporation") }}</h1>32 <div class="company-details">33 {{ company_address | default("123 Business Avenue, Suite 500, San Francisco, CA 94102") }}<br>34 {{ company_phone | default("Tel: (415) 555-0100") }} | {{ company_email | default("hr@acmecorp.com") }}35 </div>36 </div>37 38 <div class="date">{{ date | default("January 15, 2024") }}</div>39 40 <div class="title-line">Letter of Reference</div>41 42 <div class="salutation">43 <p>{{ salutation | default("To Whom It May Concern") }},</p>44 </div>45 46 <div class="body-text">47 <p>{{ paragraph_1 | default("I am pleased to provide this letter of reference for Emily Zhang, who served as Senior Software Engineer at Acme Corporation from March 2020 to December 2023. During her tenure, Emily reported directly to me and consistently demonstrated exceptional technical ability, leadership qualities, and professional integrity.") }}</p>48 <p>{{ paragraph_2 | default("In her role, Emily was responsible for leading a team of 8 engineers on our core platform team. She architected and delivered multiple critical systems including our real-time data processing pipeline, which reduced latency by 60% and saved the company $200K annually in infrastructure costs. Her technical decisions consistently proved sound, and her code was regarded as exemplary by her peers.") }}</p>49 <p>{{ paragraph_3 | default("Beyond her technical contributions, Emily demonstrated remarkable leadership skills. She mentored four junior engineers (two of whom have since been promoted), facilitated knowledge-sharing sessions, and championed diversity initiatives within the engineering department. Her ability to communicate complex technical concepts to non-technical stakeholders made her an invaluable bridge between engineering and product teams.") }}</p>50 </div>51 52 <div class="qualities-box">53 <h3>Key Strengths & Qualities</h3>54 <div class="qualities-grid">55 {% for quality in qualities | default([{"text": "Exceptional technical problem-solving"}, {"text": "Strong leadership & mentorship"}, {"text": "Excellent communication skills"}, {"text": "Strategic thinking & planning"}, {"text": "Collaborative team player"}, {"text": "Self-motivated & proactive"}, {"text": "Adaptable to changing priorities"}, {"text": "Strong work ethic & reliability"}]) %}56 <div class="quality-item">{{ quality.text }}</div>57 {% endfor %}58 </div>59 </div>60 61 <div class="body-text">62 <p>{{ paragraph_4 | default("Emily left our organization on excellent terms to pursue a senior leadership opportunity that aligned with her career goals. Her departure was a significant loss to our team, and I would rehire her without hesitation if the opportunity arose.") }}</p>63 <p>{{ paragraph_5 | default("I give Emily my highest recommendation without reservation. She would be an outstanding asset to any organization fortunate enough to have her on their team. Please do not hesitate to contact me if you require any additional information.") }}</p>64 </div>65 66 <div class="closing">67 <p class="regards">{{ closing | default("Sincerely") }},</p>68 <div class="signature-block">69 <p class="name">{{ sender_name | default("James Morrison") }}</p>70 <p class="title">{{ sender_title | default("VP of Engineering") }}</p>71 <p class="company">{{ company_name | default("Acme Corporation") }}</p>72 <p class="contact">{{ sender_email | default("j.morrison@acmecorp.com") }} | {{ sender_phone | default("(415) 555-0142") }}</p>73 </div>74 </div>75 76 <div class="confidential">77 This reference letter is provided in confidence and should be used solely for employment evaluation purposes.78 </div>79</body>80</html>81 