mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-13 12:26:50 +00:00
Add Luma embed for Community Day events & facade iframes (#38845)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
This commit is contained in:
parent
ebe3ece894
commit
af1fe88e43
@ -5,32 +5,62 @@
|
|||||||
<script src="{{ '/javascripts/prism.js' | cache_buster }}" type="text/javascript" defer></script>
|
<script src="{{ '/javascripts/prism.js' | cache_buster }}" type="text/javascript" defer></script>
|
||||||
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/@docsearch/js@3/dist/umd/index.min.js"></script>
|
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/@docsearch/js@3/dist/umd/index.min.js"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
docsearch({
|
docsearch({
|
||||||
container: '#docsearch',
|
container: '#docsearch',
|
||||||
appId: 'FBHBYS3J0U',
|
appId: 'FBHBYS3J0U',
|
||||||
indexName: 'home-assistant',
|
indexName: 'home-assistant',
|
||||||
apiKey: "{{ site.algolia.api_key }}",
|
apiKey: "{{ site.algolia.api_key }}",
|
||||||
});
|
});
|
||||||
document.querySelector('.site-title').addEventListener('contextmenu', function(ev) {
|
document.querySelector('.site-title').addEventListener('contextmenu', function (ev) {
|
||||||
ev.preventDefault();
|
ev.preventDefault();
|
||||||
document.location.assign("https://design.home-assistant.io/#brand/logo")
|
document.location.assign("https://design.home-assistant.io/#brand/logo")
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
{% if page.hero_unit %}
|
{% if page.hero_unit %}
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
const changeNavColor = () => {
|
{
|
||||||
const scrollPosition = document.documentElement.scrollTop;
|
const changeNavColor = () => {
|
||||||
const nav = document.querySelector("header");
|
const scrollPosition = document.documentElement.scrollTop;
|
||||||
if (scrollPosition <= 1) {
|
const nav = document.querySelector("header");
|
||||||
nav.classList.add("dark");
|
if (scrollPosition <= 1) {
|
||||||
} else {
|
nav.classList.add("dark");
|
||||||
nav.classList.remove("dark");
|
} else {
|
||||||
|
nav.classList.remove("dark");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
window.addEventListener("load", () => changeNavColor());
|
window.addEventListener("load", () => changeNavColor());
|
||||||
window.addEventListener("scroll", () => changeNavColor());
|
window.addEventListener("scroll", () => changeNavColor(), { passive: true });
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
{
|
||||||
|
const article = document.querySelector("article.post");
|
||||||
|
if (article) {
|
||||||
|
const iframes = article.querySelectorAll("iframe[data-src]");
|
||||||
|
let loaded = false;
|
||||||
|
if (iframes) {
|
||||||
|
document.addEventListener('mousemove', loadLazyFrames, { passive: true, once: true });
|
||||||
|
document.addEventListener('touchmove', loadLazyFrames, { passive: true, once: true });
|
||||||
|
document.addEventListener('scroll', loadLazyFrames, { passive: true, once: true });
|
||||||
|
|
||||||
|
function loadLazyFrames() {
|
||||||
|
if (loaded) return;
|
||||||
|
loaded = true;
|
||||||
|
|
||||||
|
iframes.forEach((iframe) => {
|
||||||
|
const src = iframe.getAttribute("data-src");
|
||||||
|
if (src) {
|
||||||
|
iframe.setAttribute("src", src);
|
||||||
|
iframe.removeAttribute("data-src");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
@ -23,26 +23,20 @@ I'm sure you're all wondering, "*Missy, what is a Community Day?*". In its simpl
|
|||||||
|
|
||||||
### Locations and registering to attend
|
### Locations and registering to attend
|
||||||
|
|
||||||
We already have **13 events** hosted by several of us who work on Home Assistant 😎! To coordinate these, we are using Luma, a site focused on tech meetups. All the current events can be found on our [Home Assistant Community Day](https://lu.ma/haday2025) calendar, including:
|
To coordinate all these meetups, we are using Luma, a site focused on tech meetups. All the current events can be found below or on our [Home Assistant Community Day](https://lu.ma/haday2025) calendar.
|
||||||
|
|
||||||
**Europe**
|
<iframe
|
||||||
- [Aveiro, Portugal](https://lu.ma/p9eo4v3t)
|
data-src="https://lu.ma/embed/calendar/cal-QXZXEJrvB3UaI63/events?lt=light"
|
||||||
- [Bordeaux, France](https://lu.ma/shxhyi6u)
|
width="100%"
|
||||||
- [London, United Kingdom](https://lu.ma/fa5ez3t7)
|
height="600"
|
||||||
- [Madrid, Spain](https://lu.ma/o6pqbjv8)
|
frameborder="0"
|
||||||
- [Porto, Portugal](https://lu.ma/uozbfr6n)
|
style="border: 1px solid #bfcbda88; border-radius: 4px;"
|
||||||
- [Prague, Czech Republic](https://lu.ma/dhudha0z)
|
allowfullscreen=""
|
||||||
- [Utrecht, Netherlands](https://lu.ma/e2wyv8k0)
|
aria-hidden="false"
|
||||||
- [Vienna, Austria](https://lu.ma/2vjs7dab)
|
tabindex="0"
|
||||||
|
></iframe>
|
||||||
|
|
||||||
**North America**
|
All Community Day events are free, so **[register before spaces run out!](https://lu.ma/haday2025)** (No worries, there are waitlists!). We also have people who work full-time on Home Assistant attending these events. To find out who you can meet, head over to Luma 😎!
|
||||||
- [Brooklyn, New York](https://lu.ma/efkt35on)
|
|
||||||
- [Charlotte, North Carolina](https://lu.ma/3kbb2dte)
|
|
||||||
- [Houston, Texas](https://lu.ma/g5o66to2)
|
|
||||||
- [Redmond, Washington](https://lu.ma/qb0hhhkm)
|
|
||||||
- [Twin Cities, Minnesota](https://lu.ma/ljwdnjmc)
|
|
||||||
|
|
||||||
All Community Day events are free, so **[register before spaces run out!](https://lu.ma/haday2025)** (No worries, there are waitlists!)
|
|
||||||
|
|
||||||
### Host your own
|
### Host your own
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user