From 051b8ef10326c4c77cd92bc014f7956f70abcedd Mon Sep 17 00:00:00 2001 From: Hyejin Yoon <0327jane@gmail.com> Date: Sat, 10 Feb 2024 04:43:40 +0900 Subject: [PATCH] feat(docs): embed luma calendar widget (#9784) --- docs-website/docusaurus.config.js | 2 +- docs-website/src/pages/champions/index.js | 4 +- .../src/pages/events/events.module.scss | 0 docs-website/src/pages/events/index.js | 38 +++++++++++++++++++ 4 files changed, 40 insertions(+), 4 deletions(-) create mode 100644 docs-website/src/pages/events/events.module.scss create mode 100644 docs-website/src/pages/events/index.js diff --git a/docs-website/docusaurus.config.js b/docs-website/docusaurus.config.js index 6138f33244..423096544a 100644 --- a/docs-website/docusaurus.config.js +++ b/docs-website/docusaurus.config.js @@ -66,7 +66,7 @@ module.exports = { label: "Join Slack", }, { - href: "https://calendar.datahubproject.io/", + to: "/events", label: "Events", }, { diff --git a/docs-website/src/pages/champions/index.js b/docs-website/src/pages/champions/index.js index 7109edde6a..41d1e48ef6 100644 --- a/docs-website/src/pages/champions/index.js +++ b/docs-website/src/pages/champions/index.js @@ -1,7 +1,6 @@ import React from "react"; import Layout from "@theme/Layout"; import useDocusaurusContext from "@docusaurus/useDocusaurusContext"; -import { useColorMode } from "@docusaurus/theme-common"; import Link from "@docusaurus/Link"; import ChampionQualityCardsSection from "./_components/ChampionQualityCardsSection" @@ -352,10 +351,9 @@ const championSections = [ ]; const HeroImage = (props) => { - const { colorMode } = useColorMode(); return ( <> - + > ); }; diff --git a/docs-website/src/pages/events/events.module.scss b/docs-website/src/pages/events/events.module.scss new file mode 100644 index 0000000000..e69de29bb2 diff --git a/docs-website/src/pages/events/index.js b/docs-website/src/pages/events/index.js new file mode 100644 index 0000000000..0e2b4ee632 --- /dev/null +++ b/docs-website/src/pages/events/index.js @@ -0,0 +1,38 @@ +import React from 'react'; +import Layout from '@theme/Layout'; +import useDocusaurusContext from '@docusaurus/useDocusaurusContext'; + +function Events() { + const { siteConfig = {} } = useDocusaurusContext(); + + return ( + + + + + DataHub Community Event Calendar + Subscribe to join our monthly events to network and learn more about our community! + + + + + + + + ); +} + +export default Events;