Skip to content

Commit 145c4b5

Browse files
authored
HA Blue Out Of Stock (home-assistant#21604)
1 parent d5872f0 commit 145c4b5

File tree

2 files changed

+7
-138
lines changed

2 files changed

+7
-138
lines changed

sass/custom/_landingpage.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,10 @@ $ha__primary_color: #03a9f4;
331331
color: #ffffff;
332332
}
333333
}
334+
.banner-overlay-button.disabled {
335+
background-color: #bdbdbd;
336+
cursor: initial;
337+
}
334338
.below-button {
335339
margin-top: 8px;
336340
text-align: center;

source/blue/index.html

Lines changed: 3 additions & 138 deletions
Original file line numberDiff line numberDiff line change
@@ -37,24 +37,16 @@
3737
</div>
3838
<div class="material-card text box">
3939
<div class="banner-overlay-header">LIMITED EDITION</div>
40-
<div class="banner-overlay-price">
41-
$146
42-
<div>*</div>
43-
</div>
4440
<div class="banner-overlay-images">
4541
<div class="img-container"><img src="/images/blue/blue1.png" /></div>
4642
<div class="img-container"><img src="/images/blue/blue2.png" /></div>
4743
<div class="img-container"><img src="/images/blue/blue3.png" /></div>
4844
</div>
49-
<div class="banner-overlay-button" onclick="showBuyDialog()">
50-
<div>BUY NOW</div>
45+
<div class="banner-overlay-button disabled">
46+
<div>Out of Stock</div>
5147
</div>
52-
<div class='below-button'>Limited stock left</div>
5348
</div>
5449
</div>
55-
<div class="banner-overlay-disclaimer">
56-
* Price does not include taxes and import fees
57-
</div>
5850

5951
<div class="bullet-points">
6052
<div class="item">
@@ -620,132 +612,5 @@ <h1 class="sub-title">FAQs</h1>
620612
</div>
621613
</div>
622614
</a>
623-
<div id="buy-dialog" class="dialog">
624-
<div class="material-card text dialog-content">
625-
<div class="close-container"></div>
626-
<div class="dialog-header">
627-
<span>Home Assistant Blue bundle</span>
628-
<span class="dialog-close" onclick="closeDialog()" title="close">
629-
<svg width="24" height="24" viewBox="0 0 24 24">
630-
<path
631-
d="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"
632-
/>
633-
</svg>
634-
</span>
635-
</div>
636-
<div class="box-contents">
637-
<span>The bundle includes:</span>
638-
<ul>
639-
<li>Limited edition Home Assistant Blue case</li>
640-
<li>ODROID-N2+</li>
641-
<ul class="ul-sub">
642-
<li>6-core CPU</li>
643-
<li>4GB memory</li>
644-
<li>128GB eMMC storage</li>
645-
<li>Home Assistant Operating System pre-installed</li>
646-
</ul>
647-
<li>Power adapter</li>
648-
</ul>
649-
</div>
650-
<div class="distributors">
651-
<a
652-
href="https://www.hardkernel.com/shop/odroid-n2-home-assistant-blue-bundle-limited-edition/"
653-
target="_blank"
654-
>
655-
<div class="distributor">
656-
<div>
657-
<div>🇰🇷</div>
658-
<div>Hardkernel</div>
659-
<div>Located in Korea</div>
660-
</div>
661-
<div>Sold out</div>
662-
</div>
663-
</a>
664-
<a
665-
href="https://ameridroid.com/products/odroid-n2-home-assistant-blue-bundle-limited-edition?ref=eeb6nfw07e"
666-
target="_blank"
667-
>
668-
<div class="distributor">
669-
<div>
670-
<div>🇺🇸</div>
671-
<div>ameriDroid</div>
672-
<div>Located in USA</div>
673-
</div>
674-
<div>Sold out</div>
675-
</div>
676-
</a>
677-
<a
678-
href="https://www.m.nu/styrenheter-z-wave/odroid-n2-home-assistant-blue-bundle-limited-edition"
679-
target="_blank"
680-
>
681-
<div class="distributor">
682-
<div>
683-
<div>🇸🇪</div>
684-
<div>m.nu</div>
685-
<div>Located in Sweden</div>
686-
</div>
687-
<div>Sold out</div>
688-
</div>
689-
</a>
690-
<a href="https://www.webhallen.com/329102" target="_blank">
691-
<div class="distributor">
692-
<div>
693-
<div>🇸🇪</div>
694-
<div>Webhallen</div>
695-
<div>Located in Sweden</div>
696-
</div>
697-
<div>Sold out</div>
698-
</div>
699-
</a>
700-
<a href="http://www.baumannelektro.ch/ha-blue" target="_blank">
701-
<div class="distributor">
702-
<div>
703-
<div>🇨🇭</div>
704-
<div>Baumann Elektro</div>
705-
<div>Located in Switzerland</div>
706-
</div>
707-
<svg width="24" height="24" viewBox="0 0 24 24">
708-
<path
709-
d="M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"
710-
/>
711-
</svg>
712-
</div>
713-
</a>
714-
<div class="tip">
715-
The Home Assistant Blue is distributed by Hardkernel. The resellers in
716-
the various regions will handle the import so you can get your Blue
717-
fast and worry free.
718-
</div>
719-
</div>
720-
</div>
721-
</div>
722-
<div class="fab" onclick="showBuyDialog()" title="buy blue">
723-
<svg style="width: 32px; height: 32px" viewBox="0 0 32 32">
724-
<path
725-
fill="currentColor"
726-
d="M17,18C15.89,18 15,18.89 15,20A2,2 0 0,0 17,22A2,2 0 0,0 19,20C19,18.89 18.1,18 17,18M1,2V4H3L6.6,11.59L5.24,14.04C5.09,14.32 5,14.65 5,15A2,2 0 0,0 7,17H19V15H7.42A0.25,0.25 0 0,1 7.17,14.75C7.17,14.7 7.18,14.66 7.2,14.63L8.1,13H15.55C16.3,13 16.96,12.58 17.3,11.97L20.88,5.5C20.95,5.34 21,5.17 21,5A1,1 0 0,0 20,4H5.21L4.27,2M7,18C5.89,18 5,18.89 5,20A2,2 0 0,0 7,22A2,2 0 0,0 9,20C9,18.89 8.1,18 7,18Z"
727-
/>
728-
</svg>
729-
BUY BLUE
730-
</div>
731-
<script>
732-
const buyDialog = document.getElementById("buy-dialog");
733-
const buyFab = document.querySelector(".fab");
734-
735-
function showBuyDialog() {
736-
buyDialog.style.display = "flex";
737-
buyFab.style.display = "none";
738-
}
739-
740-
function closeDialog() {
741-
buyDialog.style.display = "none";
742-
buyFab.style.display = "flex";
743-
}
744-
745-
window.onclick = function (event) {
746-
if (event.target === buyDialog) {
747-
closeDialog();
748-
}
749-
};
750-
</script>
615+
751616
</div>

0 commit comments

Comments
 (0)