-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathborrow.html
204 lines (179 loc) · 8.52 KB
/
borrow.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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Get a loan - MicroEther</title>
<link rel="icon" type="image/png" href="images/icon.jpg">
<link rel="shortcut icon" href="images/icon.jpg" />
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-9ndCyUaIbzAi2FUVXJi0CjmCapSmO7SnpJef0486qhLnuZ2cdeRhO02iuK6FUUVM" crossorigin="anonymous">
<link rel="stylesheet" href="styles.css">
<style>
@media (min-width: 768px) {
.navbar-nav > li > a {
/* (80px - line-height of 27px) / 2 = 26.5px */
padding-top: 26.5px;
padding-bottom: 26.5px;
line-height: 27px;
}
</style>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<div class="container">
<img class="rounded-circle me-1" width="26" height="26" src="images/icon.jpg" alt="MicroEther">
<a style="font-size:30px" class="navbar-brand" href="index.html">MicroEther</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
<li class="nav-item">
<a style="font-size:20px" class="nav-link active" href="../borrow.html">Borrow</a>
</li>
<li class="nav-item dropdown">
<a style="font-size:20px" class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
Earn
</a>
<ul class="dropdown-menu" aria-labelledby="navbarDropdown">
<li><a style="font-size:20px" class="dropdown-item" href="earn/liquidity.html">Provide liquidity <span class="badge bg-success-subtle text-success-emphasis rounded-pill">20% APY</span></a></li>
<li><a style="font-size:20px" class="dropdown-item" href="earn/pledge.html">Approve Loans</a></li>
<!-- DEACTIVATED: <li><hr class="dropdown-divider"></li>
<li><a style="font-size:20px" class="dropdown-item" href="earn/governance.html">Pool Governance <span class="badge bg-danger-subtle text-success-emphasis rounded-pill">3% APR</span></a></li> -->
</ul>
</li>
</ul>
<button style="font-size:20px" class="btn btn-primary rounded-pill px-3" type="button"><img class="rounded-circle me-1" width="24" height="24" src="https://cdn.iconscout.com/icon/free/png-512/metamask-2728406-2261817.png" alt=""> Connect wallet</button>
</div>
</div>
</nav>
<!-- Main Content -->
<div class="container my-5 col-md-6 center">
<!-- Borrow -->
<img src="images/slider-borrow.webp" alt="Borrow on MicroEther" height="300" style="float: right;" />
<div class="h-100 p-5 bg-body-tertiary border rounded-3">
<h3>Borrow a micro loan</h3>
<p>Get a loan for microfinancing with MicroEther liquidity pool:</p>
<!-- Currency -->
<fieldset>
<label for="token">Select a token:</label>
<select name="token" id="token">
<option selected="selected">Ethereum</option>
<option>Circle USD (USDC)</option>
<option>Tether (USDT)</option>
<option>Wrapped BTC (WBTC)</option>
<option>1Inch (1INCH)</option>
<option>Chainlink (LINK)</option>
<option>Polygon (MATIC)</option>
<option>Worldcoin (WLD)</option>
</select>
</fieldset>
<br />
<!-- Credit Type -->
<fieldset>
<label for="loanType">Underlying credit type:</label>
<select name="loanType" id="loanType">
<option selected="selected">Small business loans</option>
<option>Agricultural loans</option>
<option>Car loans</option>
<option>Mortgage</option>
<option>Short-term loans</option>
<option>Private loans</option>
<option>Refinancing</option>
</select>
</fieldset>
<br />
<!-- How much to borrow? -->
<form action="#">
<label for="amount">Coin Amount:</label>
<input type="number" id="amount" name="amount" placeholder="Enter desired amount to borrow" style="width: 300px;">
</form>
<br />
<!-- Credit Duration -->
<form action="#">
<label for="duration">Credit Duration:</label>
<input type="number" id="duration" name="duration" placeholder="Amount of months for loan repayment" style="width: 300px;">
</form>
<br />
<!-- How long to the borrower needs to repay the loan? -->
<fieldset>
<label for="repayment">Repayment method:</label>
<select name="repayment" id="repayment">
<option selected="selected">Monthly</option>
<option>Quarterly</option>
<option>Yearly</option>
</select>
</fieldset>
<br />
<!-- Collateral available? -->
<fieldset>
<label for="collateral">Collateral type:</label>
<select name="collateral" id="collateral">
<option selected="selected">Social Collateral (recommended)*</option>
<option>Non-Collateralized</option>
</select>
</fieldset>
<br />
<!-- Pledges -->
<form action="#">
<label for="pledge">Pledge Amount:</label>
<input type="number" id="pledge" name="plege" placeholder="5 to 20" style="width: 300px;">
</form>
<br />
<!-- Borrow button -->
<script>
function onButtonClick(){
document.getElementById('status').className="show";
}
</script>
<style>
.hide{
display:none;
}
.show{
display:block;
}
</style>
<!-- DEACTIVATED: <button class="btn btn-outline-secondary" type="button" onclick="onButtonClick()">Borrow</button> -->
<button class="btn btn-outline-secondary" type="button" onclick="applyForLoan(loanAmount, dueDate, repaymentMethod, loanType, numGuarantors)">Apply for Loan</button>
<!-- Check borrowing status: Did borrowing succeeded? -->
<div id="status" class="hide">
<span class="badge bg-success-subtle border border-success-subtle text-success-emphasis rounded-pill">❤ Success</span>
<!-- DEACTIVATED:
<span class="badge bg-danger-subtle border border-danger-subtle text-danger-emphasis rounded-pill">⚠ Failed</span>
<span class="badge bg-warning-subtle border border-warning-subtle text-warning-emphasis rounded-pill">⏳ Pending</span>
-->
</div>
<br /><br />
<p>* If you select Social Collateral, then you need one to twenty pledges.</p>
</div>
</div>
<!-- Info Content -->
<div class="container my-5 col-md-6 center">
<!-- How does this work? -->
<div class="h-100 p-5 bg-body-tertiary border rounded-3">
<h5>🛈 Info</h5>
<h4>Borrowing Redefined, Opportunities Amplified</h4>
<p>Welcome to MicroEther, where each loan is more than a transaction—it's a partnership. We offer tailored lending solutions, considering your unique circumstances and the trust of our community. As you repay and your credit score rises, you unlock a realm of benefits, from better loan conditions to broader platform opportunities. Dive into a borrowing experience that understands and uplifts your aspirations.</p>
</div>
</div>
</div>
<!-- Footer -->
<div class="container">
<footer class="d-flex flex-wrap justify-content-between align-items-center py-3 my-4 border-top">
<p class="col-md-4 mb-0 text-body-secondary">© 2023 MicroEther</p>
<a href="/" class="col-md-4 d-flex align-items-center justify-content-center mb-3 mb-md-0 me-md-auto link-body-emphasis text-decoration-none">
<img width="80" height="80" src="images/icon.jpg" alt="MicroEther">
</a>
<ul class="nav col-md-4 justify-content-end">
<li class="nav-item"><a href="https://ethmunich.de/" class="nav-link px-2 text-body-secondary">ETHMunich</a></li>
<li class="nav-item"><a href="https://github.com/microether" class="nav-link px-2 text-body-secondary">GitHub</a></li>
<li class="nav-item"><a href="https://github.com/orgs/microether/people" class="nav-link px-2 text-body-secondary">Team</a></li>
</ul>
</footer>
</div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-geWF76RCwLtnZ8qwWowPQNguL3RmwHVBC9FhGdlKrxdiJJigb/j/68SIy3Te4Bkz" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/gh/ethereum/[email protected]/dist/web3.min.js"></script>
<script src="main.js"></script>
</body>
</html>