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

Contact form footer update #461

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
14
16
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"xml2js": "0.4.23"
},
"engines": {
"node": "16.19.0",
"node": ">=16.19.0",
"npm": ">=8.0.0"
},
"license": "MIT",
Expand Down
11 changes: 9 additions & 2 deletions src/components/Footer/Footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import {
FaGithub,
FaRegCopyright,
} from 'react-icons/fa'
import { ContactForm } from '@/components/Forms'

function Footer() {
return (
Expand Down Expand Up @@ -142,7 +141,15 @@ function Footer() {
<div className="widgets-content">
<h3 className="widgets-title">Contact Us</h3>
<div>
<ContactForm disableNameAndPhone={true} />
<iframe
src="https://forms.monday.com/forms/embed/67987c5cfb98ea9bb4b83c7b8ef8e6c1?r=use1"
width="400"
height="500"
style={{
border: 0,
boxShadow: '5px 5px 56px 0px rgba(0,0,0,0.25)',
}}
></iframe>
</div>
</div>
</div>
Expand Down
67 changes: 6 additions & 61 deletions tests/components/__snapshots__/Footer.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -331,67 +331,12 @@ exports[`<Footer /> should render correctly 1`] = `
Contact Us
</h3>
<div>
<form
id="s2do-form"
>
<div
class=""
>
<div
class="form-group"
>
<label
class="footer-form-label"
for="InputEmail"
>
Your Email Address
<sup>
*
</sup>
</label>
<input
class="form-control"
id="InputEmail"
name="email"
placeholder="[email protected]"
type="email"
/>
</div>
</div>
<div
class=""
>
<div
class="form-group"
>
<label
class="footer-form-label"
for="message"
>
Your Message
<sup>
*
</sup>
</label>
<textarea
class="form-control"
id="message"
name="message"
placeholder="Your Message Here.."
rows="3"
/>
</div>
<input
class="btn btn-charity-default"
href="#"
id="cfsubmit"
name="submit"
title=""
type="submit"
value="Submit Message"
/>
</div>
</form>
<iframe
height="500"
src="https://forms.monday.com/forms/embed/67987c5cfb98ea9bb4b83c7b8ef8e6c1?r=use1"
style="border: 0px; box-shadow: 5px 5px 56px 0px rgba(0,0,0,0.25);"
width="400"
/>
</div>
</div>
</div>
Expand Down
67 changes: 6 additions & 61 deletions tests/components/__snapshots__/Layout.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -684,67 +684,12 @@ exports[`<Layout /> should render correctly 1`] = `
Contact Us
</h3>
<div>
<form
id="s2do-form"
>
<div
class=""
>
<div
class="form-group"
>
<label
class="footer-form-label"
for="InputEmail"
>
Your Email Address
<sup>
*
</sup>
</label>
<input
class="form-control"
id="InputEmail"
name="email"
placeholder="[email protected]"
type="email"
/>
</div>
</div>
<div
class=""
>
<div
class="form-group"
>
<label
class="footer-form-label"
for="message"
>
Your Message
<sup>
*
</sup>
</label>
<textarea
class="form-control"
id="message"
name="message"
placeholder="Your Message Here.."
rows="3"
/>
</div>
<input
class="btn btn-charity-default"
href="#"
id="cfsubmit"
name="submit"
title=""
type="submit"
value="Submit Message"
/>
</div>
</form>
<iframe
height="500"
src="https://forms.monday.com/forms/embed/67987c5cfb98ea9bb4b83c7b8ef8e6c1?r=use1"
style="border: 0px; box-shadow: 5px 5px 56px 0px rgba(0,0,0,0.25);"
width="400"
/>
</div>
</div>
</div>
Expand Down