-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
123 lines (115 loc) · 4.64 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My Portfolio</title>
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap" rel="stylesheet">
<style>
body {
margin: 0;
font-family: 'Roboto', sans-serif;
background-color: #0b1a33;
color: #ffffff;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
flex-direction: column;
text-align: center;
}
h1 {
margin-bottom: 20px;
}
p {
max-width: 600px;
margin: 10px auto;
line-height: 1.6;
}
.social-links {
margin-top: 20px;
}
.social-links a {
color: #ffffff;
margin: 0 10px;
text-decoration: none;
}
.social-links a:hover {
opacity: 0.7;
}
.icon {
width: 24px;
height: 24px;
vertical-align: middle;
}
#wallet-connect-button {
margin-top: 30px;
padding: 10px 20px;
background-color: #1e90ff;
border: none;
color: #ffffff;
cursor: pointer;
font-size: 16px;
border-radius: 5px;
}
#wallet-connect-button:hover {
background-color: #3aa0ff;
}
</style>
</head>
<body>
<h1>Experienced Blockchain Specialist</h1>
<p>I am an experienced specialist in contributions to crypto projects with a deep understanding of blockchain technology, DeFi, and the broader cryptocurrency ecosystem.</p>
<p>I have a proven track record of managing and contributing to various blockchain initiatives, working closely with development teams, fostering community engagement, and optimizing tokenomics strategies.</p>
<p>My skills include project management, smart contract development, and making open-source contributions.</p>
<p>I am passionate about decentralized technologies and committed to advancing the growth and adoption of innovative crypto solutions, aiming to build sustainable and impactful blockchain projects.</p>
<div class="social-links">
<a href="https://x.com/0xsantamasa" target="_blank">
<img src="https://img.icons8.com/ios-filled/50/ffffff/twitter.png" class="icon" alt="Twitter">
</a>
<a href="https://github.com/santamasa" target="_blank">
<img src="https://img.icons8.com/ios-filled/50/ffffff/github.png" class="icon" alt="GitHub">
</a>
</div>
<button id="wallet-connect-button">Connect Wallet</button>
<!-- Web3Modal and WalletConnect libraries -->
<script src="https://cdn.jsdelivr.net/npm/web3@1.7.0/dist/web3.min.js"></script>
<script src="https://unpkg.com/@walletconnect/web3-provider@1.7.9/dist/umd/index.min.js"></script>
<script src="https://unpkg.com/web3modal"></script>
<script>
async function connectWallet() {
// Создание провайдера WalletConnect
const providerOptions = {
walletconnect: {
package: window.WalletConnectProvider.default,
options: {
infuraId: "YOUR_INFURA_ID" // Замените на ваш Infura ID или другой RPC URL
}
}
};
// Инициализация Web3Modal
const web3Modal = new Web3Modal.default({
cacheProvider: false,
providerOptions,
theme: "dark"
});
try {
// Открытие модального окна для подключения кошелька
const provider = await web3Modal.connect();
const web3 = new Web3(provider);
// Получение списка аккаунтов
const accounts = await web3.eth.getAccounts();
alert("Connected: " + accounts[0]);
// Подписываем событие отключения
provider.on("disconnect", () => {
alert("Wallet disconnected");
});
} catch (error) {
console.error("Could not connect to wallet:", error);
}
}
// Добавление события на кнопку
document.getElementById("wallet-connect-button").addEventListener("click", connectWallet);
</script>
</body>
</html>