From 643aea14626eb2902ec7ddde256e46a4776b5be6 Mon Sep 17 00:00:00 2001 From: 0xSage Date: Tue, 26 Sep 2023 11:54:41 +0800 Subject: [PATCH] docs: construction banner, changed cta btn --- docs/src/components/Homepage/banner.js | 48 ++--- docs/src/components/Homepage/hero.js | 12 +- docs/src/pages/index.js | 2 +- .../static/img/undraw_docusaurus_mountain.svg | 171 ------------------ docs/static/img/undraw_docusaurus_react.svg | 170 ----------------- docs/static/img/undraw_docusaurus_tree.svg | 40 ---- 6 files changed, 35 insertions(+), 408 deletions(-) delete mode 100644 docs/static/img/undraw_docusaurus_mountain.svg delete mode 100644 docs/static/img/undraw_docusaurus_react.svg delete mode 100644 docs/static/img/undraw_docusaurus_tree.svg diff --git a/docs/src/components/Homepage/banner.js b/docs/src/components/Homepage/banner.js index 43bd96711..24520e747 100644 --- a/docs/src/components/Homepage/banner.js +++ b/docs/src/components/Homepage/banner.js @@ -1,32 +1,32 @@ import React from "react"; import { XMarkIcon } from "@heroicons/react/20/solid"; +import { useColorMode } from "@docusaurus/theme-common"; export default function HomepageBanner() { - return ( -
-

- - GeneriCon 2023 - - Join us in Denver from June 7 – 9 to see what’s coming next  - - -

-
- + const { colorMode } = useColorMode(); + const bannerText = + "🚧 This site is under construction - expect breaking changes! 🚧"; + return colorMode === "dark" ? ( +
+ {bannerText} +
+ ) : ( +
+ ); } diff --git a/docs/src/components/Homepage/hero.js b/docs/src/components/Homepage/hero.js index 634d031b0..91be7b3b3 100644 --- a/docs/src/components/Homepage/hero.js +++ b/docs/src/components/Homepage/hero.js @@ -1,5 +1,5 @@ import React from "react"; -import { ChevronRightIcon } from "@heroicons/react/20/solid"; +import { ArrowTopRightOnSquareIcon } from "@heroicons/react/20/solid"; import { useColorMode } from "@docusaurus/theme-common"; import Dropdown from "@site/src/components/Elements/dropdown"; @@ -61,8 +61,16 @@ export default function HomepageHero() {
diff --git a/docs/src/pages/index.js b/docs/src/pages/index.js index 2c058280c..0f18218b5 100644 --- a/docs/src/pages/index.js +++ b/docs/src/pages/index.js @@ -19,7 +19,7 @@ export default function Home() { title={`${siteConfig.tagline}`} description="Description will go into a meta tag in " > - {/* */} +
diff --git a/docs/static/img/undraw_docusaurus_mountain.svg b/docs/static/img/undraw_docusaurus_mountain.svg deleted file mode 100644 index af961c49a..000000000 --- a/docs/static/img/undraw_docusaurus_mountain.svg +++ /dev/null @@ -1,171 +0,0 @@ - - Easy to Use - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/static/img/undraw_docusaurus_react.svg b/docs/static/img/undraw_docusaurus_react.svg deleted file mode 100644 index 94b5cf08f..000000000 --- a/docs/static/img/undraw_docusaurus_react.svg +++ /dev/null @@ -1,170 +0,0 @@ - - Powered by React - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/static/img/undraw_docusaurus_tree.svg b/docs/static/img/undraw_docusaurus_tree.svg deleted file mode 100644 index d9161d339..000000000 --- a/docs/static/img/undraw_docusaurus_tree.svg +++ /dev/null @@ -1,40 +0,0 @@ - - Focus on What Matters - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -