Merge pull request 'added .astro for typeform, embed typeform within page, changed cta to lead to inner page' (#84) from development_typeform_embed into development

Reviewed-on: tfgrid/www_projectinca#84
This commit is contained in:
mik-tf 2024-06-20 23:00:33 +00:00
commit d50573ada7
7 changed files with 37 additions and 10 deletions

View File

@ -0,0 +1,14 @@
---
---
<style>
#typeformsection {
height: 1000px;
width: 100%
}
</style>
<section>
<div id="typeformsection" data-tf-widget="SnfEE9pj"></div>
<script src="//embed.typeform.com/next/embed.js" is:inline></script>
</section>

View File

@ -23,7 +23,7 @@ export const headerData = {
href: getPermalink('/blog'), 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 = { export const footerData = {
@ -41,7 +41,7 @@ export const footerData = {
title: 'Join the Cloud', title: 'Join the Cloud',
links: [ links: [
{ text: 'Farming', href: '/farming' }, { 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' }, { text: 'Build INCA Nodes', href: 'https://manual.grid.tf/documentation/farmers/3node_building/3node_building.html' },
], ],
}, },

View File

@ -21,7 +21,7 @@ const metadata = {
{ {
variant: 'primary', variant: 'primary',
text: 'Get INCA Nodes', text: 'Get INCA Nodes',
href: 'https://csnkyhwp8b4.typeform.com/to/SnfEE9pj', href: '/typeform',
target: '_blank', target: '_blank',
icon: 'tabler:brand-minecraft', icon: 'tabler:brand-minecraft',
}, },

View File

@ -61,7 +61,7 @@ const metadata = {
callToAction: { callToAction: {
target: '_blank', target: '_blank',
text: 'Get INCA Nodes', text: 'Get INCA Nodes',
href: 'https://csnkyhwp8b4.typeform.com/to/SnfEE9pj', href: '/typeform',
}, },
}, },
{ {
@ -89,7 +89,7 @@ const metadata = {
callToAction: { callToAction: {
target: '_blank', target: '_blank',
text: 'Get INCA Nodes', text: 'Get INCA Nodes',
href: 'https://csnkyhwp8b4.typeform.com/to/SnfEE9pj', href: '/typeform',
}, },
hasRibbon: true, hasRibbon: true,
ribbonTitle: 'popular', ribbonTitle: 'popular',
@ -119,7 +119,7 @@ const metadata = {
callToAction: { callToAction: {
target: '_blank', target: '_blank',
text: 'Get INCA Nodes', text: 'Get INCA Nodes',
href: 'https://csnkyhwp8b4.typeform.com/to/SnfEE9pj', href: '/typeform',
}, },
}, },
]} ]}

View File

@ -34,7 +34,7 @@ const metadata = {
{ {
variant: 'primary', variant: 'primary',
text: 'Get INCA Nodes', text: 'Get INCA Nodes',
href: 'https://csnkyhwp8b4.typeform.com/to/SnfEE9pj', href: '/typeform',
target: '_blank', target: '_blank',
icon: 'tabler:brand-minecraft', icon: 'tabler:brand-minecraft',
}, },
@ -117,7 +117,7 @@ const metadata = {
variant: 'primary', variant: 'primary',
target: '_blank', target: '_blank',
text: 'Get INCA Nodes', text: 'Get INCA Nodes',
href: 'https://csnkyhwp8b4.typeform.com/to/SnfEE9pj', href: '/typeform',
icon: 'tabler:brand-minecraft', icon: 'tabler:brand-minecraft',
}, },
]} ]}
@ -359,7 +359,7 @@ const metadata = {
{ {
variant: 'primary', variant: 'primary',
text: 'Get INCA Nodes', text: 'Get INCA Nodes',
href: 'https://csnkyhwp8b4.typeform.com/to/SnfEE9pj', href: '/typeform',
target: '_blank', target: '_blank',
icon: 'tabler:brand-minecraft', icon: 'tabler:brand-minecraft',
}, },

View File

@ -325,7 +325,7 @@ const metadata = {
variant: 'primary', variant: 'primary',
target: '_blank', target: '_blank',
text: 'Get INCA Nodes', text: 'Get INCA Nodes',
href: 'https://csnkyhwp8b4.typeform.com/to/SnfEE9pj', href: '/typeform',
icon: 'tabler:brand-minecraft', icon: 'tabler:brand-minecraft',
}, },
]} ]}

13
src/pages/typeform.astro Normal file
View File

@ -0,0 +1,13 @@
---
import EmbedTypeform from '~/components/widgets/EmbedTypeform.astro';
import Layout from '~/layouts/PageLayout.astro';
const metadata = {
title: 'Typeform',
};
---
<Layout metadata={metadata}>
<EmbedTypeform />
</Layout>