|
1 | 1 | <!doctype html> |
2 | | -<html> |
| 2 | +<html lang="en"> |
3 | 3 | <head> |
4 | | - <meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes"> |
5 | | - <title>flip-clock Demo</title> |
| 4 | + <meta charset="utf-8"> |
| 5 | + <meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1, user-scalable=yes"> |
| 6 | + |
| 7 | + <title>flip-clock demo</title> |
| 8 | + |
6 | 9 | <script src="../../webcomponentsjs/webcomponents-lite.js"></script> |
| 10 | + |
| 11 | + <link rel="import" href="../../iron-demo-helpers/demo-pages-shared-styles.html"> |
| 12 | + <link rel="import" href="../../iron-demo-helpers/demo-snippet.html"> |
7 | 13 | <link rel="import" href="../flip-clock.html"> |
| 14 | + |
| 15 | + <custom-style> |
| 16 | + <style is="custom-style" include="demo-pages-shared-styles"> |
| 17 | + </style> |
| 18 | + </custom-style> |
8 | 19 | <style> |
9 | | - body { |
10 | | - margin: 0; |
11 | | - padding: 0; |
12 | | - color: #333; |
13 | | - background: #fff; |
14 | | - } |
15 | | - a { |
16 | | - color: #fff; |
17 | | - } |
18 | | - a:hover { |
19 | | - text-decoration: none; |
20 | | - } |
21 | | - h1 { |
22 | | - margin: 0 auto; |
23 | | - font-weight: normal; |
24 | | - } |
25 | | - h1 span { |
26 | | - font-size: 14px; |
27 | | - } |
28 | | - h2 { |
29 | | - font-size: 34px; |
30 | | - margin: 30px 0 10px; |
31 | | - } |
32 | | - .wrapper { |
33 | | - max-width: 960px; |
34 | | - margin: 20px auto 0 auto; |
35 | | - text-align: center; |
36 | | - } |
37 | | - code { |
38 | | - display: inline-block; |
39 | | - margin: 0 0 20px 0; |
40 | | - font-family: monospace , serif; |
41 | | - border: 1px solid #ddd; |
42 | | - background-color: #f8f8f8; |
43 | | - border-radius: 3px; |
44 | | - padding: 2px 4px; |
45 | | - color: #333; |
| 20 | + .centered { |
| 21 | + max-width: 620px; |
46 | 22 | } |
47 | 23 | </style> |
48 | 24 | </head> |
49 | 25 | <body> |
50 | | - <div class="wrapper"> |
51 | | - <h2>Clock</h2> |
52 | | - <code><flip-clock></flip-clock></code> |
53 | | - <flip-clock></flip-clock> |
54 | | - |
55 | | - <h2>Timer </h2> |
56 | | - <code><flip-clock display-mode="timer" show-buttons></flip-clock></code> |
57 | | - <flip-clock display-mode="timer" show-buttons></flip-clock> |
58 | | - |
59 | | - <h2>Countdown </h2> |
60 | | - <code><flip-clock display-mode="countdown" start-from="20" show-buttons></flip-clock></code> |
61 | | - <flip-clock display-mode="countdown" start-from="20" show-buttons></flip-clock> |
62 | | - |
63 | | - <h2>Countdown without hours</h2> |
64 | | - <code><flip-clock display-mode="countdown" start-from="20" show-buttons hide-hours></flip-clock></code> |
65 | | - <flip-clock display-mode="countdown" start-from="20" show-buttons hide-hours></flip-clock> |
66 | | - </div> |
| 26 | +<div class="vertical-section-container centered"> |
| 27 | + <h3>Basic flip-clock</h3> |
| 28 | + <demo-snippet> |
| 29 | + <template> |
| 30 | + <flip-clock></flip-clock> |
| 31 | + </template> |
| 32 | + </demo-snippet> |
| 33 | + <h3>Timer flip-clock</h3> |
| 34 | + <demo-snippet> |
| 35 | + <template> |
| 36 | + <flip-clock display-mode="timer" show-buttons></flip-clock> |
| 37 | + </template> |
| 38 | + </demo-snippet> |
| 39 | + <h3>Countdown flip-clock</h3> |
| 40 | + <demo-snippet> |
| 41 | + <template> |
| 42 | + <flip-clock display-mode="countdown" start-from="20" show-buttons></flip-clock> |
| 43 | + </template> |
| 44 | + </demo-snippet> |
| 45 | + <h3>Countdown without hours flip-clock</h3> |
| 46 | + <demo-snippet> |
| 47 | + <template> |
| 48 | + <flip-clock display-mode="countdown" start-from="20" show-buttons hide-hours></flip-clock> |
| 49 | + </template> |
| 50 | + </demo-snippet> |
| 51 | +</div> |
67 | 52 | </body> |
68 | 53 | </html> |
0 commit comments