-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathgift-card.html
107 lines (107 loc) · 2.02 KB
/
gift-card.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
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
<html>
<head>
<title>{%GiftCard}</title>
<link href="https://fonts.googleapis.com/css2?family=Nanum+Gothic+Coding&family=Share:ital,wght@0,400;0,700;1,400;1,700&display=swap" rel="stylesheet">
<style>
@page {
margin: 0;
size: A6 landscape;
}
html, body {
font-family: 'Share', cursive;
font-size: 15px;
height: 100%;
}
.GiftCardBalance {
font-size: 17pt;
font-style: italic;
position: absolute;
top: 35px;
right: 35px;
}
.GiftCardBody {
align-items: center;
box-sizing: border-box;
display: flex;
flex-direction: column;
height: 100%;
padding: 25px;
}
.GiftCardDetails {
align-self: end;
display: flex;
padding-top: 25px;
width: 100%;
}
.GiftCardDetails .Detail {
background: #f0f0f0;
border-radius: 2px;
flex: 1;
padding: 10px;
}
.GiftCardDetails .Detail + .Detail {
margin-left: 25px;
}
.GiftCardDetails .Detail .Label {
color: #777777;
font-size: 80%;
margin-bottom: 3px;
}
.ShopInfo {
align-items: center;
display: flex;
flex: 1;
flex-direction: column;
justify-content: center;
}
.ShopLogo {
margin: 15px 0;
}
.ShopLogo img {
max-height: 150px;
max-width: 250px;
}
h1 {
font-size: 13pt;
margin: 0 0 3px;
}
h3 {
color: #444444;
font-size: 15pt;
margin: 0;
}
.Monospace {
font-family: 'Nanum Gothic Coding', monospace;
}
</style>
</head>
<body>
<div class="GiftCardBody">
<div class="ShopInfo">
{LogoUrl(
before: '<div class="ShopLogo"><img src="',
after: '" /></div>'
)}
<h1>{%GiftCard}</h1>
<h3>{ShopName}</h3>
</div>
<div class="GiftCardDetails">
<div class="Detail">
<div class="Label">{%GiftCardCode}</div>
<div class="Value Monospace">{GiftCardCode}</div>
</div>
{GiftCardExpiryDate(
before: '
<div class="Detail">
<div class="Label">{%GiftCardExpires}</div>
<div class="Value">',
after: '</div>
</div>'
)}
</div>
</div>
<div class="GiftCardBalance">
{GiftCardBalance}
</div>
</body>
</html>