Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 14 additions & 6 deletions src/pages/groot.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,16 @@ export default function Groot() {
console.log('free')
scrollToSection('sectionDownload')
}
const handleClickPro = () => {
console.log('Pro')
const handleClickContact = () => {
console.log('Contact')
window.location.href = 'mailto:license@aurynrobotics.com'
}

const handleClickCheckout = () => {
console.log('Checkout')
window.location.href = "javascript:void(0)"
}

const obj = [
{
name: "Basic",
Expand All @@ -50,8 +56,8 @@ export default function Groot() {
"Interactive real-time debugger",
"Technical support",
],
btn: "Contact",
onclick: () => handleClickPro()
btn: "Checkout",
onclick: () => handleClickCheckout()
},
{
name: "PRO (source code)",
Expand All @@ -63,7 +69,7 @@ export default function Groot() {
"Site license with unlimited number of seats.",
],
btn: "Contact",
onclick:() => handleClickPro()
onclick:() => handleClickContact()
},
];
console.log(obj);
Expand Down Expand Up @@ -286,8 +292,10 @@ export default function Groot() {
<div style={{ display: "flex", justifyContent: "center" }}>
<button
id='btn'
data-mooform-id='419144d7-9877-4876-bcfc-d1e1f0b6a2ad'
data-cb-type = "checkout"
data-cb-item-0 = "Groot2-License-EUR-Yearly"
className='button button--primary button--md'
data-cb-item-0-quantity = "1"
onClick={item.onclick}>
{item.btn}
</button>
Expand Down
1 change: 1 addition & 0 deletions src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ function Home() {
src="https://cdn.stat-track.com/statics/moosend-tracking.min.js"
data-website-id="419144d798774876bcfcd1e1f0b6a2ad"
></script>
<script src="https://js.chargebee.com/v2/chargebee.js" data-cb-site="aurynrobotics" ></script>
</Head>
<div className={clsx("hero hero--light", styles.heroBanner)}>
<div className="container ">
Expand Down