Skip to content

Commit fab9adb

Browse files
authored
Merge pull request #521 from zirreal/master
added gif for smart homes page
2 parents 9bb541f + 16261e5 commit fab9adb

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed
3.41 MB
Loading
566 KB
Binary file not shown.

src/pages/for-smart-homes.astro

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ import { Image } from 'astro:assets';
99
import HASS from '../assets/images/for-smart-home/home-assistant.webp';
1010
import HASS2 from '../assets/images/for-smart-home/home-assistant-2.webp';
1111
12-
import HASSENG from'../assets/images/for-smart-home/hass-for-engineers.webp';
12+
import HASSWEBM from'../assets/images/for-smart-home/hass-for-engineers.webm';
13+
import HASSGIF from'../assets/images/for-smart-home/hass-for-engineers.gif';
1314
import DIYGEEKS from'../assets/images/for-smart-home/diy-geeks.webp';
1415
1516
// videos
@@ -74,7 +75,17 @@ const previews = [
7475
<h4 class="highlight-green">{$tr('FOR ENGINEERS & DIY GEEKS')}</h4>
7576
<p class="description-bold">{$tr('For those who want to build a smart home DIY-style, we’ve got something awesome for you too — a detailed guide!')}</p>
7677
<div class="grid grid-2">
77-
<Image src={HASSENG} alt="homeassistant for engineers" />
78+
<video
79+
autoplay
80+
loop
81+
muted
82+
playsinline
83+
aria-label="homeassistant interface"
84+
>
85+
<source src={HASSWEBM} type="video/webm" />
86+
<img src={HASSGIF.src} alt="homeassistant interface" />
87+
</video>
88+
7889
<Image src={DIYGEEKS} alt="diy geeks image" />
7990
</div>
8091
<RbButton
@@ -131,6 +142,10 @@ const previews = [
131142
margin-bottom: calc(var(--space) * 2);
132143
}
133144

145+
.grid-2 video {
146+
width: 100%;
147+
}
148+
134149
.description-bold {
135150
font-variation-settings: var(--font-flex-bold);
136151
}

0 commit comments

Comments
 (0)