-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo.html
60 lines (52 loc) · 1.64 KB
/
demo.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Minimal Feedback Widget</title>
<script src="./vibecheck-widget.js"></script>
<!-- water.css -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/water.css@2/out/water.css">
</head>
<body>
<div class="card">
<h1 class="card-title">Try out the Vibecheck Widget below!</h1>
<div class="card-content">
<vibecheck-widget section-id="Web Component Demo" project="public_testbed" user-key="3zg0t05r"
server="https://pmyvdlilci.execute-api.us-east-1.amazonaws.com/klab"></vibecheck-widget>
</div>
<p>This is an example of the Vibecheck widget running as a standalone Web Component. The code to create this
looks like this:</p>
<pre>
<code><vibecheck-widget
section-id="Web Component Demo"
project="public_testbed"
user-key="3zg0t05r"
server="https://pmyvdlilci.execute-api.us-east-1.amazonaws.com/klab"
/></code>
</pre>
</div>
<script>
customElements.define('vibecheck-widget', VibecheckWidget);
</script>
<style>
.card {
width: 500px;
margin: 0 auto;
padding: 20px;
border: 1px solid #ccc;
border-radius: 5px;
}
.card-title {
margin: 0;
padding: 0;
font-size: 1.5em;
}
.card-content {
margin-top: 20px;
background: #efefef;
padding: 1em;
}
</style>
</body>
</html>