From a8daee3bffd8f53d2c1a0cad99733891be56abd8 Mon Sep 17 00:00:00 2001 From: Tim McMackin Date: Tue, 16 Jan 2024 09:15:53 -0500 Subject: [PATCH 01/11] Remove calendly (#265) * Remove Calendly * Tighten spacing on home page --- docusaurus.config.js | 2 +- package-lock.json | 14 -------- package.json | 1 - src/components/BuildSection/styles.module.css | 1 - src/components/CalendlyEmbed.jsx | 36 ------------------- src/pages/index.js | 6 ---- 6 files changed, 1 insertion(+), 59 deletions(-) delete mode 100644 src/components/CalendlyEmbed.jsx diff --git a/docusaurus.config.js b/docusaurus.config.js index b6195480e..26b5ba1fc 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -22,7 +22,7 @@ img-src 'self' https://*.googletagmanager.com https://*.google-analytics.com dat media-src 'self'; form-action 'self'; connect-src 'self' https://*.algolia.net https://*.algolianet.com https://*.googletagmanager.com https://*.google-analytics.com https://*.analytics.google.com; -frame-src https://tezosbot.vercel.app https://calendly.com/ lucid.app;`; +frame-src https://tezosbot.vercel.app lucid.app;`; /** @type {import('@docusaurus/types').Config} */ const config = { diff --git a/package-lock.json b/package-lock.json index 037d12193..2b672c0b9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20,7 +20,6 @@ "plugin-image-zoom": "github:flexanalytics/plugin-image-zoom", "prism-react-renderer": "1.3.5", "react": "18.2", - "react-calendly": "4.3.0", "react-dom": "18.2", "rehype-katex": "7.0.0", "remark-math": "6.0.0", @@ -14204,19 +14203,6 @@ "node": ">=0.10.0" } }, - "node_modules/react-calendly": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/react-calendly/-/react-calendly-4.3.0.tgz", - "integrity": "sha512-JFZzYhyJBaoZDseB3UqzeOx1rbzCK24nr5pqH/6zJEh7CZ/pn5R49rkIJ0g5E7j5WQ3K7xBSgBD7WgM36v3gZw==", - "engines": { - "node": ">=8", - "npm": ">=5" - }, - "peerDependencies": { - "react": ">=16.8.0", - "react-dom": ">=16.8.0" - } - }, "node_modules/react-dev-utils": { "version": "12.0.1", "resolved": "https://registry.npmjs.org/react-dev-utils/-/react-dev-utils-12.0.1.tgz", diff --git a/package.json b/package.json index 695725b0d..de6a30869 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,6 @@ "plugin-image-zoom": "github:flexanalytics/plugin-image-zoom", "prism-react-renderer": "1.3.5", "react": "18.2", - "react-calendly": "4.3.0", "react-dom": "18.2", "rehype-katex": "7.0.0", "remark-math": "6.0.0", diff --git a/src/components/BuildSection/styles.module.css b/src/components/BuildSection/styles.module.css index f8a6b35ca..b6943967c 100644 --- a/src/components/BuildSection/styles.module.css +++ b/src/components/BuildSection/styles.module.css @@ -6,7 +6,6 @@ height: auto; padding: 100px 81px; background: #F2F3F7; - margin-top: 90px; } .container { diff --git a/src/components/CalendlyEmbed.jsx b/src/components/CalendlyEmbed.jsx deleted file mode 100644 index c0ceab351..000000000 --- a/src/components/CalendlyEmbed.jsx +++ /dev/null @@ -1,36 +0,0 @@ -import React, { useState, useEffect } from 'react'; -import { InlineWidget } from 'react-calendly'; - -export default function CalendlyEmbed() { - const url = 'https://calendly.com/developer-success-on-tezos/15min'; - const [isMobile, setIsMobile] = useState(false); - - useEffect(() => { - const handleResize = () => { - setIsMobile(window.innerWidth < 1000); - }; - window.addEventListener('resize', handleResize); - handleResize(); - return () => window.removeEventListener('resize', handleResize); - }, []); - - return ( -
- {isMobile ? ( - - ) : ( - - )} -
- ); -} diff --git a/src/pages/index.js b/src/pages/index.js index d23bdbaef..36ff855e1 100644 --- a/src/pages/index.js +++ b/src/pages/index.js @@ -3,7 +3,6 @@ import clsx from 'clsx'; import useDocusaurusContext from '@docusaurus/useDocusaurusContext'; import Layout from '@theme/Layout'; import HomepageFeatures from '@site/src/components/HomepageFeatures'; -import CalendlyEmbed from '@site/src/components/CalendlyEmbed.jsx'; import styles from './index.module.css'; import BuildSection from '@site/src/components/BuildSection'; import Footer from '@site/src/components/Footer'; @@ -30,11 +29,6 @@ export default function Home() {
-
-

We are here for you

-

Book a 15 min, 1 to 1 session hosted by the TriliTech Developer Success team to discuss and answer your technical questions.

-
-