From fd3b1657fdb06feee1d6b315599b29a23b9a10ce Mon Sep 17 00:00:00 2001 From: Mik-TF Date: Thu, 20 Jun 2024 18:55:09 -0400 Subject: [PATCH] added .astro for typeform, embed typeform within page, changed cta to lead to inner page --- src/components/widgets/EmbedTypeform.astro | 14 ++++++++++++++ src/navigation.js | 4 ++-- src/pages/ecosystem.astro | 2 +- src/pages/farming.astro | 6 +++--- src/pages/index.astro | 6 +++--- src/pages/technology.astro | 2 +- src/pages/typeform.astro | 13 +++++++++++++ 7 files changed, 37 insertions(+), 10 deletions(-) create mode 100644 src/components/widgets/EmbedTypeform.astro create mode 100644 src/pages/typeform.astro diff --git a/src/components/widgets/EmbedTypeform.astro b/src/components/widgets/EmbedTypeform.astro new file mode 100644 index 0000000..d6d353e --- /dev/null +++ b/src/components/widgets/EmbedTypeform.astro @@ -0,0 +1,14 @@ +--- +--- + + + +
+
+ +
diff --git a/src/navigation.js b/src/navigation.js index eb74606..22a5e54 100644 --- a/src/navigation.js +++ b/src/navigation.js @@ -23,7 +23,7 @@ export const headerData = { href: getPermalink('/blog'), }, ], - actions: [{ text: 'Get INCA Nodes', href: 'https://csnkyhwp8b4.typeform.com/to/SnfEE9pj', target: '_blank' }], + actions: [{ text: 'Get INCA Nodes', href: '/typeform', target: '_blank' }], }; export const footerData = { @@ -41,7 +41,7 @@ export const footerData = { title: 'Join the Cloud', links: [ { text: 'Farming', href: '/farming' }, - { text: 'Get INCA Nodes', href: 'https://csnkyhwp8b4.typeform.com/to/SnfEE9pj' }, + { text: 'Get INCA Nodes', href: '/typeform' }, { text: 'Build INCA Nodes', href: 'https://manual.grid.tf/documentation/farmers/3node_building/3node_building.html' }, ], }, diff --git a/src/pages/ecosystem.astro b/src/pages/ecosystem.astro index 6f4a1cb..d64a0e6 100644 --- a/src/pages/ecosystem.astro +++ b/src/pages/ecosystem.astro @@ -21,7 +21,7 @@ const metadata = { { variant: 'primary', text: 'Get INCA Nodes', - href: 'https://csnkyhwp8b4.typeform.com/to/SnfEE9pj', + href: '/typeform', target: '_blank', icon: 'tabler:brand-minecraft', }, diff --git a/src/pages/farming.astro b/src/pages/farming.astro index ff004bd..5e04096 100644 --- a/src/pages/farming.astro +++ b/src/pages/farming.astro @@ -61,7 +61,7 @@ const metadata = { callToAction: { target: '_blank', text: 'Get INCA Nodes', - href: 'https://csnkyhwp8b4.typeform.com/to/SnfEE9pj', + href: '/typeform', }, }, { @@ -89,7 +89,7 @@ const metadata = { callToAction: { target: '_blank', text: 'Get INCA Nodes', - href: 'https://csnkyhwp8b4.typeform.com/to/SnfEE9pj', + href: '/typeform', }, hasRibbon: true, ribbonTitle: 'popular', @@ -119,7 +119,7 @@ const metadata = { callToAction: { target: '_blank', text: 'Get INCA Nodes', - href: 'https://csnkyhwp8b4.typeform.com/to/SnfEE9pj', + href: '/typeform', }, }, ]} diff --git a/src/pages/index.astro b/src/pages/index.astro index 28c36da..1e4c5ef 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -34,7 +34,7 @@ const metadata = { { variant: 'primary', text: 'Get INCA Nodes', - href: 'https://csnkyhwp8b4.typeform.com/to/SnfEE9pj', + href: '/typeform', target: '_blank', icon: 'tabler:brand-minecraft', }, @@ -117,7 +117,7 @@ const metadata = { variant: 'primary', target: '_blank', text: 'Get INCA Nodes', - href: 'https://csnkyhwp8b4.typeform.com/to/SnfEE9pj', + href: '/typeform', icon: 'tabler:brand-minecraft', }, ]} @@ -359,7 +359,7 @@ const metadata = { { variant: 'primary', text: 'Get INCA Nodes', - href: 'https://csnkyhwp8b4.typeform.com/to/SnfEE9pj', + href: '/typeform', target: '_blank', icon: 'tabler:brand-minecraft', }, diff --git a/src/pages/technology.astro b/src/pages/technology.astro index c6274ae..466102e 100644 --- a/src/pages/technology.astro +++ b/src/pages/technology.astro @@ -325,7 +325,7 @@ const metadata = { variant: 'primary', target: '_blank', text: 'Get INCA Nodes', - href: 'https://csnkyhwp8b4.typeform.com/to/SnfEE9pj', + href: '/typeform', icon: 'tabler:brand-minecraft', }, ]} diff --git a/src/pages/typeform.astro b/src/pages/typeform.astro new file mode 100644 index 0000000..aa88423 --- /dev/null +++ b/src/pages/typeform.astro @@ -0,0 +1,13 @@ +--- + +import EmbedTypeform from '~/components/widgets/EmbedTypeform.astro'; +import Layout from '~/layouts/PageLayout.astro'; + +const metadata = { + title: 'Typeform', +}; +--- + + + + \ No newline at end of file