|
4 | 4 | <meta charset="UTF-8"> |
5 | 5 | <title>Custom Elements Demo</title> |
6 | 6 | <link rel="stylesheet" href="./dist/_themes/theme-hawk-reset.css"/> |
7 | | - <script src="./dist/_custom-elements/svelte-components.js" type="module"></script> |
| 7 | + <link rel="stylesheet" href="./dist/_custom-elements/custom-elements-fouc.css"/> |
| 8 | + <script src="./dist/_custom-elements/custom-elements.js" type="module"></script> |
8 | 9 | </head> |
9 | | -<body style="padding:30px"> |
| 10 | +<body style="display: flex; flex-direction: column; min-height: 100vh;"> |
| 11 | +<div style="padding:20px; flex-grow: 1;"> |
10 | 12 |
|
11 | | -<hawk-typo> |
12 | | - <h1>Hello world</h1> |
13 | | - <p>This is a paragraph <a href="#foo">with link</a></p> |
14 | | -</hawk-typo> |
15 | | -<br/> |
16 | | -<hawk-formwrap> |
17 | | - <hawk-input name="input" iconLeft="eye"> |
18 | | - <hawk-snippet property="label"><strong>Hello Label!</strong></hawk-snippet> |
19 | | - </hawk-input> |
| 13 | + <hawk-typo> |
| 14 | + <h1>Hello world</h1> |
| 15 | + <p>This is a paragraph <a href="#foo">with link</a></p> |
| 16 | + </hawk-typo> |
| 17 | + <br/> |
| 18 | + <hawk-formwrap> |
| 19 | + <hawk-input name="input" iconLeft="eye"> |
| 20 | + <hawk-snippet property="label"><strong>Hello Label!</strong></hawk-snippet> |
| 21 | + </hawk-input> |
20 | 22 |
|
21 | | - <hawk-input-password name="password" label="Password"></hawk-input-password> |
| 23 | + <hawk-input-password name="password" label="Password"></hawk-input-password> |
22 | 24 |
|
23 | | - <hawk-checkbox label="Are you sure?" name="checkbox" checked></hawk-checkbox> |
| 25 | + <hawk-checkbox label="Are you sure?" name="checkbox" checked></hawk-checkbox> |
24 | 26 |
|
25 | | - <hawk-select name="select" label="Select an option" id="select"> |
26 | | - <option value="1">Option 1</option> |
27 | | - <option value="2" selected>Option 2</option> |
28 | | - <option value="3">Option 3</option> |
29 | | - </hawk-select> |
30 | | - <script> |
31 | | - document.getElementById('select').onchange = (e) => { |
32 | | - console.log('Selected value:', e.detail.value); |
33 | | - }; |
34 | | - </script> |
| 27 | + <hawk-select name="select" label="Select an option" id="select"> |
| 28 | + <option value="1">Option 1</option> |
| 29 | + <option value="2" selected>Option 2</option> |
| 30 | + <option value="3">Option 3</option> |
| 31 | + </hawk-select> |
| 32 | + <script> |
| 33 | + document.getElementById('select').onchange = (e) => { |
| 34 | + console.log('Selected value:', e.detail.value); |
| 35 | + }; |
| 36 | + </script> |
35 | 37 |
|
36 | | - <hawk-button onclick="alert('Submitting :D')">Submit</hawk-button> |
37 | | -</hawk-formwrap> |
| 38 | + <hawk-button onclick="alert('Submitting :D')">Submit</hawk-button> |
| 39 | + </hawk-formwrap> |
| 40 | + <br/> |
| 41 | +</div> |
38 | 42 |
|
| 43 | + <hawk-footer> |
| 44 | + <ul> |
| 45 | + <li><a href="#noop">Imprint</a></li> |
| 46 | + <li><a href="#noop">Privacy Policy</a></li> |
| 47 | + </ul> |
| 48 | + </hawk-footer> |
39 | 49 | </body> |
40 | 50 | </html> |
0 commit comments