1- import React from " react" ;
2- import Layout from " ../../components/Layout" ;
3- import SEO from " ../../components/SEO" ;
4- import addToMailchimp from " gatsby-plugin-mailchimp" ;
1+ import React from ' react' ;
2+ import Layout from ' ../../components/Layout' ;
3+ import SEO from ' ../../components/SEO' ;
4+ import addToMailchimp from ' gatsby-plugin-mailchimp' ;
55
66class ContactPage extends React . Component {
77 state = {
88 name : null ,
9- email : null
9+ email : null ,
1010 } ;
1111
1212 _handleChange = e => {
1313 console . log ( {
14- [ `${ e . target . name } ` ] : e . target . value
14+ [ `${ e . target . name } ` ] : e . target . value ,
1515 } ) ;
1616 this . setState ( {
17- [ `${ e . target . name } ` ] : e . target . value
17+ [ `${ e . target . name } ` ] : e . target . value ,
1818 } ) ;
1919 } ;
2020
2121 _handleSubmit = e => {
2222 e . preventDefault ( ) ;
2323
24- console . log ( " submit" , this . state ) ;
24+ console . log ( ' submit' , this . state ) ;
2525
2626 addToMailchimp ( this . state . email , this . state )
2727 . then ( ( { msg, result } ) => {
28- console . log ( " msg" , `${ result } : ${ msg } ` ) ;
28+ console . log ( ' msg' , `${ result } : ${ msg } ` ) ;
2929
30- if ( result !== " success" ) {
30+ if ( result !== ' success' ) {
3131 throw msg ;
3232 }
3333 alert ( msg ) ;
3434 } )
3535 . catch ( err => {
36- console . log ( " err" , err ) ;
36+ console . log ( ' err' , err ) ;
3737 alert ( err ) ;
3838 } ) ;
3939 } ;
@@ -47,17 +47,17 @@ class ContactPage extends React.Component {
4747 < div class = "container" >
4848 < h1 > Contact us now!</ h1 >
4949 < p class = "text-color" >
50- You're interested about{ " " }
50+ You're interested about{ ' ' }
5151 < a href = "https://github.com/secureCodeBox" > secureCodeBox</ a > or
52- security in generell ? Subscribe our newsletter and get in touch
52+ security in general ? Subscribe our newsletter and get in touch
5353 with us. We'll keep you up to date.
5454 </ p >
5555 < p class = "text-color" >
56- You want hands on? Checkout our{ " " }
56+ You want hands on? Checkout our{ ' ' }
5757 < a href = "https://github.com/secureCodeBox/secureCodeBox" >
5858 Git repository
59- </ a > { " " }
60- and spin up your own < em > secureCodeBox</ em > with{ " " }
59+ </ a > { ' ' }
60+ and spin up your own < em > secureCodeBox</ em > with{ ' ' }
6161 < a href = "https://docs.docker.com/compose/" > Docker Compose</ a > .
6262 </ p >
6363 </ div >
0 commit comments