This repository has been archived by the owner on Apr 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
103 lines (96 loc) · 2.39 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>SatsByte</title>
<style>
body {
font-family: Arial, Helvetica, sans-serif;
margin: 0;
padding: 0;
}
.header {
background-color: #9ea7fb;
color: white;
padding: 20px;
text-align: center;
}
.content {
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
height: 100%;
}
.container {
background-color: white;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
padding: 20px;
text-align: center;
}
.button {
background-color: #9ea7fb;
border: none;
color: white;
cursor: pointer;
padding: 10px;
margin: 10px;
border-radius: 5px;
font-size: 16px;
}
.active {
background-color: # #9ea7fb;
color: white;
}
.input {
border: none;
border-radius: 5px;
padding: 10px;
margin: 10px;
font-size: 16px;
width: 200px;
}
</style>
</head>
<body>
<div class="header">
<h1>Satsbyte</h1>
</div>
<div class="content">
<div class="container">
<h2>Swap between Lightning Network and Fedimint</h2>
<div>
<button id="lightning-btn" class="button active" onclick="showLightning()">Lightning Network</button>
<button id="fedimint-btn" class="button" onclick="showFedimint()">Fedimint</button>
</div>
<div id="lightning" class="active">
<p>Enter the amount to send:</p>
<input type="text" class="input">
<p>Enter the recipient's Lightning Network address:</p>
<input type="text" class="input">
<br>
<button class="button">Send</button>
</div>
<div id="fedimint">
<p>Enter the amount to send:</p>
<input type="text" class="input">
<p>Enter the recipient's Fedimint address:</p>
<input type="text" class="input">
<br>
<button class="button">Send</button>
</div>
</div>
</div>
<script>
function showLightning() {
document.getElementById("lightning-btn").classList.add("active");
document.getElementById("fedimint-btn").classList.remove("active");
document.getElementById("lightning").classList.add("active");
document.getElementById("fedimint").classList.remove("active");
}
function showFedimint() {
document.getElementById("lightning-btn").classList.remove("active");
document.getElementById("fedimint-btn").classList.add("active");
document.getElementById(