-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
78 lines (62 loc) · 1.7 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
<style>
body {
padding: 0;
margin: 0;
background: #fff;
}
/* Styles for demo purposes only */
.demo__container {
padding: 16px 30px;
font-family: 'Roboto';
}
.bg-dark {
background: #333;
padding: 24px;
}
</style>
<!-- Material icons -->
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<!-- Web component polyfill loader -->
<script src="https://unpkg.com/@webcomponents/[email protected]/webcomponents-loader.js"></script>
<script type="module">
import "https://cdn.my.wisc.edu/@myuw-web-components/myuw-app-styles@latest/myuw-app-styles.min.mjs";
import "https://unpkg.com/@myuw-web-components/myuw-app-bar@^1?module";
import "./dist/myuw-badge.mjs";
</script>
<myuw-app-bar theme-name="MyUW" app-name="Badge Demo"></myuw-app-bar>
<div class="demo__container">
<p>Default theme:</p>
<p>
<myuw-badge
url="https://my.wisc.edu/web/apps/details/my-professional-development">
</myuw-badge>
</p>
<p>Black theme:</p>
<p>
<myuw-badge
dark-theme
url="http://my.wisc.edu/web/apps/details/earnings-statement">
</myuw-badge>
</p>
<p>Default theme w/ "white-border" attribute:</p>
<p class="bg-dark">
<myuw-badge
white-border
url="http://my.wisc.edu/web/apps/details/earnings-statement">
</myuw-badge>
</p>
<p>Black theme w/ "white-border" attribute:</p>
<p class="bg-dark">
<myuw-badge
white-border
dark-theme
url="http://my.wisc.edu/web/apps/details/earnings-statement">
</myuw-badge>
</p>
<p>Broken URL (should not appear, should warn in console):</p>
<p>
<myuw-badge
url="fjkdls;aj949?">
</myuw-badge>
</p>
</div>