Skip to content

Commit 807532a

Browse files
authored
Merge pull request #106 from orama254/contact-form-backend
feat: Add contact form backend functionality
2 parents 3c4bb9f + 3ddbcf0 commit 807532a

7 files changed

Lines changed: 250 additions & 38 deletions

File tree

.env.example

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
NEXT_PUBLIC_FORMSPREE_ID=
2+
NEXT_PUBLIC_RECAPTCHA_SITE_KEY=

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ yarn-error.log*
2727

2828
# local env files
2929
.env*.local
30+
.env
3031

3132
# vercel
3233
.vercel

package-lock.json

Lines changed: 142 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,14 @@
1515
},
1616
"dependencies": {
1717
"@headlessui/react": "^1.7.3",
18+
"@types/react-google-recaptcha": "^2.1.5",
1819
"next": "12.3.1",
1920
"react": "18.1.0",
20-
"react-dom": "18.1.0"
21+
"react-dom": "18.1.0",
22+
"react-google-recaptcha": "^2.1.0"
2123
},
2224
"devDependencies": {
25+
"@formspree/react": "^2.4.1",
2326
"@playwright/test": "1.27.1",
2427
"@tailwindcss/aspect-ratio": "^0.4.0",
2528
"@types/react": "18.0.21",

src/components/ContactUs/ContactUs.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export default function ContactUs() {
2020
if (!screenWidth) return null;
2121

2222
return (
23-
<section id="contact-us" className="min-h-screen bg-white pb-20">
23+
<section id="contact-us" className="bg-white pb-20">
2424
<h2 className="font-montserrat text-base uppercase w-fit mx-auto py-5">
2525
Contact us
2626
</h2>

0 commit comments

Comments
 (0)