forked from rokka-io/vue-rokka-uploader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
89 lines (78 loc) · 2.18 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
<html>
<head>
<!--
Use this for development
-->
<!-- <script src="https://unpkg.com/vue"></script>-->
<script src="https://cdn.jsdelivr.net/npm/vue"></script>
<script src="https://unpkg.com/[email protected]/dist/index.umd.min.js"></script>
<script src="https://unpkg.com/[email protected]/dist/vue-upload-component.js"></script>
<script src="https://unpkg.com/[email protected]/dist/index.umd.min.js"></script>
<link rel="stylesheet" type="text/css" href="https://unpkg.com/vue-rokka-uploader/dist/bundle.css">
<style>
body {
font-family: Arial, sans-serif;
font-size: 12px;
background-color: #f7f7f5;
}
a:link, a:visited {
color: black;
}
.text-center {
height: 100px;
}
.rokka-uploader {
height: 50vh
}
.rokka-uploader .button, .rokka-uploader .rokka-fileupload {
padding: 5px;
background-color: transparent;
border: 1px solid;
display: inline-block;
vertical-align: middle;
font-size: 16px;
font-family: 'Avenir', Helvetica, Arial, sans-serif;
}
.rokka-uploader .drop-active h3 {
margin: -0.5em 0 0;
position: absolute;
top: 50%;
left: 0;
right: 0;
-webkit-transform: translateY(-50%);
-ms-transform: translateY(-50%);
transform: translateY(-50%);
font-size: 40px;
color: #fff;
padding: 0;
}
.rokka-uploader .removeButton {
background-color: transparent;
border: 0;
font-weight: 100;
color: black;
cursor: pointer;
}
</style>
</head>
<body>
<div id="app">
<rokka-uploader :rokka-key="rokkaKey" :rokka-org="rokkaOrg" />
</div>
<script>
const rokkaKey = 'add-your-key' //read only key
const rokkaOrg = 'add-your-org'
new Vue({
el: '#app',
components: {
RokkaUploader,
},
data: {
rokkaKey: rokkaKey,
rokkaOrg: rokkaOrg,
}
}
)
</script>
</body>
</html>