diff --git a/doc/assets/css/docs.css b/doc/assets/css/docs.css index b9ddfc64b..88d3a7ff1 100644 --- a/doc/assets/css/docs.css +++ b/doc/assets/css/docs.css @@ -112,6 +112,13 @@ img { max-width: 100%; height: auto; } } .dx-drop__item { padding: 8px 12px; border-radius: var(--br-m); color: var(--grey-800); font-size: 14px; white-space: nowrap; } .dx-drop__item:hover { background: var(--grey-050); color: var(--grey-900); } +/* Signed-in account menu, rendered by www's /site-session.js into [data-ttn-auth="dx"]. */ +summary.dx-header__user { list-style: none; cursor: pointer; } +summary.dx-header__user::-webkit-details-marker { display: none; } +.dx-drop--end > .dx-drop__menu { left: auto; right: 0; } +.dx-drop--end .dx-drop__item { display: flex; align-items: center; gap: 8px; } +.dx-drop--end form { margin: 0; } +.dx-drop--end button.dx-drop__item { width: 100%; border: 0; background: none; font: inherit; font-size: 14px; text-align: left; cursor: pointer; } /* Search */ .dx-search { position: relative; width: min(100%, 240px); } diff --git a/doc/content/lorawan/_index.md b/doc/content/lorawan/_index.md index 33b923683..52bdd0605 100644 --- a/doc/content/lorawan/_index.md +++ b/doc/content/lorawan/_index.md @@ -44,10 +44,6 @@ topics: {{< button href="#everything-you-need-to-know-about-lorawan-in-60-minutes" style="outline" icon-before="player-play" >}}Watch the 60-minute video{{< /button >}} {{< /actions >}} -{{< info >}} -The LoRaWAN Fundamentals course can also be followed on Udemy. [Sign up for the online course today!](https://www.udemy.com/course/lorawan-fundamentals/) -{{}} - ## Everything you need to know about LoRaWAN in 60 minutes The chapters are designed to be paired with the following video by Johan Stokking, which covers the Fundamentals of LoRaWAN in 60 minutes: diff --git a/doc/layouts/partials/head/head.html b/doc/layouts/partials/head/head.html index 290264066..c226dc5c9 100644 --- a/doc/layouts/partials/head/head.html +++ b/doc/layouts/partials/head/head.html @@ -6,6 +6,9 @@ loads only after the visitor accepts. Root-relative on purpose — it exists only behind the www front door, so the raw GitHub Pages origin and local Hugo previews stay untracked. */}} + {{- /* Signed-in member in the global header (thethingsnetwork-v2 platform/app/site-session.js): asks + www's /api/session, so root-relative and only active behind the www front door. */}} + {{ hugo.Generator }} diff --git a/doc/layouts/partials/site/header.html b/doc/layouts/partials/site/header.html index d8e60a47b..34ea2f963 100644 --- a/doc/layouts/partials/site/header.html +++ b/doc/layouts/partials/site/header.html @@ -41,7 +41,9 @@ -
+ {{- /* data-ttn-auth="dx": www's /site-session.js (thethingsnetwork-v2 platform/app/site-session.js) + swaps Log in / Sign up for the signed-in member's account menu, in these dx- classes. */}} +
Sign up