-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
61 lines (56 loc) · 1.33 KB
/
index.html
File metadata and controls
61 lines (56 loc) · 1.33 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
<!DOCTYPE html>
<html>
<head>
<title>Stacks Proof of Action</title>
<style>
body {
background: #0b0f1a;
color: white;
font-family: Arial;
padding: 20px;
max-width: 600px;
margin: auto;
}
input, button {
width: 100%;
padding: 12px;
margin-top: 10px;
border-radius: 6px;
border: none;
}
button {
background: #6affb7;
font-weight: bold;
}
.action {
background: #11162a;
padding: 10px;
margin-top: 10px;
border-radius: 6px;
}
</style>
</head>
<body>
<h2>🧾 Stacks Proof of Action</h2>
<p>Public on-chain log of what builders ship.</p>
<input placeholder="What did you ship today?" disabled />
<button onclick="connectWallet()">Connect Wallet</button>
<div class="action">Example: Deployed my first contract</div>
<script src="https://unpkg.com/@stacks/connect/dist/bundle.umd.js"></script>
<script>
const appConfig = new window.StacksConnect.AppConfig(['store_write']);
const userSession = new window.StacksConnect.UserSession({ appConfig });
function connectWallet() {
window.StacksConnect.showConnect({
appDetails: {
name: 'Stacks Proof of Action',
},
userSession,
onFinish: () => {
alert("Wallet connected!");
}
});
}
</script>
</body>
</html>