-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path3-IPFSupload.html
82 lines (76 loc) · 2.18 KB
/
3-IPFSupload.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>IPFS Upload</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #000000;
color: #ffffff;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
.container {
background-color: #1e1e1e;
box-shadow: 0 4px 8px rgba(255, 255, 255, 0.1);
border-radius: 10px;
padding: 30px;
width: 400px;
text-align: center;
}
h1 {
font-size: 24px;
color: #ffffff;
margin-bottom: 20px;
}
label {
font-size: 16px;
color: #cccccc;
margin-bottom: 10px;
display: block;
text-align: left;
}
input[type="file"] {
display: block;
width: 100%;
margin-top: 10px;
margin-bottom: 20px;
padding: 10px;
border: 1px solid #444444;
border-radius: 5px;
font-size: 14px;
background-color: #2b2b2b;
color: #ffffff;
}
button {
background-color: #007bff;
color: #ffffff;
border: none;
padding: 12px 20px;
font-size: 16px;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s ease;
}
button:hover {
background-color: #0056b3;
}
</style>
</head>
<body>
<div class="container">
<h1>Step 1: Upload File to IPFS</h1>
<form action="/upload_to_ipfs" method="post" enctype="multipart/form-data">
<label for="file">Choose File:</label>
<input type="file" id="file" name="file" required>
<button type="submit">Upload to IPFS</button>
</form>
</div>
</body>
</html>