mirror of
https://github.com/datahub-project/datahub.git
synced 2025-08-15 12:46:53 +00:00
feat(docs): embed luma calendar widget (#9784)
This commit is contained in:
parent
8c9bf4e93d
commit
051b8ef103
@ -66,7 +66,7 @@ module.exports = {
|
|||||||
label: "Join Slack",
|
label: "Join Slack",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
href: "https://calendar.datahubproject.io/",
|
to: "/events",
|
||||||
label: "Events",
|
label: "Events",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import Layout from "@theme/Layout";
|
import Layout from "@theme/Layout";
|
||||||
import useDocusaurusContext from "@docusaurus/useDocusaurusContext";
|
import useDocusaurusContext from "@docusaurus/useDocusaurusContext";
|
||||||
import { useColorMode } from "@docusaurus/theme-common";
|
|
||||||
import Link from "@docusaurus/Link";
|
import Link from "@docusaurus/Link";
|
||||||
import ChampionQualityCardsSection from "./_components/ChampionQualityCardsSection"
|
import ChampionQualityCardsSection from "./_components/ChampionQualityCardsSection"
|
||||||
|
|
||||||
@ -352,10 +351,9 @@ const championSections = [
|
|||||||
];
|
];
|
||||||
|
|
||||||
const HeroImage = (props) => {
|
const HeroImage = (props) => {
|
||||||
const { colorMode } = useColorMode();
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<img style={{ marginBottom: "2rem", height: "14rem" }} src={`/img/champions/champions-logo-${colorMode}.png`} alt="DataHub Champions" {...props} />
|
<img style={{ marginBottom: "2rem", height: "14rem" }} src={`/img/champions/champions-logo-light.png`} alt="DataHub Champions" {...props} />
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
0
docs-website/src/pages/events/events.module.scss
Normal file
0
docs-website/src/pages/events/events.module.scss
Normal file
38
docs-website/src/pages/events/index.js
Normal file
38
docs-website/src/pages/events/index.js
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
import React from 'react';
|
||||||
|
import Layout from '@theme/Layout';
|
||||||
|
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
|
||||||
|
|
||||||
|
function Events() {
|
||||||
|
const { siteConfig = {} } = useDocusaurusContext();
|
||||||
|
|
||||||
|
return (
|
||||||
|
<Layout
|
||||||
|
title={siteConfig.tagline}
|
||||||
|
description="Description of the page">
|
||||||
|
<header className={"hero"}>
|
||||||
|
<div className="container">
|
||||||
|
<div className="hero__content">
|
||||||
|
<h1>DataHub Community Event Calendar</h1>
|
||||||
|
<div style={{ fontSize: "18px" }}>Subscribe to join our monthly events to network and learn more about our community!</div>
|
||||||
|
<div className="lumaCalendar" style={{ maxWidth: "60rem", margin: "3rem auto" }}>
|
||||||
|
<iframe
|
||||||
|
src="https://lu.ma/embed/calendar/cal-lom9HnTVnZkKsNh/events"
|
||||||
|
allowFullScreen={true}
|
||||||
|
aria-hidden="false"
|
||||||
|
tabIndex="0"
|
||||||
|
style={{
|
||||||
|
border:"1px solid #bfcbda88",
|
||||||
|
borderRadius:"10px",
|
||||||
|
width:"100%",
|
||||||
|
height:"600px",
|
||||||
|
}}
|
||||||
|
></iframe>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
</Layout>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
export default Events;
|
Loading…
x
Reference in New Issue
Block a user