forked from miroapp/app-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.html
93 lines (90 loc) · 2.19 KB
/
app.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="https://unpkg.com/mirotone/dist/styles.css" />
<link rel="stylesheet" href="/src/assets/style.css" />
<style>
.slider {
-webkit-appearance: none;
width: 100%;
height: 25px;
background: #eee;
outline: none;
border-radius: 2px;
-webkit-transition: 0.2s;
transition: opacity 0.2s;
}
.slider:hover {
opacity: 1;
}
.slider::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 25px;
height: 25px;
background: #3a57ff;
cursor: pointer;
border-radius: 2px;
}
.slider::-moz-range-thumb {
width: 25px;
height: 25px;
background: #3a57ff;
cursor: pointer;
}
</style>
<script src="https://miro.com/app/static/sdk/v2/miro.js"></script>
</head>
<body>
<div class="grid">
<div class="cs1 ce12">
<div>
<img class="miro-draggable" id="svg-blob" src="/blob" />
</div>
</div>
<div class="cs2 ce3">
<p>Complexity</p>
</div>
<div class="cs6 ce11">
<input
type="range"
min="3"
max="100"
value="3"
class="slider"
id="complexity"
/>
</div>
<div class="cs2 ce3">
<p>Opacity</p>
</div>
<div class="cs6 ce11">
<input
type="range"
min="3"
max="100"
value="100"
class="slider"
id="opacity"
/>
</div>
<div class="cs2 ce3">
<label for="colour-picker">Colour</label>
</div>
<div class="cs6 ce11">
<input
type="color"
id="colorPicker"
name="colour-picker"
value="#3A57FF"
/>
</div>
<div class="cs1 ce12 button-container">
<a class="button button-primary" id="regenerate">Regenerate</a>
</div>
</div>
<script type="module" src="src/app.js"></script>
</body>
</html>