-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
141 lines (131 loc) · 4.27 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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>wit2wadm</title>
<link
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/css/all.min.css"
rel="stylesheet"
/>
<link
href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.25.0/themes/prism.min.css"
rel="stylesheet"
/>
<style>
body {
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
background-color: #e9eff1;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
color: #333;
}
button {
background-color: #009688;
border: none;
color: white;
padding: 8px 16px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
border-radius: 5px;
}
#drop-area {
border: 2px dashed #00bc8e;
border-radius: 10px;
width: 100%;
height: auto;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
margin: 0 auto;
background-color: #fff;
padding: 20px;
box-sizing: border-box;
transition: border-color 0.3s ease;
}
#drop-area.highlight {
border-color: #00bc8e;
}
#file-info {
margin-top: 20px;
text-align: center;
padding-left: 250px;
color: #d9e1e2;
font-size: 14px;
}
p {
margin: 0;
}
.input-group {
margin-top: 10px;
display: flex;
flex-direction: column;
align-items: center;
padding-right: 10px;
}
.input-group input {
width: calc(100% - 20px);
margin-bottom: 10px;
padding: 10px;
border: 1px solid #00bc8e;
border-radius: 5px;
box-sizing: border-box;
}
.input-group #drop-area {
width: 100%;
height: auto;
padding: 10px;
background-color: transparent;
cursor: pointer;
}
#wasmcloud-logo {
position: absolute;
padding-left: 10px;
padding-bottom: 10px;
bottom: 0;
left: 0;
width: 25%;
}
</style>
<script type="importmap">
{
"imports": {
"@bytecodealliance/preview2-shim/cli": "./transpile/node_modules/@bytecodealliance/preview2-shim/lib/browser/cli.js",
"@bytecodealliance/preview2-shim/clocks": "./transpile/node_modules/@bytecodealliance/preview2-shim/lib/browser/clocks.js",
"@bytecodealliance/preview2-shim/filesystem": "./transpile/node_modules/@bytecodealliance/preview2-shim/lib/browser/filesystem.js",
"@bytecodealliance/preview2-shim/http": "./transpile/node_modules/@bytecodealliance/preview2-shim/lib/browser/http.js",
"@bytecodealliance/preview2-shim/io": "./transpile/node_modules/@bytecodealliance/preview2-shim/lib/browser/io.js",
"@bytecodealliance/preview2-shim/random": "./transpile/node_modules/@bytecodealliance/preview2-shim/lib/browser/random.js",
"@bytecodealliance/preview2-shim/sockets": "./transpile/node_modules/@bytecodealliance/preview2-shim/lib/browser/sockets.js"
}
}
</script>
<script type="module" src="index.js"></script>
</head>
<body>
<div class="input-group">
<h1>wit2wadm</h1>
<input type="text" id="name" placeholder="Name" />
<input type="text" id="description" placeholder="Description" />
<input type="text" id="version" placeholder="Version" />
<input type="text" id="image" placeholder="Image" />
<div id="drop-area">
<p>Drag & drop a file here or click to select a file</p>
<input type="file" style="display: none" accept=".wasm" />
</div>
</div>
<div id="file-info"></div>
<img id="wasmcloud-logo" alt="wasmCloud logo" src="./wasmcloud.png" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.25.0/prism.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.25.0/components/prism-yaml.min.js"></script>
</body>
</html>