-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
120 lines (111 loc) · 3.64 KB
/
Copy pathindex.html
File metadata and controls
120 lines (111 loc) · 3.64 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
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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Foundry Bank DApp</title>
<link
href="https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;600&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="style.css" />
<!-- Ethers.js v6 CDN -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/ethers/6.11.1/ethers.umd.min.js"></script>
</head>
<body>
<div class="container">
<!-- Hero Section -->
<header class="hero">
<h1>Foundry Bank: A Full-Cycle Deployment Journey.</h1>
</header>
<!-- The Triad Section -->
<section class="triad-section">
<div class="card">
<h2>Anvil</h2>
<span class="label">Local Development</span>
<p>Tested and verified in a sub-second local environment.</p>
</div>
<div class="card">
<h2>Ganache</h2>
<span class="label">Local Visualizer</span>
<p>Blockchain state visualized for debugging.</p>
</div>
<div class="card active-card">
<h2>Sepolia</h2>
<span class="label">Live Testnet</span>
<p>Deployed to the world. Interaction enabled.</p>
</div>
</section>
<!-- The Instruction Note -->
<div class="alert-box">
<p>
<strong>NOTE:</strong> To run this DApp with Anvil or Ganache, please
refer to the README.md in the repository for RPC configuration
<a
href="https://github.com/Men6d656e/01_Bank_Deposit_withdraw_by_myself"
target="_blank"
>here</a
>. Below is the live interaction portal for Sepolia.
</p>
</div>
<!-- The Sepolia Interaction Portal -->
<section class="portal-section">
<h2>Sepolia Interaction Portal</h2>
<div class="wallet-controls">
<button id="connectWalletBtn" class="btn primary-btn">
Connect Wallet
</button>
<div id="walletInfo" class="wallet-info hidden">
<p>
Connected: <span id="userAddress" class="highlight">0x...</span>
</p>
<p>
Balance: <span id="userBalance" class="highlight">0.0</span> ETH
</p>
</div>
</div>
<div class="contract-info">
<p>
Contract Address:
<span class="highlight"
>0x373f77cFcd8167dA0A143EC1eb7B4DB204e04444</span
>
</p>
</div>
<div class="bank-stats">
<h3>My Bank Deposits</h3>
<p class="stat-value"><span id="bankDeposits">0.0</span> ETH</p>
</div>
<div class="transaction-controls">
<div class="action-group">
<input
type="number"
id="depositAmount"
placeholder="Value in ETH"
min="0"
step="0.001"
/>
<button id="depositBtn" class="btn action-btn">
Deposit Funds
</button>
</div>
<div class="action-group">
<input
type="number"
id="withdrawAmount"
placeholder="Value in ETH"
min="0"
step="0.001"
/>
<button id="withdrawBtn" class="btn action-btn">
Withdraw Funds
</button>
</div>
</div>
</section>
</div>
<!-- Toast Notifications Container -->
<div id="toastContainer" class="toast-container"></div>
<script src="script.js"></script>
</body>
</html>