This commit is contained in:
kristof de spiegeleer 2025-01-12 12:09:51 +01:00
parent d2cef59285
commit fd6a08d54a
7 changed files with 52 additions and 4 deletions

View File

@ -18,7 +18,7 @@ export const navbar: ThemeConfig['navbar'] = {
type: 'docSidebar', type: 'docSidebar',
sidebarId: 'ownerSidebar', sidebarId: 'ownerSidebar',
position: 'left', position: 'left',
label: 'Shareholder', label: 'Become a Shareholder',
}, },
{ {
type: 'docSidebar', type: 'docSidebar',

View File

@ -9,8 +9,8 @@ echo "Docs directory: $script_dir"
export NODE_OPTIONS=--openssl-legacy-provider export NODE_OPTIONS=--openssl-legacy-provider
#cp buildchoice/navbar_investor.ts navigation/navbar.ts cp buildchoice/coown_navbar.ts navigation/navbar.ts
#cp buildchoice/biz_docusaurus.config.ts docusaurus.config.ts cp buildchoice/coown_docusaurus.config.ts docusaurus.config.ts
npm run start -- --host 0.0.0.0 npm run start -- --host 0.0.0.0

18
docs/owner/register.mdx Normal file
View File

@ -0,0 +1,18 @@
---
title: 'Register'
sidebar_position: 2
hide_title: true
---
import TypeformEmbed from '@site/src/components/Typeform';
<TypeformEmbed />
### Please, register your interest.
> [please register your interest here](https://form.typeform.com/to/Iio1Lplg)

View File

@ -8,6 +8,9 @@ hide_title: true
# Join the Veda Nile Cooperative # Join the Veda Nile Cooperative
> [Register your interest here](https://form.typeform.com/to/Iio1Lplg)
## Cooperative Membership Opportunity ## Cooperative Membership Opportunity
- 4,000,000 digital cooperative shares available - 4,000,000 digital cooperative shares available

View File

@ -18,7 +18,7 @@ export const navbar: ThemeConfig['navbar'] = {
type: 'docSidebar', type: 'docSidebar',
sidebarId: 'ownerSidebar', sidebarId: 'ownerSidebar',
position: 'left', position: 'left',
label: 'Shareholder', label: 'Become a Shareholder',
}, },
{ {
type: 'docSidebar', type: 'docSidebar',

View File

@ -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 (
<div
data-tf-live="01JHCZG565JGFSD0MAEH2DCA7S"
style={{ width: '100%', height: '500px' }}
></div>
);
};
export default TypeformEmbed;

View File

@ -1,9 +1,11 @@
import React from 'react'; import React from 'react';
import MDXComponents from '@theme-original/MDXComponents'; import MDXComponents from '@theme-original/MDXComponents';
import Highlight from '@/components/Highlight'; import Highlight from '@/components/Highlight';
import TypeformEmbed from '@/components/TypeForm';
export default { export default {
// Re-use the default mapping // Re-use the default mapping
...MDXComponents, ...MDXComponents,
Highlight, Highlight,
TypeformEmbed,
}; };