Skip to content

Commit 863c72b

Browse files
committed
WIP
1 parent a3dfa50 commit 863c72b

File tree

2 files changed

+15
-6
lines changed

2 files changed

+15
-6
lines changed

src/pages/groot.js

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,16 @@ export default function Groot() {
2424
console.log('free')
2525
scrollToSection('sectionDownload')
2626
}
27-
const handleClickPro = () => {
28-
console.log('Pro')
27+
const handleClickContact = () => {
28+
console.log('Contact')
2929
window.location.href = 'mailto:[email protected]'
3030
}
31+
32+
const handleClickCheckout = () => {
33+
console.log('Checkout')
34+
window.location.href = "javascript:void(0)"
35+
}
36+
3137
const obj = [
3238
{
3339
name: "Basic",
@@ -50,8 +56,8 @@ export default function Groot() {
5056
"Interactive real-time debugger",
5157
"Technical support",
5258
],
53-
btn: "Contact",
54-
onclick: () => handleClickPro()
59+
btn: "Checkout",
60+
onclick: () => handleClickCheckout()
5561
},
5662
{
5763
name: "PRO (source code)",
@@ -63,7 +69,7 @@ export default function Groot() {
6369
"Site license with unlimited number of seats.",
6470
],
6571
btn: "Contact",
66-
onclick:() => handleClickPro()
72+
onclick:() => handleClickContact()
6773
},
6874
];
6975
console.log(obj);
@@ -286,8 +292,10 @@ export default function Groot() {
286292
<div style={{ display: "flex", justifyContent: "center" }}>
287293
<button
288294
id='btn'
289-
data-mooform-id='419144d7-9877-4876-bcfc-d1e1f0b6a2ad'
295+
data-cb-type = "checkout"
296+
data-cb-item-0 = "Groot2-License-EUR-Yearly"
290297
className='button button--primary button--md'
298+
data-cb-item-0-quantity = "1"
291299
onClick={item.onclick}>
292300
{item.btn}
293301
</button>

src/pages/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ function Home() {
3535
src="https://cdn.stat-track.com/statics/moosend-tracking.min.js"
3636
data-website-id="419144d798774876bcfcd1e1f0b6a2ad"
3737
></script>
38+
<script src="https://js.chargebee.com/v2/chargebee.js" data-cb-site="aurynrobotics" ></script>
3839
</Head>
3940
<div className={clsx("hero hero--light", styles.heroBanner)}>
4041
<div className="container ">

0 commit comments

Comments
 (0)