fmard/pdf-api
0
1<!DOCTYPE html>2<html lang="en">3<head>4 <meta charset="UTF-8">5 <title>{{ title | default("Lookbook") }}</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 .cover { text-align: center; padding: 60px 0 40px; margin-bottom: 35px; border-bottom: 3px solid #4f46e5; }10 .cover h1 { font-size: 36px; color: #4f46e5; margin-bottom: 8px; letter-spacing: 2px; text-transform: uppercase; }11 .cover .collection { font-size: 18px; color: #666; font-style: italic; margin-bottom: 5px; }12 .cover .brand { font-size: 14px; color: #999; }13 .intro { text-align: center; max-width: 80%; margin: 0 auto 35px; }14 .intro p { color: #555; font-size: 15px; }15 .lookbook-item { margin-bottom: 40px; page-break-inside: avoid; }16 .lookbook-item .image-large { width: 100%; height: 280px; background: #e8eaff; border: 2px dashed #4f46e5; display: flex; align-items: center; justify-content: center; border-radius: 10px; color: #4f46e5; font-weight: bold; font-size: 14px; margin-bottom: 15px; }17 .lookbook-item .caption { display: flex; justify-content: space-between; align-items: flex-start; }18 .lookbook-item .caption .text h3 { font-size: 18px; color: #333; margin-bottom: 4px; }19 .lookbook-item .caption .text p { font-size: 13px; color: #666; }20 .lookbook-item .caption .meta { text-align: right; }21 .lookbook-item .caption .meta .price { font-size: 18px; font-weight: bold; color: #4f46e5; }22 .lookbook-item .caption .meta .ref { font-size: 11px; color: #999; }23 .two-up { display: flex; gap: 20px; margin-bottom: 40px; }24 .two-up .lookbook-half { flex: 1; }25 .two-up .lookbook-half .image-medium { width: 100%; height: 200px; background: #e8eaff; border: 2px dashed #4f46e5; display: flex; align-items: center; justify-content: center; border-radius: 8px; color: #4f46e5; font-weight: bold; font-size: 12px; margin-bottom: 12px; }26 .two-up .lookbook-half h3 { font-size: 15px; color: #333; margin-bottom: 3px; }27 .two-up .lookbook-half p { font-size: 12px; color: #666; }28 .two-up .lookbook-half .price { color: #4f46e5; font-weight: bold; font-size: 14px; margin-top: 5px; }29 .divider { text-align: center; margin: 40px 0; position: relative; }30 .divider::before { content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: #e5e7eb; }31 .divider span { background: white; padding: 0 20px; position: relative; color: #4f46e5; font-weight: bold; font-size: 12px; text-transform: uppercase; letter-spacing: 2px; }32 .contact-section { text-align: center; margin-top: 40px; padding: 30px; background: #f8f9ff; border-radius: 12px; }33 .contact-section h2 { color: #4f46e5; margin-bottom: 10px; font-size: 18px; }34 .contact-section p { color: #555; font-size: 13px; margin-bottom: 5px; }35 .footer { margin-top: 30px; text-align: center; font-size: 12px; color: #999; }36 </style>37</head>38<body>39 <div class="cover">40 <h1>{{ title | default("Lookbook") }}</h1>41 <div class="collection">{{ collection | default("Spring/Summer 2024 Collection") }}</div>42 <div class="brand">{{ company_name | default("Acme Design Studio") }}</div>43 </div>44 45 <div class="intro">46 <p>{{ intro | default("Discover our latest collection inspired by modern minimalism and timeless elegance. Each piece is carefully crafted to blend functionality with aesthetic beauty, creating designs that make a statement.") }}</p>47 </div>48 49 {% for item in featured_items | default([{"title": "The Executive Collection", "description": "A refined selection of pieces designed for the modern professional. Clean lines meet premium materials in this sophisticated collection.", "image": "Featured Product Image — Full Width", "price": "$1,299", "ref": "EXC-2024-001"}]) %}50 <div class="lookbook-item">51 <div class="image-large">[{{ item.image }}]</div>52 <div class="caption">53 <div class="text">54 <h3>{{ item.title }}</h3>55 <p>{{ item.description }}</p>56 </div>57 <div class="meta">58 <div class="price">{{ item.price }}</div>59 <div class="ref">Ref: {{ item.ref }}</div>60 </div>61 </div>62 </div>63 {% endfor %}64 65 <div class="divider"><span>{{ divider_text | default("Collection Highlights") }}</span></div>66 67 {% for pair in item_pairs | default([{"left": {"title": "Minimal Desk Lamp", "description": "Brushed aluminum with warm LED, adjustable arm", "image": "Product Image A", "price": "$189"}, "right": {"title": "Leather Portfolio Case", "description": "Full-grain leather, hand-stitched, document organizer", "image": "Product Image B", "price": "$249"}}, {"left": {"title": "Geometric Wall Clock", "description": "Solid walnut frame, silent movement, 12-inch", "image": "Product Image C", "price": "$129"}, "right": {"title": "Ceramic Desk Set", "description": "Pen holder, tray, and paperweight in matte white", "image": "Product Image D", "price": "$89"}}]) %}68 <div class="two-up">69 <div class="lookbook-half">70 <div class="image-medium">[{{ pair.left.image }}]</div>71 <h3>{{ pair.left.title }}</h3>72 <p>{{ pair.left.description }}</p>73 <div class="price">{{ pair.left.price }}</div>74 </div>75 <div class="lookbook-half">76 <div class="image-medium">[{{ pair.right.image }}]</div>77 <h3>{{ pair.right.title }}</h3>78 <p>{{ pair.right.description }}</p>79 <div class="price">{{ pair.right.price }}</div>80 </div>81 </div>82 {% endfor %}83 84 <div class="contact-section">85 <h2>{{ cta_title | default("Interested in Our Collection?") }}</h2>86 <p>{{ cta_text | default("Visit our showroom or contact our sales team for pricing and availability.") }}</p>87 <p><strong>{{ showroom | default("Acme Design Studio — 789 Creative Blvd, SoHo, New York") }}</strong></p>88 <p>{{ email | default("sales@acmedesign.com") }} | {{ phone | default("+1 (555) 987-6543") }}</p>89 </div>90 91 <div class="footer">92 <p>{{ company_name | default("Acme Design Studio") }} — {{ collection | default("Spring/Summer 2024") }} Lookbook</p>93 <p>© {{ year | default("2024") }} All Rights Reserved</p>94 </div>95</body>96</html>97 