Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions layouts/partials/cloud-banner.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<div class="banner" id="banner">
CedarDB Cloud is live!
<a href="https://app.cedardb.cloud/signup/" target="_blank" rel="noopener noreferrer" class="banner__link banner__cta">Get started for free &rarr;</a>
<button type="button" class="banner__close" id="banner-close" aria-label="Dismiss">&times;</button>
</div>
<script>
(function () {
var banner = document.getElementById("banner");
if (!banner) return;

if (sessionStorage.getItem("cloud-banner-closed") === "true") {
banner.classList.add("hide");
return;
}

document.getElementById("banner-close").addEventListener("click", function () {
banner.classList.add("hide");
sessionStorage.setItem("cloud-banner-closed", "true");
});
})();
</script>
2 changes: 1 addition & 1 deletion layouts/partials/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
class="hextra-nav-container-blur hx:pointer-events-none hx:absolute hx:z-[-1] hx:h-full hx:w-full hx:bg-white hx:dark:bg-dark hx:shadow-[0_2px_4px_rgba(0,0,0,.02),0_1px_0_rgba(0,0,0,.06)] hx:contrast-more:shadow-[0_0_0_1px_#000] hx:dark:shadow-[0_-1px_0_rgba(255,255,255,.1)_inset] hx:contrast-more:dark:shadow-[0_0_0_1px_#fff]"
></div>

{{ partial "waitlist-banner.html" . }}
{{ partial "cloud-banner.html" . }}

<nav class="hextra-max-navbar-width hx:mx-auto hx:flex hx:items-center hx:justify-end hx:gap-2 hx:h-16 hx:px-6">
{{ partial "navbar-title.html" . }}
Expand Down
38 changes: 0 additions & 38 deletions layouts/partials/waitlist-banner.html

This file was deleted.

Loading