@@ -11,7 +11,7 @@ import clsx from "clsx";
11
11
import EditorVideo from "@site/static/img/groot2_editor.mp4" ;
12
12
import MonitorVideo from "@site/static/img/groot2_monitor.mp4" ;
13
13
import LogVideo from "@site/static/img/groot2_log.mp4" ;
14
- import ContactFormModal from "../components/ContactFormModal" ;
14
+ import ContactUSFormModal from "../components/ContactFormModal" ;
15
15
16
16
function Check ( props ) {
17
17
return < img src = { useBaseUrl ( "img/check.png" ) } width = '15' alt = 'yes' /> ;
@@ -23,7 +23,7 @@ function Cross(props) {
23
23
export default function Groot ( ) {
24
24
25
25
const [ chargebeeInitialized , setChargebeeInitialized ] = useState ( false ) ;
26
- const [ open , setOpen ] = useState ( false ) ;
26
+ const [ openContactUsModal , setOpenContactUsModal ] = useState ( false ) ;
27
27
28
28
useEffect ( ( ) => {
29
29
if ( ! chargebeeInitialized ) {
@@ -55,11 +55,17 @@ export default function Groot() {
55
55
console . log ( 'free' )
56
56
scrollToSection ( 'sectionDownload' )
57
57
}
58
+
58
59
const handleClickPro = ( ) => {
59
60
console . log ( 'Pro' )
60
- setOpen ( true )
61
- // window.location.href = 'mailto:[email protected] '
62
61
} ;
62
+
63
+ const handleClickContact = ( ) => {
64
+ console . log ( 'contact' )
65
+ setOpenContactUsModal ( true )
66
+ // window.location.href = 'mailto:[email protected] '
67
+ }
68
+
63
69
const obj = [
64
70
{
65
71
name : "Basic" ,
@@ -95,7 +101,7 @@ export default function Groot() {
95
101
"Site license with unlimited number of seats." ,
96
102
] ,
97
103
btn : "Contact us" ,
98
- onclick :( ) => handleClickPro ( )
104
+ onclick :( ) => handleClickContact ( )
99
105
} ,
100
106
] ;
101
107
console . log ( obj ) ;
@@ -150,23 +156,15 @@ export default function Groot() {
150
156
}
151
157
} ;
152
158
153
-
154
- useEffect ( ( ) => {
155
- if ( open ) {
156
- document . body . style . overflow = "hidden"
157
- } else {
158
- document . body . style . overflow = "auto"
159
- }
160
- } , [ open ] )
161
-
159
+ const handleCloseUsModal = ( ) => setOpenContactUsModal ( false )
162
160
163
161
return (
164
162
< >
165
163
< Layout title = 'Groot' description = 'Groot Editor' >
166
164
{ /* groot intro */ }
167
- {
168
- open && < ContactFormModal handleClose = { ( ) => setOpen ( false ) } />
169
- }
165
+ { openContactUsModal && (
166
+ < ContactUSFormModal handleClose = { handleCloseUsModal } />
167
+ ) }
170
168
< div className = { clsx ( "hero hero--dark" , styles . heroBanner ) } >
171
169
< div className = 'container ' >
172
170
< div className = 'row align-items-center' >
@@ -183,6 +181,11 @@ export default function Groot() {
183
181
className = 'button button--primary button--lg' >
184
182
Download
185
183
</ button >
184
+ < button
185
+ onClick = { ( ) => handleClickContact ( ) }
186
+ className = 'button button--primary button--lg' >
187
+ Contact us
188
+ </ button >
186
189
</ div >
187
190
</ div >
188
191
< div className = 'col col--6' >
0 commit comments