main
html 149 lines 3.72 KB
Raw
1 <!DOCTYPE html>
2 <html lang="en">
3
4 <head>
5 <meta charset="UTF-8">
6 <meta name="viewport" content="width=device-width, initial-scale=1.0">
7 <title>{{.PageTitle}}</title>
8 <meta name="description" content="{{.PageDescription}}">
9 <meta property="og:type" content="website">
10 <meta property="og:title" content="{{.PageTitle}}">
11 <meta property="og:description" content="{{.PageDescription}}">
12 <meta property="og:image" content="{{.OGImage}}">
13 <meta property="og:url" content="{{.URL}}">
14 <meta name="twitter:card" content="summary_large_image">
15 <meta name="twitter:title" content="{{.PageTitle}}">
16 <meta name="twitter:description" content="{{.PageDescription}}">
17 <meta name="twitter:image" content="{{.OGImage}}">
18 <style>
19 * {
20 box-sizing: border-box;
21 }
22
23 body {
24 margin: 0;
25 min-height: 100vh;
26 display: flex;
27 padding: 0;
28 background: #f7f8fb;
29 color: #182033;
30 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
31 }
32
33 main {
34 display: grid;
35 width: 100%;
36 min-height: 100vh;
37 grid-template-rows: minmax(0, 1fr) auto;
38 overflow: hidden;
39 background: #ffffff;
40 }
41
42 img {
43 width: 100%;
44 height: 100%;
45 min-height: 0;
46 display: block;
47 object-fit: contain;
48 background: #111827;
49 }
50
51 section {
52 display: grid;
53 gap: 10px;
54 padding: 18px;
55 border-top: 1px solid #e5eaf0;
56 }
57
58 .eyebrow {
59 margin: 0;
60 color: #0e7490;
61 font-size: 12px;
62 font-weight: 800;
63 text-transform: uppercase;
64 letter-spacing: 0;
65 }
66
67 h1 {
68 margin: 0;
69 color: #111827;
70 font-size: 25px;
71 line-height: 1.18;
72 }
73
74 p {
75 margin: 0;
76 color: #4b5565;
77 font-size: 15px;
78 line-height: 1.55;
79 }
80
81 dl {
82 display: grid;
83 grid-template-columns: repeat(3, 1fr);
84 gap: 10px;
85 margin: 4px 0 0;
86 }
87
88 div {
89 min-width: 0;
90 }
91
92 dt {
93 color: #667085;
94 font-size: 12px;
95 font-weight: 700;
96 }
97
98 dd {
99 margin: 4px 0 0;
100 overflow-wrap: anywhere;
101 color: #111827;
102 font-size: 13px;
103 font-weight: 750;
104 }
105
106 @media (max-width: 640px) {
107 section {
108 padding: 14px;
109 }
110
111 dl {
112 grid-template-columns: 1fr;
113 }
114 }
115 </style>
116 </head>
117
118 <body>
119 <main>
120 <img src="{{.PhotoURL}}" alt="Unlocked protected image">
121 <section>
122 <p class="eyebrow">Payment complete</p>
123 <h1>Image unlocked</h1>
124 <p>The protected image is available after the {{.Amount}} x402 settlement.</p>
125 <dl>
126 <div>
127 <dt>Amount</dt>
128 <dd>{{.Amount}}</dd>
129 </div>
130 <div>
131 <dt>Network</dt>
132 <dd>{{.NetworkName}}</dd>
133 </div>
134 <div>
135 <dt>Recipient</dt>
136 <dd>{{.RecipientAddress}}</dd>
137 </div>
138 {{if .TransactionID}}
139 <div>
140 <dt>Transaction</dt>
141 <dd>{{.TransactionID}}</dd>
142 </div>
143 {{end}}
144 </dl>
145 </section>
146 </main>
147 </body>
148
149 </html>