From ce1771166e244cab6753aa44236700590a8562d0 Mon Sep 17 00:00:00 2001 From: Phil Miller Date: Wed, 25 Dec 2024 00:18:43 -0500 Subject: [PATCH] WIP new animated graph on homepage (#171) * WIP new animated graph on homepage * more WIP, remove what is and merge with docs home * WIP: remove beta banner, add dynamic test component and use that on mobile * more wip on homepage * more polishing on homepage * wrapping up new homepage --------- Co-authored-by: Theo Ephraim --- .../src/components/layout/HeaderBar.vue | 1 - packages/docs-site/.eslintrc.cjs | 5 +- packages/docs-site/astro.config.ts | 4 - packages/docs-site/package.json | 3 +- .../docs-site/{src => }/postcss.config.cjs | 1 + packages/docs-site/public/_redirects | 1 + .../docs-site/src/components/CTABlock.astro | 164 ++++--- .../components/CustomStarlightBanner.astro | 32 +- .../components/CustomStarlightHeader.astro | 6 +- .../docs-site/src/components/EmailSignup.vue | 104 ++--- packages/docs-site/src/components/Hero.astro | 48 ++- .../src/components/LandingPageSection.astro | 60 +-- .../docs-site/src/components/LogoBar.astro | 54 +++ .../docs-site/src/components/ThemeSelect.vue | 41 +- .../docs-site/src/components/TileButton.vue | 178 ++++++++ .../components/homepage/ConfigExample.astro | 6 + .../components/homepage/IntegrationTile.vue | 198 +++++++++ .../components/homepage/IntegrationsHero.vue | 236 ++++++++++ .../src/components/homepage/config-example.ts | 36 ++ .../src/components/layouts/LandingPage.astro | 80 ++-- .../src/components/mailerlite/SignUp.astro | 18 - .../docs/docs/get-started/quickstart.mdx | 25 +- .../src/pages/_drafts/docs-home.astro | 404 ++++++++++++++++++ packages/docs-site/src/pages/docs/index.astro | 371 +--------------- packages/docs-site/src/pages/index.astro | 146 +++---- packages/docs-site/src/style/global.less | 19 +- packages/docs-site/tsconfig.json | 5 +- .../ui-lib/src/components/DmnoTileLogo.vue | 2 +- packages/ui-lib/src/components/DotsLoader.vue | 21 +- pnpm-lock.yaml | 232 +++++----- 30 files changed, 1600 insertions(+), 901 deletions(-) rename packages/docs-site/{src => }/postcss.config.cjs (76%) create mode 100644 packages/docs-site/src/components/LogoBar.astro create mode 100644 packages/docs-site/src/components/TileButton.vue create mode 100644 packages/docs-site/src/components/homepage/ConfigExample.astro create mode 100644 packages/docs-site/src/components/homepage/IntegrationTile.vue create mode 100644 packages/docs-site/src/components/homepage/IntegrationsHero.vue create mode 100644 packages/docs-site/src/components/homepage/config-example.ts delete mode 100644 packages/docs-site/src/components/mailerlite/SignUp.astro create mode 100644 packages/docs-site/src/pages/_drafts/docs-home.astro diff --git a/packages/dev-ui/src/components/layout/HeaderBar.vue b/packages/dev-ui/src/components/layout/HeaderBar.vue index c9a2df7f..705a058c 100644 --- a/packages/dev-ui/src/components/layout/HeaderBar.vue +++ b/packages/dev-ui/src/components/layout/HeaderBar.vue @@ -23,7 +23,6 @@ import ThemeToggle from './ThemeToggle.vue'; - diff --git a/packages/docs-site/src/components/CustomStarlightBanner.astro b/packages/docs-site/src/components/CustomStarlightBanner.astro index 47845ccf..385c99a1 100644 --- a/packages/docs-site/src/components/CustomStarlightBanner.astro +++ b/packages/docs-site/src/components/CustomStarlightBanner.astro @@ -8,26 +8,24 @@ const showDefaultBanner = Astro.url.pathname.startsWith("/docs/") && !["/docs/"].includes(Astro.url.pathname); --- -{ (banner || showDefaultBanner) && -
-
- {banner &&
} - { - showDefaultBanner && ( - <> -
- 🚧 DMNO is still in beta! Use with caution! -
+ +{ + (banner || showDefaultBanner) && ( +
+
+ {banner &&
} + {showDefaultBanner && (
✨ If you've tried DMNO or looked through the docs,{" "} - let us know + + 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 f7984ab8..76a74f0f 100644 --- a/packages/docs-site/src/components/Hero.astro +++ b/packages/docs-site/src/components/Hero.astro @@ -1,6 +1,5 @@ --- - -interface Props{ +interface Props { heading?: string; subheading?: string; image?: string; @@ -12,28 +11,29 @@ const { heading, subheading } = Astro.props as Props;

{heading}

{subheading}

+
diff --git a/packages/docs-site/src/components/LandingPageSection.astro b/packages/docs-site/src/components/LandingPageSection.astro index 47b0dcaa..f869cb64 100644 --- a/packages/docs-site/src/components/LandingPageSection.astro +++ b/packages/docs-site/src/components/LandingPageSection.astro @@ -1,41 +1,45 @@ --- -import CTABlock from './CTABlock.astro'; +import CTABlock from "./CTABlock.astro"; interface Props { - title?: string, - imgPath?: string, - imgAlt?: string, - imgDescription?: string, - ctaLink?: string, - ctaText?: string, + title?: string; + imgPath?: string; + imgAlt?: string; + imgDescription?: string; + ctaLink?: string; + ctaText?: string; + subheader?: string; } -const { title, imgPath, imgAlt, imgDescription, ctaLink } = Astro.props as Props; +const { title, imgPath, imgAlt, imgDescription, ctaLink, subheader } = + Astro.props as Props; ---
- { title &&

{title}

} - { imgPath &&
- {imgAlt} -
{imgDescription}
-
} - + {title &&

{title}

} + {subheader &&

{subheader}

} + { + imgPath && ( +
+ {imgAlt} +
{imgDescription}
+
+ ) + } + - - { ctaLink && } + + {ctaLink && }
diff --git a/packages/docs-site/src/components/LogoBar.astro b/packages/docs-site/src/components/LogoBar.astro new file mode 100644 index 00000000..bcc5c43c --- /dev/null +++ b/packages/docs-site/src/components/LogoBar.astro @@ -0,0 +1,54 @@ +--- + +--- + +
+ +
+ + 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 @@