-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
199 lines (196 loc) · 6.1 KB
/
index.html
File metadata and controls
199 lines (196 loc) · 6.1 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
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<title>Exa App embed example</title>
<meta name="title" content="Exa App embed example" />
<meta property="og:type" content="website" />
<meta
name="description"
content="Embed the Exa Account in your app, provide a crypto-backed credit card to your users. Free, permissionless, and effortless to integrate."
/>
<meta property="og:title" content="Exa App embed example" />
<meta
property="og:description"
content="Embed the Exa Account in your app, provide a crypto-backed credit card to your users. Free, permissionless, and effortless to integrate."
/>
<meta property="og:image" content="https://exactly.app/og-image.webp" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta name="twitter:card" content="summary_large_image" />
<style>
/* #region strongly recommended for best user experience */
html {
-webkit-text-size-adjust: 100%; /* prevent iOS text auto-scaling */
color-scheme: light dark; /* let browser UI match system theme */
}
iframe {
display: block; /* predictable box; no inline gap */
border: none; /* remove default iframe border */
}
/* #endregion */
/* #region exa app style (match exa app theme) */
iframe {
background: #fbfdfc; /* exa light background */
}
@media (prefers-color-scheme: dark) {
iframe {
background: #171918; /* exa dark background */
}
}
/* #endregion */
/* #region floating wallet frame */
body {
margin: 0; /* remove default browser margins that cause tiny scrollbars */
min-height: 100dvh; /* allow normal page flow and scrolling */
}
iframe {
position: fixed; /* float over page */
right: max(16px, env(safe-area-inset-right)); /* anchor bottom-right */
bottom: max(16px, env(safe-area-inset-bottom));
width: 390px; /* wallet-like size */
height: 700px;
max-width: calc(100vw - 32px);
max-height: calc(100dvh - 32px);
border-radius: 8px; /* subtle rounding */
overflow: hidden; /* clip to rounded corners */
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); /* elevate above page */
outline: 1px solid rgba(0, 0, 0, 0.08); /* subtle border in light mode */
z-index: 19; /* ensure it stays on top */
transform: translateY(0);
visibility: visible;
pointer-events: auto;
transition:
transform 300ms ease,
visibility 0s;
}
iframe.closed {
transform: translateY(calc(100% + 16px));
visibility: hidden;
pointer-events: none;
transition:
transform 300ms ease,
visibility 0s linear 300ms;
}
/* #endregion */
/* #region host page content */
main {
font-family: system-ui, -apple-system, sans-serif;
max-width: 480px;
margin: 0 auto;
padding: 15vh 24px 24px;
color: #1a1a1a;
}
main > h1 {
font-size: 1.75rem;
font-weight: 700;
margin: 0 0 8px;
letter-spacing: -0.02em;
}
main > p {
font-size: 0.9rem;
line-height: 1.5;
color: #666;
margin: 0 0 32px;
}
main > header {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-bottom: 24px;
}
main > header > code {
font-family: ui-monospace, "SF Mono", "Cascadia Code", monospace;
font-size: 0.8rem;
padding: 6px 12px;
border-radius: 100px;
background: #f0f0f0;
color: #444;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
max-width: 220px;
}
main > header > output {
font-size: 0.8rem;
padding: 6px 12px;
border-radius: 100px;
font-weight: 500;
background: #f5f5f5;
color: #888;
}
main > header > output[data-active] {
background: #e6faf2;
color: #0d7d56;
}
main > nav {
display: flex;
flex-wrap: wrap;
gap: 10px;
}
main > nav > button {
padding: 10px 20px;
border-radius: 8px;
font-size: 0.875rem;
font-weight: 500;
cursor: pointer;
transition: opacity 150ms;
border: 1px solid rgba(0, 0, 0, 0.1);
background: #f5f5f5;
color: #333;
}
main > nav > button:disabled {
opacity: 0.5;
cursor: default;
}
main > nav > button:first-child {
background: #2ed4a2;
color: #fff;
border-color: transparent;
}
@media (prefers-color-scheme: dark) {
iframe {
outline-color: rgba(255, 255, 255, 0.08); /* subtle border in dark mode */
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
main {
color: #e5e5e5;
}
main > p {
color: #999;
}
main > header > code {
background: #2a2a2a;
color: #bbb;
}
main > header > output {
background: #2a2a2a;
color: #777;
}
main > header > output[data-active] {
background: #0d3326;
color: #2ed4a2;
}
main > nav > button {
background: #2a2a2a;
color: #ddd;
border-color: rgba(255, 255, 255, 0.1);
}
main > nav > button:first-child {
background: #2ed4a2;
color: #fff;
border-color: transparent;
}
}
/* #endregion */
</style>
<!-- consistent app-like feel and safe-area fit -->
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover, user-scalable=no" />
<!-- preconnect to app origin: faster TLS + DNS + TCP (replace with web.exactly.app in prod) -->
<link rel="preconnect" href="https://sandbox.exactly.app" crossorigin />
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>