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, };