-
-
Notifications
You must be signed in to change notification settings - Fork 49
Expand file tree
/
Copy pathindex.html
More file actions
90 lines (84 loc) · 1.81 KB
/
Copy pathindex.html
File metadata and controls
90 lines (84 loc) · 1.81 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Random Photo</title>
<style>
* {
box-sizing: border-box;
}
body {
font-family: system-ui, sans-serif;
max-width: 600px;
margin: 2rem auto;
padding: 1rem;
}
h1 {
margin-bottom: 0.5rem;
}
p {
color: #666;
margin-top: 0;
}
button {
padding: 0.75rem 1.5rem;
font-size: 1rem;
background: #000;
color: #fff;
border: none;
border-radius: 4px;
cursor: pointer;
}
button:hover {
background: #333;
}
button:disabled {
background: #999;
cursor: not-allowed;
}
#output {
margin-top: 1rem;
}
#output:empty {
display: none;
}
#output img,
.placeholder {
width: 400px;
height: 400px;
border-radius: 8px;
display: block;
}
.placeholder {
background: #f0f0f0;
border-radius: 8px;
animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
0%,
100% {
opacity: 1;
}
50% {
opacity: 0.5;
}
}
.error {
color: red;
font-family: monospace;
}
</style>
</head>
<body>
<h1>Random Photo</h1>
<p>Pay per photo.</p>
<p id="setup">Setting up ephemeral account...</p>
<div id="ready" style="display: none">
<p>Balance: <span id="balance"></span></p>
<button type="button" id="button">Generate Photo ($0.01)</button>
<div id="output"></div>
</div>
<script type="module" src="/src/client.ts"></script>
</body>
</html>