-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
121 lines (109 loc) · 2.99 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Medichain DApp</title>
<script src="https://cdn.jsdelivr.net/npm/web3@latest/dist/web3.min.js"></script>
<script src="app.js"></script>
<style>
/* CSS styles here */
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f9f9f9;
color: #333;
position: relative;
}
.container {
max-width: 800px;
margin: 0 auto;
padding: 20px;
}
h1 {
text-align: center;
margin-bottom: 20px;
}
form {
margin-bottom: 20px;
}
input[type="text"] {
width: calc(50% - 5px);
padding: 8px;
margin-right: 5px;
margin-bottom: 10px;
border: 1px solid #ccc;
border-radius: 4px;
}
button {
padding: 10px 20px;
background-color: #4CAF50;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
}
button:hover {
background-color: #45a049;
}
ul {
list-style-type: none;
padding: 0;
}
li {
margin-bottom: 10px;
padding: 10px;
background-color: #fff;
border-radius: 4px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
footer {
background-color: #333;
color: #fff;
padding: 20px;
text-align: center;
position: fixed;
left: 0;
bottom: 0;
width: 100%;
}
footer a {
color: #fff;
text-decoration: none;
margin: 0 10px;
}
/* Styling for the Connect Wallet button */
.connect-wallet-btn {
position: absolute;
top: 20px;
right: 20px;
background-color: #007bff;
}
</style>
</head>
<body>
<button id="connectWalletBtn" class="connect-wallet-btn" onclick="connectWallet()">Connect Wallet</button>
<div class="container">
<h1>Medichain DApp</h1>
<form>
<h2>Add Record</h2>
<input type="text" id="diagnosis" placeholder="Diagnosis">
<input type="text" id="treatment" placeholder="Treatment">
<button onclick="addRecord()">Add Record</button>
</form>
<div>
<h2>Records</h2>
<button onclick="getRecords()">Get Records</button>
<ul id="recordsList"></ul>
</div>
</div>
<!-- Footer with social media links -->
<footer>
<a href="#">Facebook</a>
<a href="#">Twitter</a>
<a href="#">Instagram</a>
<a href="#">LinkedIn</a>
</footer>
</body>
</html>