diff --git a/docusaurus.config.js b/docusaurus.config.js index 6a794e4a5..46ae82c84 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -141,6 +141,7 @@ module.exports = { { href: 'https://opencollective.com/single-spa', label: 'Donate' }, { href: 'https://github.com/single-spa/single-spa', label: 'GitHub' }, { to: 'languages', label: '简Жहि Languages' }, + { to: "https://baseplate.cloud", label: "Deploy", position: "right" } ], }, prismTheme: require('prism-react-renderer/themes/vsDark'), diff --git a/src/components/HomeSplash/index.js b/src/components/HomeSplash/index.js index 0b3890e9a..fb70d9d00 100644 --- a/src/components/HomeSplash/index.js +++ b/src/components/HomeSplash/index.js @@ -23,8 +23,8 @@ export const HomeSplash = () => { - Official Courses + to="https://baseplate.cloud"> + Baseplate Hosting typeof localStorage !== 'undefined' ? localStorage.getItem("hide-workshop-banner") !== "true" : false) + const [showBaseplateBanner, setShowBaseplateBanner] = useState(() => typeof localStorage !== 'undefined' ? localStorage.getItem("hide-baseplate-banner") !== "true" : false) if (!footer) { return null; } useEffect(() => { - if (showWorkshopBanner) { - localStorage.removeItem('hide-workshop-banner') + if (showBaseplateBanner) { + localStorage.removeItem('hide-baseplate-banner') } else { - localStorage.setItem('hide-workshop-banner', true) + localStorage.setItem('hide-baseplate-banner', true) } - }, [showWorkshopBanner]) + }, [showBaseplateBanner]) const { copyright, links = [], logo } = footer; @@ -108,17 +108,17 @@ function Footer() { Originally developed at Canopy {copyright && copyright} - {showWorkshopBanner && + {showBaseplateBanner &&