Skip to content

Commit 74bae08

Browse files
committed
add mainteance message
1 parent a413193 commit 74bae08

4 files changed

Lines changed: 42 additions & 13 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# DMNO [![npm](https://img.shields.io/npm/v/dmno?label=dmno)](https://www.npmjs.com/package/dmno)
22

3+
> **Maintenance mode:** DMNO receives critical bug and security fixes only. For a suitable replacement, see [Varlock](https://varlock.dev).
4+
35
>Full-stack configuration & secrets.
46
>Batteries included.
57

packages/docs-site/src/components/CustomStarlightBanner.astro

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,19 @@
11
---
22
import type { Props } from "@astrojs/starlight/props";
3+
import MaintenanceCallout from "./MaintenanceCallout.astro";
34
45
const { banner } = Astro.locals.starlightRoute.entry.data;
56
67
const showDefaultBanner =
7-
!banner &&
8-
Astro.url.pathname.startsWith("/docs/") &&
9-
!["/docs/"].includes(Astro.url.pathname);
8+
!banner && Astro.url.pathname.startsWith("/docs/");
109
---
1110

1211
{
1312
(banner || showDefaultBanner) && (
1413
<div class="sl-banner__wrap">
1514
<div class="sl-banner__wrap-inner">
1615
{banner && <div class="sl-banner" set:html={banner.content} />}
17-
{showDefaultBanner && (
18-
<div class="sl-banner info richtext">
19-
✨ If you've tried DMNO or looked through the docs,{" "}
20-
<a href="https://forms.gle/AfM99kTJ9p1c25g86" target="_blank">
21-
let us know
22-
</a>
23-
what you think!
24-
</div>
25-
)}
16+
{showDefaultBanner && <MaintenanceCallout />}
2617
</div>
2718
</div>
2819
)
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<div class="maintenance-callout richtext">
2+
<strong>DMNO is in maintenance mode.</strong> We will continue to provide critical
3+
bug and security fixes, but active development has moved to{" "}
4+
<a href="https://varlock.dev" target="_blank">Varlock</a>, a feature-rich
5+
replacement.
6+
</div>
7+
8+
<style lang="less">
9+
.maintenance-callout {
10+
padding: var(--sl-nav-pad-y) var(--sl-nav-pad-x);
11+
border-width: 1px 4px;
12+
line-height: var(--sl-line-height-headings);
13+
text-align: center;
14+
text-wrap: balance;
15+
background: linear-gradient(
16+
45deg,
17+
var(--brand-orange--t2) 0%,
18+
var(--brand-red--t2) 100%
19+
);
20+
border: 1px solid var(--brand-orange);
21+
color: var(--color-text-full-shade);
22+
}
23+
</style>

packages/docs-site/src/pages/index.astro

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import LandingPage from "@/components/layouts/LandingPage.astro";
55
import CTABlock from "@/components/CTABlock.astro";
66
import Hero from "@/components/Hero.astro";
77
import LandingPageSection from "@/components/LandingPageSection.astro";
8+
import MaintenanceCallout from "@/components/MaintenanceCallout.astro";
89
910
import IntegrationsHero from "@/components/homepage/IntegrationsHero.vue";
1011
@@ -25,6 +26,10 @@ const muxId = "FmBLL2H1yt6cEfqz01QVje7LSlI8DtF9Vn18NRsv5o6E";
2526
showSidebar={false}
2627
showIntegrations={true}
2728
>
29+
<div class="homepage-callout">
30+
<MaintenanceCallout />
31+
</div>
32+
2833
<Hero>
2934
<Fragment slot="heading">Connective Configuration</Fragment>
3035
<Fragment slot="subheading">
@@ -62,4 +67,12 @@ const muxId = "FmBLL2H1yt6cEfqz01QVje7LSlI8DtF9Vn18NRsv5o6E";
6267
/>
6368
</LandingPage>
6469

65-
<style></style>
70+
<style lang="less">
71+
.homepage-callout {
72+
padding: 1rem 2rem 0;
73+
74+
@media (min-width: 50rem) {
75+
padding: 1.5rem 2rem 0;
76+
}
77+
}
78+
</style>

0 commit comments

Comments
 (0)