Skip to content

Commit aa063ca

Browse files
committed
Put inline some detail pages
1 parent 511db5a commit aa063ca

4 files changed

Lines changed: 163 additions & 193 deletions

File tree

src-11ty/vpe/index.njk

Lines changed: 89 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,93 @@ description: Home Assistant Voice Preview Edition - Local voice control for your
55
permalink: /vpe/index.html
66
---
77

8-
<script type="module" src="/src/pages/vpe-details.ts"></script>
8+
<script type="module" src="/src/components/details.ts"></script>
9+
<script type="module" src="/src/components/action-item.ts"></script>
910

10-
<vpe-details></vpe-details>
11+
<style>
12+
p[slot='subtitle'] {
13+
color: var(--wa-color-brand-50);
14+
font-size: 1.1rem;
15+
font-weight: 500;
16+
margin: 0 0 10px 0;
17+
}
18+
19+
p[slot='description'] {
20+
color: var(--app-text-secondary);
21+
line-height: 1.6;
22+
margin: 0;
23+
font-size: 1.05rem;
24+
}
25+
26+
h3 {
27+
margin: 0 0 6px 0;
28+
color: var(--app-text-primary);
29+
font-size: 1rem;
30+
font-weight: 600;
31+
}
32+
</style>
33+
34+
<details-page>
35+
<span slot="title">Home Assistant Voice Preview Edition</span>
36+
<p slot="subtitle">Local voice control for your smart home</p>
37+
<p slot="description">
38+
Experience the future of voice control with complete local processing.
39+
The Voice Preview Edition brings fast, private voice commands to your
40+
smart home without sending data to the cloud.
41+
</p>
42+
43+
<div slot="actions">
44+
<action-item
45+
href="/vpe/install"
46+
icon="/svgs/install.svg"
47+
trailing-icon="/svgs/chevron-right.svg"
48+
>
49+
<h3>Install firmware</h3>
50+
<p>Flash the latest Voice PE firmware</p>
51+
</action-item>
52+
53+
<action-item
54+
href="https://www.home-assistant.io/voice_control/"
55+
icon="/svgs/doc.svg"
56+
>
57+
<h3>Voice control in Home Assistant</h3>
58+
<p>
59+
Complete guide to setting up voice control, wake words, and
60+
commands
61+
</p>
62+
</action-item>
63+
64+
<action-item
65+
href="https://support.nabucasa.com/hc/en-us/categories/24451727188125-Home-Assistant-Voice-Preview-Edition"
66+
icon="/svgs/doc.svg"
67+
>
68+
<h3>Documentation</h3>
69+
<p>
70+
Complete documentation, troubleshooting guides, and technical
71+
specifications
72+
</p>
73+
</action-item>
74+
75+
<action-item
76+
href="https://www.home-assistant.io/voice-pe/"
77+
icon="/svgs/product.svg"
78+
>
79+
<h3>Product info</h3>
80+
<p>
81+
Learn about Voice PE features, hardware specifications, and where
82+
to buy
83+
</p>
84+
</action-item>
85+
86+
<action-item
87+
href="https://github.com/esphome/home-assistant-voice-pe"
88+
icon="/svgs/github.svg"
89+
>
90+
<h3>Source code</h3>
91+
<p>
92+
View the open-source Voice PE firmware code and contribute to
93+
development
94+
</p>
95+
</action-item>
96+
</div>
97+
</details-page>

src-11ty/zbt1/index.njk

Lines changed: 74 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,78 @@ description: Update firmware for your Connect ZBT-1 adapter
55
permalink: /zbt1/index.html
66
---
77

8-
<script type="module" src="/src/pages/zbt1-details.ts"></script>
8+
<script type="module" src="/src/components/details.ts"></script>
9+
<script type="module" src="/src/components/action-item.ts"></script>
910

10-
<zbt1-details></zbt1-details>
11+
<style>
12+
p[slot='subtitle'] {
13+
color: var(--wa-color-brand-50);
14+
font-size: 1.1rem;
15+
font-weight: 500;
16+
margin: 0 0 10px 0;
17+
}
18+
19+
p[slot='description'] {
20+
color: var(--app-text-secondary);
21+
line-height: 1.6;
22+
margin: 0;
23+
font-size: 1.05rem;
24+
}
25+
26+
h3 {
27+
margin: 0 0 6px 0;
28+
color: var(--app-text-primary);
29+
font-size: 1rem;
30+
font-weight: 600;
31+
}
32+
</style>
33+
34+
<details-page>
35+
<span slot="title">Home Assistant Connect ZBT-1</span>
36+
<p slot="subtitle">Zigbee 3.0 USB adapter</p>
37+
<p slot="description">
38+
The Home Assistant Connect ZBT-1 (formerly SkyConnect) is a powerful
39+
Zigbee 3.0 USB adapter that connects your Zigbee devices to Home
40+
Assistant. Easy setup, reliable performance, and seamless integration.
41+
</p>
42+
43+
<div slot="actions">
44+
<action-item
45+
href="/zbt1/install"
46+
icon="/svgs/install.svg"
47+
trailing-icon="/svgs/chevron-right.svg"
48+
>
49+
<h3>Install firmware</h3>
50+
<p>Update your ZBT-1 with the latest Zigbee or Thread firmware</p>
51+
</action-item>
52+
<action-item
53+
href="https://support.nabucasa.com/hc/en-us/categories/24734620813469"
54+
icon="/svgs/doc.svg"
55+
>
56+
<h3>Documentation</h3>
57+
<p>
58+
Complete documentation, troubleshooting guides, and technical
59+
specifications
60+
</p>
61+
</action-item>
62+
63+
<action-item
64+
href="https://www.home-assistant.io/connectzbt1"
65+
icon="/svgs/product.svg"
66+
>
67+
<h3>Product info</h3>
68+
<p>
69+
Learn more about Connect ZBT-1 product features, specifications,
70+
and where to buy
71+
</p>
72+
</action-item>
73+
74+
<action-item
75+
href="https://github.com/NabuCasa/silabs-firmware-builder"
76+
icon="/svgs/github.svg"
77+
>
78+
<h3>Source code</h3>
79+
<p>View the open-source firmware code</p>
80+
</action-item>
81+
</div>
82+
</details-page>

src/pages/vpe-details.ts

Lines changed: 0 additions & 102 deletions
This file was deleted.

src/pages/zbt1-details.ts

Lines changed: 0 additions & 87 deletions
This file was deleted.

0 commit comments

Comments
 (0)