Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connects the Google Contact Form #751

Merged
merged 9 commits into from
Aug 3, 2021
Merged

Connects the Google Contact Form #751

merged 9 commits into from
Aug 3, 2021

Conversation

maxskewes
Copy link
Member

Puts a, <iframe> tag to a google contact form

Closes issue #604

@nrrao nrrao self-requested a review July 30, 2021 02:08
Copy link
Member

@nrrao nrrao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@maxskewes, I am seeing form not being center.
screencapture-localhost-3000-about-contact-2021-07-29-22_08_07

@maxskewes
Copy link
Member Author

@nrrao Thanks for catching that. I centered it.

@mariastudnicka
Copy link

@maxskewes thanks! does this mean we're able to upload an image?

Copy link
Member

@nrrao nrrao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@maxskewes, The form is center now. Since there is commented code should we make a separate file before merging?
Also,
frameborder='0'
marginheight='0'
marginwidth='0' should be frameBorder,marginHeight,marginWidth to avoid console warning messages.
iframe should have title property to avoid warning message.

<iframe ... title="contactForm"> frame body </iframe>

Created ContactForm component to be used when no longer using the Google Contact Form. Removed commented code from index.js. Added title to <iframe> tag and corrected jsx syntax.
@maxskewes
Copy link
Member Author

I have updated the PR. I removed the commented code from index.js, created a separate ContactForm component to be used when we are no longer using the Google form, corrected code for the iframe tag.

@@ -133,18 +57,32 @@ const Contact = () => {

return (
<Box>
<GenericHeaderSection mainTitle='Contact Us' breadCrumbLinks={breadCrumbLinks}>
<GenericHeaderSection
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Identical blocks of code found in 2 locations. Consider refactoring.


return (
<Box>
<GenericHeaderSection
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Identical blocks of code found in 2 locations. Consider refactoring.

@maxskewes
Copy link
Member Author

@mariastudnicka The uploading of the image is taking place on a different page and is not part of this pull request.

Changed <div> to <Card> and added <CardMedia> to make google form responsive. Deleted all trace of defunct 'addPad' prop.
Copy link
Member

@nrrao nrrao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks Good.

@codeclimate
Copy link

codeclimate bot commented Aug 3, 2021

Code Climate has analyzed commit a22ef50 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 72.6% (0.0% change).

View more on Code Climate.

@nrrao nrrao merged commit 4955156 into main Aug 3, 2021
@nrrao nrrao deleted the google-contact-form branch August 3, 2021 01:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants