-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
218 lines (202 loc) · 6.15 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
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
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
<!doctype html>
<style>
.main-app {
text-align: center;
margin: 100px;
}
.cta-button {
padding: 15px;
border: none;
border-radius: 12px;
min-width: 250px;
color: white;
font-size: 18px;
cursor: pointer;
}
.connect-wallet-button {
background: rgb(32, 129, 226);
}
.mint-nft-button {
background: orange;
}
.data-button {
padding: 15px;
border: none;
border-radius: 12px;
min-width: 250px;
color: rgb(198, 65, 65);
font-size: 12px;
cursor: pointer;
}
.footer {
background: #061D25;
padding: 10px 0;
}
.footer a {
color: #70726F;
font-size: 20px;
padding: 10px;
border-right: 1px solid #70726F;
transition: all .5s ease;
}
.footer a:first-child {
border-left: 1px solid #70726F;
}
.footer a:hover {
color: white;
}
.center {
display: block;
margin-left: auto;
margin-right: auto;
width: 50%;
}
nav {
font-family: 'VT323', sans-serif !important;
}
.navbar-inner {
background:#bd35d1e3;
opacity: 0.6;
}
body {
font-family: 'VT323', sans-serif !important;
}
.navbar-bg {
background-image: url("../images/pg-navbar.png");
background-size: cover;
height: 100%;
}
.container-bg {
background-image: url("../images/bg3.png");
background-size: cover;
height: 100%;
}
.btn-block {
width: 100px !important;
height: 20px !important;
}
.one-background-images{
background-image: url("../images/index/1.png");
background-size: cover;
height: 100%;
}
</style>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href='https://fonts.googleapis.com/css?family=VT323:400,300,700' rel='stylesheet' type='text/css'>
<title>Peas for Climate</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-Zenh87qX5JnK2Jl0vWa8Ck2rdkQ2Bzep5IDxbcnCeuOxjzrPF/et3URy9Bv1WTRi" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css" integrity="sha384-xeJqLiuOvjUBq3iGOjvSQSIlwrpqjSHXpduPd6rQpuiM3f5/ijby8pCsnbu5S81n" crossorigin="anonymous">
<script src="https://unpkg.com/web3@latest/dist/web3.min.js"></script>
<!-- JavaScript Bundle with Popper -->
<script type="module" src="../Scripts/index.js"></script>
</head>
<body>
<!-- Just an image -->
<nav class="navbar navbar-dark bg-dark">
<a class="navbar-brand mb-0 h1" href="#">
<!-- <img style="max-width:100px" src="../images/pg-logo.png"> -->
Peagotchi<br>
Climate NFT
</a>
</a>
<a class="navbar-brand mb-0 h1" href="#">
Home
</a>
<a class="navbar-brand mb-0 h1" href="#">
Peagotchiverse
</a>
<a class="navbar-brand mb-0 h1" href="#">
Market place
</a>
<a class="navbar-link" href="https://testnets.opensea.io/assets/mumbai/0x7618f41e0b4be75d0ca163987053a6ae9d92c7da/0">
Open Sea
</a>
<button id="connect-metamask" type="button" class="btn" style="background-color: #f4d03f;">Connect Metamask</button>
</li>
</ul>
</div>
<script type="module">
// Connect to Metamask
document.getElementById('connect-metamask').addEventListener('click', event => {
let account;
let button = event.target;
ethereum.request({method: 'eth_requestAccounts'}).then(accounts => {
account = accounts[0];
console.log(account);
button.textContent = account;
ethereum.request({method: 'eth_getBalance' , params: [account, 'latest']}).then(result => {
console.log(result);
let wei = parseInt(result,16);
let balance = wei / (10**18);
console.log(balance + " ETH");
});
});
});
</script>
</nav>
<div class="container-fluid container-bg ">
<!-- background image -->
<h1 class="text-white"><b>WELCOME TO PEAGOTCHI COLLECTABLES</b></h1>
<p class="text-white">Contract Address : 0x7618f41e0b4be75d0ca163987053a6ae9d92c7da</p>
<br>
<br>
<div class="row">
<div class="col-3"></div>
<div class="col-4">
<div class="card-transparent" style="width:400px; height:auto; padding: 0;">
<img class="card-img" src="../images/character.gif" alt="..." style="height: 50%;">
<div class="overlay-yellow text-white d-flex justify-content-center align-items-end">
</div>
</div>
<br>
<div>
<button id="mint-seed" type="button" class="btn btn-primary" style="width:400px; background-color: #f4d03f;">Mint on Polygon</button>
</div>
</div>
<div class="col-4">
<div class="card-transparent" style="width:500px" text-align="center">
<div class="row">
<div class="col-4"></div>
<div class="col-4">
<p class="text-white">Name</p>
<p class="text-white">Soil Temp</p>
<p class="text-white">Soil Moisture</p>
<p class="text-white">latitude</p>
<p class="text-white">longitude</p>
</div>
<div class="col-4">
<p class="text-white">Green Pea field</p>
<p class="text-white">17.5</p>
<p class="text-white">14</p>
<p class="text-white">75.86198</p>
<p class="text-white">22.649023</p>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<img src='../images/index/1.png'>
</div>
<div class="card" style="background-color:#565757"></div>
<div class="row">
<img src='../images/index/3.png'>
</div>
<div class="card" style="background-color:#565757"></div>
<div class="row">
<img src='../images/index/4.png'>
</div>
</body>
<footer class="footer">
<div class="container text-center">
<a href="#"><i class="bi bi-twitter"></i></a>
<a href="#"><i class="bi bi-discord"></i></a>
<a href="#"><i class="bi bi-telegram"></i></a>
<a href="#"><i class="bi bi-reddit"></i></a>
</div>
</footer>
</html>