forked from BoltzExchange/boltz-web-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.template.html
More file actions
182 lines (173 loc) · 8.44 KB
/
Copy pathindex.template.html
File metadata and controls
182 lines (173 loc) · 8.44 KB
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
<!doctype html>
<html lang="en" boltz-theme="default" style="height: 100%">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<link
rel="shortcut icon"
type="image/ico"
href="${assetsPath}/favicon.ico" />
<link
rel="apple-touch-icon"
sizes="180x180"
href="${assetsPath}/apple-touch-icon.png" />
<link
rel="icon"
type="image/png"
href="${assetsPath}/favicon-32x32.png"
sizes="32x32" />
<link
rel="icon"
type="image/png"
href="${assetsPath}/favicon-16x16.png"
sizes="16x16" />
<link rel="manifest" href="${assetsPath}/manifest.json" />
<!-- Open Graph -->
<meta property="og:title" content="${boltzTitle}" />
<meta property="og:description" content="${boltzDescription}" />
<meta property="og:url" content="${boltzUrl}" />
<meta property="og:type" content="website" />
<meta property="og:site_name" content="${boltzTitle}" />
<meta property="og:image" content="${boltzUrl}/boltz-preview.jpg" />
<meta property="og:image:type" content="image/jpeg" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<!-- Twitter -->
<meta name="twitter:title" content="${boltzTitle}" />
<meta name="twitter:description" content="${boltzDescription}" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:image" content="${boltzUrl}/boltz-preview.jpg" />
<meta name="twitter:site" content="@boltzhq" />
<meta name="description" content="${boltzDescription}" />
<meta name="mobile-web-app-capable" content="yes" />
<title>${boltzTitle}</title>
<style>
:root {
--backgroundColor: $backgroundColor;
}
@keyframes boltzing {
0% {
transform: translate(-50%, -50%) scale(1);
}
50% {
transform: translate(-50%, -50%) scale(1.1);
}
100% {
transform: translate(-50%, -50%) scale(1);
}
}
body > svg {
display: none;
}
.loading {
background: var(--backgroundColor);
}
.loading > svg {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
display: block;
animation: boltzing 3s infinite;
}
</style>
</head>
<body class="loading">
<noscript>You need to enable JavaScript to run this app.</noscript>
<svg
width="46.626mm"
height="12.965mm"
version="1.1"
viewBox="0 0 46.626 12.965"
xml:space="preserve"
xmlns="http://www.w3.org/2000/svg">
<defs>
<linearGradient
id="paint0_linear"
x2="0"
y2="49"
gradientUnits="userSpaceOnUse">
<stop stop-color="${boltzColor100}" offset="0" />
<stop stop-color="${boltzColor200}" offset="1" />
</linearGradient>
<linearGradient
id="paint0_linear-3"
x1="-3"
x2="-3"
y1="-11"
y2="56"
gradientUnits="userSpaceOnUse">
<stop stop-color="${boltzColor100}" offset="0" />
<stop stop-color="${boltzColor200}" offset="1" />
</linearGradient>
</defs>
<g transform="translate(-69.488 -50.153)">
<g
transform="matrix(.26458 0 0 .26458 69.488 50.153)"
style="fill: none">
<path
d="m14.462 28.768-0.0035 0.0072h-12.787c-0.4776 0-0.8756-0.1467-1.194-0.4401s-0.4776-0.6619-0.4776-1.1055c0-0.4723 0.20262-0.9589 0.60786-1.4598l20.342-24.837c0.3763-0.48659 0.7924-0.77997 1.2482-0.88015 0.4559-0.10018 0.8648-0.057246 1.2266 0.1288 0.3618 0.18605 0.6151 0.49016 0.7598 0.91235 0.1448 0.42218 0.1086 0.92666-0.1085 1.5134l-6.643 17.625h1.1057l0.0035-0.0072h12.787c0.4776 0 0.8756 0.1467 1.194 0.4401s0.4776 0.6619 0.4776 1.1055c0 0.4723-0.2026 0.9589-0.6079 1.4598l-20.342 24.837c-0.3763 0.4865-0.7924 0.7799-1.2482 0.8801-0.4559 0.1002-0.86479 0.0573-1.2266-0.1288-0.36182-0.186-0.61509-0.4902-0.75982-0.9123-0.14473-0.4222-0.10855-0.9267 0.10854-1.5135l6.643-17.624z"
clip-rule="evenodd"
fill="url(#paint0_linear)"
fill-rule="evenodd"
style="fill: url(#paint0_linear)" />
</g>
<g
transform="matrix(.26458 0 0 .26458 81.643 50.938)"
style="fill: none">
<path
d="m0.92 42h19.488c7.672 0 12.488-4.144 12.488-11.312 0-5.152-2.072-7.952-5.264-9.464v-0.224c1.96-1.4 3.808-3.752 3.808-8.008 0-6.44-4.76-10.192-11.76-10.192h-18.76zm8.736-24.08v-7.392h8.736c2.968 0 4.144 1.568 4.144 3.696s-1.176 3.696-4.144 3.696zm0 16.296v-8.68h9.296c3.808 0 4.984 2.352 4.984 4.312 0 2.352-1.232 4.368-4.984 4.368zm40.657 8.288c9.52 0 14.616-6.384 14.616-15.12 0-8.792-5.208-15.176-14.616-15.176s-14.616 6.384-14.616 15.176 5.096 15.12 14.616 15.12zm0-7.56c-3.528 0-5.824-2.24-5.824-7.56 0-5.264 2.24-7.616 5.824-7.616s5.824 2.296 5.824 7.616-2.24 7.56-5.824 7.56zm18.831 7.056h8.624v-41.44h-8.624zm26.552 0.504c2.744 0 5.0404-0.504 5.9364-0.84v-7.168h-0.56c-0.896 0.336-1.8484 0.504-2.8004 0.504-2.576 0-3.752-1.176-3.752-3.92v-11.032h7.0004v-7.336h-7.0004v-7.672h-0.56l-7.672 1.568v6.104h-5.152v7.336h4.76v13.104c0 5.32 3.024 9.352 9.8 9.352zm10.397-0.504h24.192v-7.336h-13.552v-0.224l13.44-14.448v-7.28h-24.024v7.336h13.44v0.224l-13.496 14.504z"
fill="url(#paint0_linear)"
style="fill: url(#paint0_linear-3)" />
</g>
</g>
</svg>
<div id="root"></div>
<script>
if (!window.isSecureContext) {
console.error(
"Error: This site requires a secure context (HTTPS) to function.",
);
document.body.classList.remove("loading");
document.body.innerHTML = "";
document.body.style.cssText = `
margin: 0;
padding: 0;
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
background: var(--backgroundColor);
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
`;
const errorContainer = document.createElement("div");
errorContainer.style.cssText = `
max-width: 600px;
padding: 48px 32px;
text-align: center;
color: white;
`;
errorContainer.innerHTML = `
<div style="font-size: 64px; margin-bottom: 24px;">🔒</div>
<h1 style="font-size: 32px; font-weight: 600; margin: 0 0 16px 0; color: #dc2626;">
Secure Connection Required
</h1>
<p style="font-size: 18px; line-height: 1.6; margin: 0 0 24px 0; color: #e5e7eb;">
This site requires a secure context (HTTPS) to function.
</p>
<p style="font-size: 14px; line-height: 1.6; margin: 0; color: #9ca3af;">
Please access this site via HTTPS or localhost.
</p>
`;
document.body.appendChild(errorContainer);
throw new Error(
"Insecure context - blocking app initialization",
);
}
</script>
<script src="/src/index.tsx" type="module"></script>
<script type="application/ld+json">
${ldJson}
</script>
</body>
</html>