Skip to content

Commit 9cd8327

Browse files
authored
Merge pull request #11 from BTI-US/master
Ad new UI interface for airdrop function
2 parents 507eea2 + 9df348c commit 9cd8327

19 files changed

Lines changed: 407 additions & 125 deletions

.github/workflows/codeql.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ jobs:
6363
CONTRACT_ADDRESS: ${{ secrets.CONTRACT_ADDRESS }}
6464
WEB_ADDRESS: ${{ secrets.WEB_ADDRESS }}
6565
TURNSTILE_SITE_KEY: ${{ secrets.TURNSTILE_SITE_KEY }}
66+
INFURA_API_KEY: ${{ secrets.INFURA_API_KEY }}
6667

6768
# Initializes the CodeQL tools for scanning.
6869
- name: Initialize CodeQL

.github/workflows/static.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ jobs:
4646
CONTRACT_ADDRESS: ${{ secrets.CONTRACT_ADDRESS }}
4747
WEB_ADDRESS: ${{ secrets.WEB_ADDRESS }}
4848
TURNSTILE_SITE_KEY: ${{ secrets.TURNSTILE_SITE_KEY }}
49+
INFURA_API_KEY: ${{ secrets.INFURA_API_KEY }}
4950
- name: Setup Pages
5051
uses: actions/configure-pages@v4
5152
- name: Upload artifact

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,12 @@ Click [here](https://docs.walletconnect.com/quick-start/dapps/web3-provider) to
7979

8080
Click [here](https://docs.walletconnect.com/web3modal/javascript/about) to learn more about how to use the WalletConnect API for JavaScripts.
8181

82+
## Infura API Usage
83+
84+
Click [here](https://infura.io/docs) to learn more about Infura API.
85+
86+
Click [here](https://infura.io/docs/gettingStarted/chooseaNetwork) to choose a network for Infura API.
87+
8288
## Network for Our Blockchain
8389

8490
We are using the Base Mainnet network for our blockchain.
@@ -168,6 +174,7 @@ To successfully deploy and run the project locally, you need to create a `contra
168174
"contractAddress": "Your_Contract_Address",
169175
"webAddress": "Your_Web_Address",
170176
"turnstileSiteKey": "Your_CloudFlare_Turnstile_Site_Key",
177+
"infuraApiKey": "Your_Infura_API_Key"
171178
}
172179
```
173180
- Replace `Your_Network_Choice` with the network you are using (e.g., `base` for the Base Mainnet).
@@ -200,6 +207,7 @@ Here is an example of what your `contract-config.json` might look like for the B
200207
"contractAddress": "0x123abc456def789ghi",
201208
"webAddress": "https://flxdu.cn:8011/v1/info/transaction_count",
202209
"turnstileSiteKey": "0x123abc456def789ghi",
210+
"infuraApiKey": "0x123abc456def789ghi"
203211
}
204212
```
205213

@@ -220,7 +228,8 @@ This section provides guidance on deploying your project to GitHub Pages and Clo
220228
|**`CONTRACT_ADDRESS`**|Essential|The Ethereum smart contract address the web application interacts with.|
221229
|**`PROJECT_ID`**|Essential|A unique identifier obtained from WalletConnect, used for WalletConnect API calls.|
222230
|**`TURNSTILE_SITE_KEY`**|Essential|The site key for Cloudflare's Turnstile service, used for bot protection and CAPTCHA verification.|
223-
|**`WEB_ADDRESS`**|Essential|The backend URL of the airdrop function, better to use the specified domain for the project for clearer identification. |
231+
|**`WEB_ADDRESS`**|Essential|The backend URL of the airdrop function, better to use the specified domain for the project for clearer identification.|
232+
|**INFURA_API_KEY**|Essential|The API key for Infura, used to interact with the Ethereum network.|
224233

225234
2. Used for Reverse Proxy
226235

@@ -292,3 +301,4 @@ Replaced Image Sizes:
292301
- testimonial1.png - 90x89
293302
- testimonial2.png - 90x89
294303
- testimonial3.png - 90x89
304+
- blog1.jpg - 620x420

create-config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ const config = {
77
"contractAddress": process.env.CONTRACT_ADDRESS,
88
"webAddress": process.env.WEB_ADDRESS,
99
"turnstileSiteKey": process.env.TURNSTILE_SITE_KEY,
10+
"infuraApiKey": process.env.INFURA_API_KEY
1011
};
1112

1213
fs.writeFileSync('contract-config.json', JSON.stringify(config, null, 2));

css/light-version/responsive.css

Lines changed: 41 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@
208208
#price,
209209
#review,
210210
#contact,
211-
#blog {
211+
#airdrop {
212212
padding: 60px 0;
213213
}
214214

@@ -256,6 +256,24 @@
256256
padding-top: 45px;
257257
}
258258

259+
.claim-airdrop {
260+
border-radius: 2px;
261+
}
262+
263+
.claim-airdrop h3 {
264+
padding-left: 0px;
265+
font-size: 21px;
266+
text-align: center;
267+
padding-bottom: 30px;
268+
}
269+
270+
.claim-airdrop a {
271+
background: white;
272+
padding: 14px 20px;
273+
font-size: 16px;
274+
margin-left: 10px;
275+
}
276+
259277
.sub-main {
260278
border-radius: 2px;
261279
}
@@ -289,6 +307,10 @@
289307
}
290308

291309
@media(min-width:480px) and (max-width:575px) {
310+
.claim-airdrop h3 {
311+
font-size: 25px;
312+
}
313+
292314
.sub-main h3 {
293315
font-size: 25px;
294316
}
@@ -425,7 +447,7 @@
425447
margin-top: 50px;
426448
}
427449

428-
#blog {
450+
#airdrop {
429451
padding: 60px 0;
430452
}
431453

@@ -441,6 +463,17 @@
441463
padding-top: 45px;
442464
}
443465

466+
.claim-airdrop h3 {
467+
padding-left: 0;
468+
text-align: center;
469+
padding-bottom: 30px;
470+
}
471+
472+
.claim-airdrop a {
473+
padding: 15px 20px;
474+
font-size: 16px;
475+
}
476+
444477
.sub-main h3 {
445478
padding-left: 0;
446479
text-align: center;
@@ -556,7 +589,7 @@
556589
padding-top: 60px;
557590
}
558591

559-
#blog {
592+
#airdrop {
560593
padding: 60px 0;
561594
}
562595

@@ -632,6 +665,11 @@
632665
padding-left: 13px;
633666
}
634667

668+
.claim-airdrop a {
669+
padding: 15px 19px;
670+
font-size: 15px;
671+
}
672+
635673
.sub-main a {
636674
padding: 15px 19px;
637675
font-size: 15px;

css/light-version/style.css

Lines changed: 38 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1580,7 +1580,7 @@ textarea::placeholder {
15801580
/*===========================
15811581
11.0 *** BLOG AREA START ***
15821582
=============================*/
1583-
#blog {
1583+
#airdrop {
15841584
padding: 80px 0;
15851585
}
15861586

@@ -1643,11 +1643,28 @@ textarea::placeholder {
16431643
padding-bottom: 25px;
16441644
}
16451645

1646-
.search-btn {
1647-
width: 60px;
1646+
.claim-airdrop {
1647+
margin-top: 20px;
1648+
padding: 30px 0;
16481649
background: #ff7657;
1650+
border-radius: 50px;
1651+
margin-bottom: 20px;
1652+
}
1653+
1654+
.claim-airdrop h3 {
1655+
padding-left: 60px;
1656+
font-size: 26px;
16491657
color: white;
1650-
border: 1px solid #ff7657;
1658+
font-family: pb;
1659+
}
1660+
1661+
.claim-airdrop a {
1662+
background: white;
1663+
padding: 15px 25px;
1664+
border-radius: 50px;
1665+
font-family: pb;
1666+
color: #ff7657;
1667+
font-size: 18px;
16511668
}
16521669

16531670
/*===========================
@@ -1973,4 +1990,21 @@ textarea::placeholder {
19731990
/* Optional: Style for hover state */
19741991
.address-container button:hover {
19751992
background-color: #e0e0e0; /* Slightly lighter grey for hover state */
1993+
}
1994+
1995+
.airdropNumber, .airdropNumber2 {
1996+
color: #ff7657;
1997+
font-weight: bold;
1998+
padding-left: 25px;
1999+
padding-right: 25px;
2000+
}
2001+
2002+
.airdropNumber {
2003+
color: #ff7657;
2004+
font-size: 1.5em;
2005+
}
2006+
2007+
.airdropNumber2 {
2008+
color: #151515;
2009+
font-size: 1em;
19762010
}

css/responsive.css

Lines changed: 41 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@
203203
#price,
204204
#review,
205205
#contact,
206-
#blog {
206+
#airdrop {
207207
padding: 60px 0;
208208
}
209209

@@ -251,6 +251,24 @@
251251
padding-top: 45px;
252252
}
253253

254+
.claim-airdrop {
255+
border-radius: 2px;
256+
}
257+
258+
.claim-airdrop h3 {
259+
padding-left: 0px;
260+
font-size: 21px;
261+
text-align: center;
262+
padding-bottom: 30px;
263+
}
264+
265+
.claim-airdrop a {
266+
background: white;
267+
padding: 14px 20px;
268+
font-size: 16px;
269+
margin-left: 10px;
270+
}
271+
254272
.sub-main {
255273
border-radius: 2px;
256274
}
@@ -284,6 +302,10 @@
284302
}
285303

286304
@media(min-width:480px) and (max-width:575px) {
305+
.claim-airdrop h3 {
306+
font-size: 25px;
307+
}
308+
287309
.sub-main h3 {
288310
font-size: 25px;
289311
}
@@ -420,7 +442,7 @@
420442
margin-top: 50px;
421443
}
422444

423-
#blog {
445+
#airdrop {
424446
padding: 60px 0;
425447
}
426448

@@ -436,6 +458,17 @@
436458
padding-top: 45px;
437459
}
438460

461+
.claim-airdrop h3 {
462+
padding-left: 0;
463+
text-align: center;
464+
padding-bottom: 30px;
465+
}
466+
467+
.claim-airdrop a {
468+
padding: 15px 20px;
469+
font-size: 16px;
470+
}
471+
439472
.sub-main h3 {
440473
padding-left: 0;
441474
text-align: center;
@@ -551,7 +584,7 @@
551584
padding-top: 60px;
552585
}
553586

554-
#blog {
587+
#airdrop {
555588
padding: 60px 0;
556589
}
557590

@@ -627,6 +660,11 @@
627660
padding-left: 13px;
628661
}
629662

663+
.claim-airdrop a {
664+
padding: 15px 19px;
665+
font-size: 15px;
666+
}
667+
630668
.sub-main a {
631669
padding: 15px 19px;
632670
font-size: 15px;

css/style.css

Lines changed: 37 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1554,7 +1554,6 @@ textarea:-ms-input-placeholder {
15541554
-webkit-transition: all linear .3s;
15551555
-o-transition: all linear .3s;
15561556
transition: all linear .3s;
1557-
15581557
}
15591558

15601559
.con-btn:hover {
@@ -1599,7 +1598,7 @@ textarea::placeholder {
15991598
/*===========================
16001599
11.0 *** BLOG AREA START ***
16011600
=============================*/
1602-
#blog {
1601+
#airdrop {
16031602
padding: 80px 0;
16041603
}
16051604

@@ -1662,11 +1661,28 @@ textarea::placeholder {
16621661
padding-bottom: 25px;
16631662
}
16641663

1665-
.search-btn {
1666-
width: 60px;
1664+
.claim-airdrop {
1665+
margin-top: 20px;
1666+
padding: 30px 0;
16671667
background: #ff7657;
1668+
border-radius: 50px;
1669+
margin-bottom: 20px;
1670+
}
1671+
1672+
.claim-airdrop h3 {
1673+
padding-left: 60px;
1674+
font-size: 26px;
16681675
color: white;
1669-
border: 1px solid #ff7657;
1676+
font-family: pb;
1677+
}
1678+
1679+
.claim-airdrop a {
1680+
background: white;
1681+
padding: 15px 25px;
1682+
border-radius: 50px;
1683+
font-family: pb;
1684+
color: #ff7657;
1685+
font-size: 18px;
16701686
}
16711687

16721688
/*===========================
@@ -1992,4 +2008,20 @@ textarea::placeholder {
19922008
/* Optional: Style for hover state */
19932009
.address-container button:hover {
19942010
background-color: #444444; /* Slightly lighter grey for hover state */
2011+
}
2012+
2013+
.airdropNumber, .airdropNumber2 {
2014+
font-weight: bold;
2015+
padding-left: 25px;
2016+
padding-right: 25px;
2017+
}
2018+
2019+
.airdropNumber {
2020+
color: #ff7657;
2021+
font-size: 1.5em;
2022+
}
2023+
2024+
.airdropNumber2 {
2025+
color: #e0e0e0;
2026+
font-size: 1em;
19952027
}

images/blog1.jpg

-1.42 KB
Binary file not shown.

images/blog3.jpg

-1.42 KB
Binary file not shown.

0 commit comments

Comments
 (0)