From fd6a08d54a4a764406e42b71360448d194e03f89 Mon Sep 17 00:00:00 2001 From: kristof de spiegeleer Date: Sun, 12 Jan 2025 12:09:51 +0100 Subject: [PATCH] s --- buildchoice/coown_navbar.ts | 2 +- develop.sh | 4 ++-- docs/owner/register.mdx | 18 ++++++++++++++++++ docs/owner/shareholder.md | 3 +++ navigation/navbar.ts | 2 +- src/components/Typeform.tsx | 25 +++++++++++++++++++++++++ src/theme/MDXComponents.js | 2 ++ 7 files changed, 52 insertions(+), 4 deletions(-) create mode 100644 docs/owner/register.mdx create mode 100644 src/components/Typeform.tsx diff --git a/buildchoice/coown_navbar.ts b/buildchoice/coown_navbar.ts index 1a779a5..790ada0 100644 --- a/buildchoice/coown_navbar.ts +++ b/buildchoice/coown_navbar.ts @@ -18,7 +18,7 @@ export const navbar: ThemeConfig['navbar'] = { type: 'docSidebar', sidebarId: 'ownerSidebar', position: 'left', - label: 'Shareholder', + label: 'Become a Shareholder', }, { type: 'docSidebar', diff --git a/develop.sh b/develop.sh index a994dbc..d196b05 100755 --- a/develop.sh +++ b/develop.sh @@ -9,8 +9,8 @@ echo "Docs directory: $script_dir" export NODE_OPTIONS=--openssl-legacy-provider -#cp buildchoice/navbar_investor.ts navigation/navbar.ts -#cp buildchoice/biz_docusaurus.config.ts docusaurus.config.ts +cp buildchoice/coown_navbar.ts navigation/navbar.ts +cp buildchoice/coown_docusaurus.config.ts docusaurus.config.ts npm run start -- --host 0.0.0.0 diff --git a/docs/owner/register.mdx b/docs/owner/register.mdx new file mode 100644 index 0000000..6522c32 --- /dev/null +++ b/docs/owner/register.mdx @@ -0,0 +1,18 @@ +--- +title: 'Register' +sidebar_position: 2 +hide_title: true +--- + +import TypeformEmbed from '@site/src/components/Typeform'; + + + + +### Please, register your interest. + + + + +> [please register your interest here](https://form.typeform.com/to/Iio1Lplg) + diff --git a/docs/owner/shareholder.md b/docs/owner/shareholder.md index 23771a2..f7e2aee 100644 --- a/docs/owner/shareholder.md +++ b/docs/owner/shareholder.md @@ -8,6 +8,9 @@ hide_title: true # Join the Veda Nile Cooperative +> [Register your interest here](https://form.typeform.com/to/Iio1Lplg) + + ## Cooperative Membership Opportunity - 4,000,000 digital cooperative shares available diff --git a/navigation/navbar.ts b/navigation/navbar.ts index 1a779a5..790ada0 100644 --- a/navigation/navbar.ts +++ b/navigation/navbar.ts @@ -18,7 +18,7 @@ export const navbar: ThemeConfig['navbar'] = { type: 'docSidebar', sidebarId: 'ownerSidebar', position: 'left', - label: 'Shareholder', + label: 'Become a Shareholder', }, { type: 'docSidebar', diff --git a/src/components/Typeform.tsx b/src/components/Typeform.tsx new file mode 100644 index 0000000..f8cd87a --- /dev/null +++ b/src/components/Typeform.tsx @@ -0,0 +1,25 @@ +import React, { useEffect } from 'react'; + +const TypeformEmbed = () => { + useEffect(() => { + // Dynamically load the Typeform script + const script = document.createElement('script'); + script.src = '//embed.typeform.com/next/embed.js'; + script.async = true; + document.body.appendChild(script); + + return () => { + // Clean up script when the component is unmounted + document.body.removeChild(script); + }; + }, []); + + return ( +
+ ); +}; + +export default TypeformEmbed; \ No newline at end of file diff --git a/src/theme/MDXComponents.js b/src/theme/MDXComponents.js index 8e60713..f2b6236 100644 --- a/src/theme/MDXComponents.js +++ b/src/theme/MDXComponents.js @@ -1,9 +1,11 @@ import React from 'react'; import MDXComponents from '@theme-original/MDXComponents'; import Highlight from '@/components/Highlight'; +import TypeformEmbed from '@/components/TypeForm'; export default { // Re-use the default mapping ...MDXComponents, Highlight, + TypeformEmbed, };