|
4 | 4 | <meta charset="UTF-8" /> |
5 | 5 | <link rel="icon" type="image/svg+xml" href="/favicon.png" /> |
6 | 6 | <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
7 | | - <title>ZWA2 - Device Toolbox</title> |
8 | | - <script type="module" src="../src/pages/zwa2-install-portable.ts"></script> |
| 7 | + <title>Install Portable Z-Wave - ZWA2 - Device Toolbox</title> |
| 8 | + <script |
| 9 | + type="module" |
| 10 | + src="https://home-assistant.github.io/zwa2-toolbox/standalone/install-esphome-firmware.js" |
| 11 | + ></script> |
9 | 12 | <script type="module" src="../src/components/app-header.ts"></script> |
| 13 | + <script type="module" src="../src/pages/zwa2-install-portable.ts"></script> |
10 | 14 | <link |
11 | 15 | rel="stylesheet" |
12 | 16 | href=" https://early.webawesome.com/[email protected]/dist/styles/webawesome.css" |
13 | 17 | /> |
14 | 18 | <style> |
15 | 19 | @import url('../src/styles/shoelace.css'); |
16 | 20 | @import url('../src/styles/theme.css'); |
| 21 | + |
17 | 22 | body { |
18 | 23 | margin: 0; |
| 24 | + font-family: |
| 25 | + -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; |
| 26 | + --color-indigo-600: #03a9f4; |
| 27 | + --color-indigo-500: #0288d1; |
| 28 | + } |
| 29 | + .installer-wrapper { |
| 30 | + max-width: 1200px; |
| 31 | + margin: 0 auto; |
| 32 | + padding: 0 20px; |
| 33 | + } |
| 34 | + |
| 35 | + .installer-card { |
| 36 | + background: white; |
| 37 | + border-radius: 12px; |
| 38 | + padding: 20px; |
| 39 | + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); |
| 40 | + margin-top: 20px; |
| 41 | + } |
| 42 | + |
| 43 | + .installer-card install-esphome-firmware { |
| 44 | + width: 100%; |
| 45 | + border: none; |
| 46 | + min-height: 600px; |
| 47 | + border-radius: 8px; |
| 48 | + } |
| 49 | + |
| 50 | + install-esphome-firmware .min-h-screen { |
| 51 | + min-height: auto !important; |
| 52 | + } |
| 53 | + |
| 54 | + a { |
| 55 | + color: #03a9f4; |
| 56 | + text-decoration: none; |
| 57 | + } |
| 58 | + |
| 59 | + a:hover { |
| 60 | + text-decoration: underline; |
19 | 61 | } |
20 | 62 | </style> |
21 | 63 | </head> |
22 | 64 | <body class="wa-palette-shoelace wa-theme-shoelace"> |
23 | 65 | <app-header></app-header> |
24 | 66 | <zwa2-install-portable></zwa2-install-portable> |
| 67 | + <div class="installer-wrapper" id="installer-container"> |
| 68 | + <div class="installer-card"> |
| 69 | + <install-esphome-firmware></install-esphome-firmware> |
| 70 | + </div> |
| 71 | + </div> |
| 72 | + <script type="module"> |
| 73 | + import '../src/components/warning-card.js'; |
| 74 | + |
| 75 | + const isSerialUnavailable = !('serial' in navigator); |
| 76 | + |
| 77 | + if (isSerialUnavailable) { |
| 78 | + const installerContainer = document.getElementById( |
| 79 | + 'installer-container' |
| 80 | + ); |
| 81 | + installerContainer.className = ''; |
| 82 | + installerContainer.innerHTML = ''; |
| 83 | + |
| 84 | + const warningCard = document.createElement('warning-card'); |
| 85 | + installerContainer.appendChild(warningCard); |
| 86 | + } |
| 87 | + </script> |
25 | 88 | </body> |
26 | 89 | </html> |
0 commit comments