completion-certificate/template.html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<style data-thirds="base">
html,body{margin:0}
[data-thirds="canvas"]{position:relative;overflow:hidden}
[data-thirds="canvas"] [data-thirds]{position:absolute;box-sizing:border-box;margin:0}
[data-thirds="text"]{white-space:pre-wrap;overflow-wrap:anywhere}
[data-thirds="image"]{display:block}
[data-thirds="table"]{border-collapse:collapse}
[data-thirds="table"] th,[data-thirds="table"] td{padding:4px 6px;text-align:left;vertical-align:top;border-bottom:1px solid var(--rule,#dde1e8)}
[data-thirds="table"] th{background:var(--head,transparent)}
[data-thirds="list"]{display:flex;flex-direction:column}
[data-thirds="canvas"] [data-thirds="item"]{position:relative;flex:none}
</style>
<style>@page { size: 794px 1123px; margin: 0; } body { font-family: Arial, sans-serif; } [data-thirds="table"] th,[data-thirds="table"] td { padding: 12px; } </style>
</head>
<body>
<div data-thirds="canvas" data-thirds-kind="pdf" style="width:794px;height:1123px;background:white">
<div data-thirds="box" style="left:32px;top:32px;width:730px;height:1059px;background:white;border:2px solid #0a46ff"></div>
<div data-thirds="box" style="left:48px;top:48px;width:698px;height:1027px;background:white;border:1px solid #dde1e8"></div>
<div data-thirds="text" style="left:90px;top:120px;width:614px;height:22px;font-size:12px;color:#0a46ff;font-weight:700;line-height:1.25;letter-spacing:1.3px;text-transform:uppercase">{{ issuer }}</div>
<div data-thirds="text" style="left:90px;top:236px;width:614px;height:166px;font-size:56px;color:#0b0b0b;font-weight:700;line-height:1.25;text-align:center">Certificate of completion</div>
<div data-thirds="text" style="left:100px;top:454px;width:594px;height:34px;font-size:21px;color:#575f6d;font-weight:400;line-height:1.25;text-align:center">This certificate is awarded to</div>
<div data-thirds="text" style="left:80px;top:526px;width:634px;height:98px;font-size:50px;color:#0a46ff;font-weight:700;line-height:1.25;text-align:center">{{ learner }}</div>
<div data-thirds="box" style="left:130px;top:650px;width:534px;height:1px;background:#dde1e8"></div>
<div data-thirds="text" style="left:110px;top:705px;width:574px;height:38px;font-size:21px;color:#575f6d;font-weight:400;line-height:1.25;text-align:center">For completing</div>
<div data-thirds="text" style="left:95px;top:766px;width:604px;height:109px;font-size:28px;color:#0b0b0b;font-weight:700;line-height:1.25;text-align:center">{{ course }}</div>
<div data-thirds="text" style="left:105px;top:948px;width:584px;height:34px;font-size:18px;color:#575f6d;font-weight:400;line-height:1.25;text-align:center">{{ date }}</div>
</div>
</body>
</html>