-
Notifications
You must be signed in to change notification settings - Fork 34
/
credential-template.html
39 lines (39 loc) · 1.95 KB
/
credential-template.html
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Identity Card</title>
</head>
<body #if ($textColor) style="color: $textColor;" #end>
<div #if ($backgroundColor) style="background: $backgroundColor; border: 1px $textolor solid; border-radius: 15px; padding: 10px;" #else style="border: 2px black solid; border-radius: 15px; padding: 10px;" #end>
<div style="text-align: center; padding-top: 10px; font-weight: bold;">
<span style="font-size: 16px; vertical-align: middle;">$titleName</span>
</div>
<div style="display: flex; flex-direction: row; justify-content: space-between;">
<div style="margin: 30px; justify-content: center; align-items: center;">
#if (!$face)
<div style="float: left; height:100px;width:100px;background-color:white;border-radius:10px;border:1px solid grey">
<img style="margin: 25px;width: 50px; height:50px;" src="https://raw.githubusercontent.com/challabeehyv/mimoto-config/main/user-icon.png" alt="Logo" />
</div>
#else
<img style="height:100px;width:100px; border-radius:10px;" src="$face" alt="Logo" />
#end
<div style="float: left; height:100px;width:100px; border-radius:10px; margin-top: 20px;">
<img style="width: 100px; height:auto;" src="$logoUrl" alt="Logo" />
</div>
</div>
<div style="margin-left: 30px; padding-top: 30px">
#foreach($entry in $rowProperties.entrySet())
#if($entry.value)
<div style="margin-bottom: 10px; float: left; width: 450px;">
<div style="font-weight: bold; font-size: 16px; margin-bottom: 5px; word-wrap: break-word;">$entry.key</div>
<div style="font-size: 16px; word-wrap: break-word;">$entry.value</div>
</div>
#end
#end
</div>
</div>
<img src="data:image/png;base64,$qrCodeImage" alt="QR Code"/>
</div>
</body>
</html>