generated from daviddarnes/component-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemo.html
51 lines (49 loc) · 1.89 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="Demo of paper-stamp Web Component" />
<title>paper-stamp Web Component Demo</title>
<style>
@media (prefers-color-scheme: dark) {
:root {
color-scheme: dark;
}
}
</style>
<script type="module" src="paper-stamp.js"></script>
</head>
<body>
<h2>General usage example</h2>
<paper-stamp>
<img src="https://chrisburnell.com/images/rolbie-stamp.png" alt="A monochrome pixel-art image of a stamp featuring an adorable little cow’s head">
</paper-stamp>
<h2>Custom stamp color</h2>
<paper-stamp color="cyan">
<img src="https://chrisburnell.com/images/rolbie-stamp.png" alt="A monochrome pixel-art image of a stamp featuring an adorable little cow’s head">
</paper-stamp>
<h2>Custom stamp padding</h2>
<paper-stamp padding="50px">
<img src="https://chrisburnell.com/images/rolbie-stamp.png" alt="A monochrome pixel-art image of a stamp featuring an adorable little cow’s head">
</paper-stamp>
<h2>Custom stamp perforation size</h2>
<paper-stamp perforation="15px">
<img src="https://chrisburnell.com/images/rolbie-stamp.png" alt="A monochrome pixel-art image of a stamp featuring an adorable little cow’s head">
</paper-stamp>
<h2>Custom stamp perforation spacing multiplier</h2>
<paper-stamp spacing="6">
<img src="https://chrisburnell.com/images/rolbie-stamp.png" alt="A monochrome pixel-art image of a stamp featuring an adorable little cow’s head">
</paper-stamp>
<style>
paper-stamp:not(:defined) {
background-color: antiquewhite;
display: inline-block;
padding: 15px;
img {
display: block;
}
}
</style>
</body>
</html>