From 0e97ec44476ed3af06cbaab7f4fd82c5d20b6f30 Mon Sep 17 00:00:00 2001 From: Theo Ephraim Date: Tue, 24 Dec 2024 20:44:25 -0800 Subject: [PATCH] wrapping up new homepage --- packages/docs-site/astro.config.ts | 4 - packages/docs-site/package.json | 1 + .../docs-site/{src => }/postcss.config.cjs | 1 + packages/docs-site/public/_redirects | 1 + .../components/CustomStarlightBanner.astro | 16 +- packages/docs-site/src/components/Hero.astro | 4 +- .../src/components/IconGraph/AnimatedDot.vue | 28 -- .../components/IconGraph/ConnectionLine.vue | 40 -- .../src/components/IconGraph/IconGraph.vue | 405 ------------------ .../docs-site/src/components/LogoBar.astro | 12 +- .../docs-site/src/components/ThemeSelect.vue | 41 +- .../docs-site/src/components/TileButton.vue | 30 +- .../components/homepage/IntegrationTile.vue | 42 +- .../components/homepage/IntegrationsHero.vue | 18 +- .../src/components/homepage/config-example.ts | 16 +- .../src/components/layouts/LandingPage.astro | 7 +- .../docs/docs/get-started/quickstart.mdx | 30 +- .../src/pages/_drafts/docs-home.astro | 404 +++++++++++++++++ packages/docs-site/src/pages/docs/index.astro | 403 +---------------- packages/docs-site/src/style/global.less | 2 +- packages/ui-lib/src/components/DotsLoader.vue | 18 +- pnpm-lock.yaml | 14 + 22 files changed, 532 insertions(+), 1005 deletions(-) rename packages/docs-site/{src => }/postcss.config.cjs (76%) delete mode 100644 packages/docs-site/src/components/IconGraph/AnimatedDot.vue delete mode 100644 packages/docs-site/src/components/IconGraph/ConnectionLine.vue delete mode 100644 packages/docs-site/src/components/IconGraph/IconGraph.vue create mode 100644 packages/docs-site/src/pages/_drafts/docs-home.astro diff --git a/packages/docs-site/astro.config.ts b/packages/docs-site/astro.config.ts index 12c441de..08374283 100644 --- a/packages/docs-site/astro.config.ts +++ b/packages/docs-site/astro.config.ts @@ -109,10 +109,6 @@ export default defineConfig({ { label: 'Get Started', items: [ - { - label: 'Home', - link: '/docs/', - }, { label: 'Quickstart', link: '/docs/get-started/quickstart/', diff --git a/packages/docs-site/package.json b/packages/docs-site/package.json index 278140e8..201c5cdc 100644 --- a/packages/docs-site/package.json +++ b/packages/docs-site/package.json @@ -40,6 +40,7 @@ "eslint-plugin-mdx": "^3.1.5", "less": "^4.2.0", "nanostores": "^0.10.3", + "postcss-nested": "^7.0.2", "sharp": "^0.33.4", "starlight-blog": "^0.11.1", "starlight-links-validator": "^0.10.1", diff --git a/packages/docs-site/src/postcss.config.cjs b/packages/docs-site/postcss.config.cjs similarity index 76% rename from packages/docs-site/src/postcss.config.cjs rename to packages/docs-site/postcss.config.cjs index aa25085f..ee7d634c 100644 --- a/packages/docs-site/src/postcss.config.cjs +++ b/packages/docs-site/postcss.config.cjs @@ -2,5 +2,6 @@ module.exports = { plugins: [ // require('autoprefixer'), // require('cssnano'), + require('postcss-nested'), ], }; diff --git a/packages/docs-site/public/_redirects b/packages/docs-site/public/_redirects index e69de29b..2ba047cf 100644 --- a/packages/docs-site/public/_redirects +++ b/packages/docs-site/public/_redirects @@ -0,0 +1 @@ +/docs/ /docs/get-started/quickstart/ diff --git a/packages/docs-site/src/components/CustomStarlightBanner.astro b/packages/docs-site/src/components/CustomStarlightBanner.astro index 651bbd97..385c99a1 100644 --- a/packages/docs-site/src/components/CustomStarlightBanner.astro +++ b/packages/docs-site/src/components/CustomStarlightBanner.astro @@ -15,15 +15,13 @@ const showDefaultBanner =
{banner &&
} {showDefaultBanner && ( - <> -
- ✨ If you've tried DMNO or looked through the docs,{" "} - - let us know - - what you think! -
- +
+ ✨ If you've tried DMNO or looked through the docs,{" "} + + let us know + + what you think! +
)}
diff --git a/packages/docs-site/src/components/Hero.astro b/packages/docs-site/src/components/Hero.astro index a75740b1..76a74f0f 100644 --- a/packages/docs-site/src/components/Hero.astro +++ b/packages/docs-site/src/components/Hero.astro @@ -57,8 +57,8 @@ const { heading, subheading } = Astro.props as Props; /* the "g" masking is cut off without some padding */ padding-bottom: 0.1em; - --color-one: var(--brand-pink); - --color-two: var(--brand-purple); + --color-one: var(--brand-pink--text); + --color-two: var(--brand-purple--text); background-color: var(--color-two); background: linear-gradient( diff --git a/packages/docs-site/src/components/IconGraph/AnimatedDot.vue b/packages/docs-site/src/components/IconGraph/AnimatedDot.vue deleted file mode 100644 index bd34ed5a..00000000 --- a/packages/docs-site/src/components/IconGraph/AnimatedDot.vue +++ /dev/null @@ -1,28 +0,0 @@ - - - diff --git a/packages/docs-site/src/components/IconGraph/ConnectionLine.vue b/packages/docs-site/src/components/IconGraph/ConnectionLine.vue deleted file mode 100644 index 9b267f1c..00000000 --- a/packages/docs-site/src/components/IconGraph/ConnectionLine.vue +++ /dev/null @@ -1,40 +0,0 @@ - - - diff --git a/packages/docs-site/src/components/IconGraph/IconGraph.vue b/packages/docs-site/src/components/IconGraph/IconGraph.vue deleted file mode 100644 index b6c62759..00000000 --- a/packages/docs-site/src/components/IconGraph/IconGraph.vue +++ /dev/null @@ -1,405 +0,0 @@ - - - - - diff --git a/packages/docs-site/src/components/LogoBar.astro b/packages/docs-site/src/components/LogoBar.astro index 17430443..bcc5c43c 100644 --- a/packages/docs-site/src/components/LogoBar.astro +++ b/packages/docs-site/src/components/LogoBar.astro @@ -13,6 +13,10 @@ gap: 40px; align-items: center; justify-content: center; + color: white; + html[data-theme="light"] & { + color: black; + } gap: 20px; --logo-size: 50px; @@ -29,14 +33,12 @@ grid-template-columns: 4fr 5fr; } */ - > div, - > a { - /* flex-grow: 1; */ + :global(> div), + :global(> a) { color: currentColor; /* background: red; */ - > svg { + :global(> svg) { display: block; - width: 100%; height: auto; max-height: var(--logo-size); min-width: var(--logo-size); diff --git a/packages/docs-site/src/components/ThemeSelect.vue b/packages/docs-site/src/components/ThemeSelect.vue index d3058c5d..3796bcc4 100644 --- a/packages/docs-site/src/components/ThemeSelect.vue +++ b/packages/docs-site/src/components/ThemeSelect.vue @@ -1,6 +1,7 @@ diff --git a/packages/docs-site/src/pages/docs/index.astro b/packages/docs-site/src/pages/docs/index.astro index 1f9df880..8a76e86e 100644 --- a/packages/docs-site/src/pages/docs/index.astro +++ b/packages/docs-site/src/pages/docs/index.astro @@ -1,404 +1,9 @@ --- -// ! THIS IS THE "DOCS" HOMEPAGE /docs/ -import DIcon from "@/components/DIcon.astro"; -import StarlightPage from "@astrojs/starlight/components/StarlightPage.astro"; -import { DmnoTileLogo } from "@dmno/ui-lib"; -import { Code } from "@astrojs/starlight/components"; -import ConfigExample from "@/components/homepage/ConfigExample.astro"; ---- - - -
-
- -
-

DMNO

-

- The missing middleware - for your configuration and secrets. -

-
- Get started -
- -
npx dmno init
- -
-
-
-
- -
- -
-
- DMNO -
-
-

Why DMNO (👂 domino) is different:

-
    -
  • 🦺 Type-safe env vars
  • -
  • ✅ Validation & coercion
  • -
  • ⛔️ Leak detection & prevention
  • -
  • 🛑 Log redaction
  • -
  • 🔍 HTTP interception
  • -
  • 🔄 Sync with multiple secrets managers
  • -
  • 🔌 Integrations for popular frameworks & platforms
  • -
-
-
-
-
-

Take control of your configuration & secrets.

-
    -
  • - Tired of juggling .env files, and sharing secrets over - Slack? -
  • -
  • Sick of manually managing secrets in your codebase?
  • -
  • Worried about a secret leaking?
  • -
  • - Had to redeploy your app because you forgot to add a config item? -
  • -
  • Have a monorepo with multiple apps that share config?
  • -
  • Regularly copying and pasting from your secrets manager?
  • -
-

...then DMNO is for you.

-
-
- DMNO -
-
-
-

Sample config file

- -
-
-
-
- -{/* hide site title */} - - - +--- + +

redirecting

diff --git a/packages/docs-site/src/style/global.less b/packages/docs-site/src/style/global.less index 93bf43cb..5f0f7299 100644 --- a/packages/docs-site/src/style/global.less +++ b/packages/docs-site/src/style/global.less @@ -31,7 +31,7 @@ h5 { :root { --cp-s: 89%; --cp-l: 65%; - --cp-l2: 55%; + --cp-l2: 50%; --cp-s-dark: 65%; --cp-l-dark: 10%; --cp-t1: 50%; diff --git a/packages/ui-lib/src/components/DotsLoader.vue b/packages/ui-lib/src/components/DotsLoader.vue index b9c63bda..e063f9a5 100644 --- a/packages/ui-lib/src/components/DotsLoader.vue +++ b/packages/ui-lib/src/components/DotsLoader.vue @@ -1,5 +1,5 @@