This repository has been archived by the owner on Nov 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
83 lines (80 loc) · 3.38 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Postcard web component demo</title>
<style>
section > * { margin: 16px; }
section { display: flex; }
</style>
</head>
<body>
<p>Run <code>pnpm dev</code> to use this file with a live reloading build.</p>
<section>
<postcard-display name="hello" src="src/assets/hello.postcard" style="width: 200px"></postcard-display>
<postcard-info for="hello" downloadable></postcard-info>
<div>
As Image:
<img src="src/assets/hello.postcard" style="width: 100px; aspect-ratio: 1385/1699;" />
</div>
</section>
<section>
<postcard-display name="flip-book" src="src/assets/landscape-book.postcard" style="width: 200px"></postcard-display></li>
<div>
<p>A demonstration of a postcard that flips like a book</p>
<postcard-info for="flip-book"></postcard-info>
</div>
</section>
<section>
<postcard-display name="flip-calendar" src="src/assets/landscape-calendar.postcard" style="width: 200px"></postcard-display></li>
<div>
<p>A demonstration of a postcard that flips like a calendar</p>
<postcard-info for="flip-calendar"></postcard-info>
</div>
</section>
<section>
<postcard-display name="flip-left-hand" src="src/assets/landscape-left-hand.postcard" style="width: 200px"></postcard-display></li>
<div>
<p>A demonstration of a postcard that flips like a book</p>
<postcard-info for="flip-left-hand"></postcard-info>
</div>
</section>
<section>
<postcard-display name="flip-right-hand" src="src/assets/landscape-right-hand.postcard" style="width: 200px"></postcard-display></li>
<div>
<p>A demonstration of a postcard that flips like a book</p>
<postcard-info for="flip-right-hand"></postcard-info>
</div>
</section>
<section>
<postcard-display name="portrait-flip-book" src="src/assets/portrait-book.postcard" style="width: 200px"></postcard-display></li>
<div>
<p>A demonstration of a portrait postcard that flips like a book</p>
<postcard-info for="portrait-flip-book"></postcard-info>
</div>
</section>
<section>
<postcard-display name="portrait-flip-calendar" src="src/assets/portrait-calendar.postcard" style="width: 200px"></postcard-display></li>
<div>
<p>A demonstration of a portrait postcard that flips like a calendar</p>
<postcard-info for="portrait-flip-calendar"></postcard-info>
</div>
</section>
<section>
<postcard-display name="portrait-flip-left-hand" src="src/assets/portrait-left-hand.postcard" style="width: 200px"></postcard-display></li>
<div>
<p>A demonstration of a portrait postcard that flips like a book</p>
<postcard-info for="portrait-flip-left-hand"></postcard-info>
</div>
</section>
<section>
<postcard-display name="portrait-flip-right-hand" src="src/assets/portrait-right-hand.postcard" style="width: 200px"></postcard-display></li>
<div>
<p>A demonstration of a portrait postcard that flips like a book</p>
<postcard-info for="portrait-flip-right-hand"></postcard-info>
</div>
</section>
<script type="module" src="/src/main.ts"></script>
</body>
</html>