From 7998f293ee23a67d9ec9ce108907c1a352c4e5c0 Mon Sep 17 00:00:00 2001 From: Nabeel Boda Date: Wed, 13 Mar 2024 17:57:12 +0530 Subject: [PATCH] Feat: Contact Us --- ui/package-lock.json | 41 +++++++++++ ui/package.json | 1 + ui/src/components/Dropdown.js | 4 +- ui/src/components/Header.jsx | 55 +++++++++------ ui/src/components/home/Footer.jsx | 3 + ui/src/pages/contact.js | 110 ++++++++++++++++++++++++++++++ 6 files changed, 192 insertions(+), 22 deletions(-) create mode 100644 ui/src/pages/contact.js diff --git a/ui/package-lock.json b/ui/package-lock.json index a63ce6a..c39845a 100644 --- a/ui/package-lock.json +++ b/ui/package-lock.json @@ -8,6 +8,7 @@ "name": "ui", "version": "0.1.0", "dependencies": { + "@formspree/react": "^2.5.1", "@tabler/icons-react": "^2.47.0", "@vercel/analytics": "^1.2.2", "@wavesurfer/react": "^1.0.4", @@ -1887,6 +1888,28 @@ "node": "^12.22.0 || ^14.17.0 || >=16.0.0" } }, + "node_modules/@formspree/core": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@formspree/core/-/core-3.0.1.tgz", + "integrity": "sha512-jGNgrEtL8mx8k1kkmeNfyeoP1a+H2kci8TMG7CT3R5k3ssqr0Sl1j10SIKo74CFZVewMW4JjMYwcunWUPfutSQ==", + "dependencies": { + "@stripe/stripe-js": "^1.35.0" + } + }, + "node_modules/@formspree/react": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@formspree/react/-/react-2.5.1.tgz", + "integrity": "sha512-Yhxyn32m3zH63i0DNpnBq55zargDlbihqC0wlK18dqU7GOUqJXKY+WywLXuTRGfqo79/hT+Qx6eFS6M0J6eh0A==", + "dependencies": { + "@formspree/core": "^3.0.1", + "@stripe/react-stripe-js": "^1.7.1", + "@stripe/stripe-js": "^1.35.0" + }, + "peerDependencies": { + "react": "^16.8 || ^17.0 || ^18.0", + "react-dom": "^16.8 || ^17.0 || ^18.0" + } + }, "node_modules/@humanwhocodes/config-array": { "version": "0.11.14", "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.14.tgz", @@ -2287,6 +2310,24 @@ "integrity": "sha512-RbhOOTCNoCrbfkRyoXODZp75MlpiHMgbE5MEBZAnnnLyQNgrigEj4p0lzsMDyc1zVsJDLrivB58tgg3emX0eEA==", "dev": true }, + "node_modules/@stripe/react-stripe-js": { + "version": "1.16.5", + "resolved": "https://registry.npmjs.org/@stripe/react-stripe-js/-/react-stripe-js-1.16.5.tgz", + "integrity": "sha512-lVPW3IfwdacyS22pP+nBB6/GNFRRhT/4jfgAK6T2guQmtzPwJV1DogiGGaBNhiKtSY18+yS8KlHSu+PvZNclvQ==", + "dependencies": { + "prop-types": "^15.7.2" + }, + "peerDependencies": { + "@stripe/stripe-js": "^1.44.1", + "react": "^16.8.0 || ^17.0.0 || ^18.0.0", + "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0" + } + }, + "node_modules/@stripe/stripe-js": { + "version": "1.54.2", + "resolved": "https://registry.npmjs.org/@stripe/stripe-js/-/stripe-js-1.54.2.tgz", + "integrity": "sha512-R1PwtDvUfs99cAjfuQ/WpwJ3c92+DAMy9xGApjqlWQMj0FKQabUAys2swfTRNzuYAYJh7NqK2dzcYVNkKLEKUg==" + }, "node_modules/@surma/rollup-plugin-off-main-thread": { "version": "2.2.3", "resolved": "https://registry.npmjs.org/@surma/rollup-plugin-off-main-thread/-/rollup-plugin-off-main-thread-2.2.3.tgz", diff --git a/ui/package.json b/ui/package.json index 3cabe22..54281b1 100644 --- a/ui/package.json +++ b/ui/package.json @@ -9,6 +9,7 @@ "lint": "next lint" }, "dependencies": { + "@formspree/react": "^2.5.1", "@tabler/icons-react": "^2.47.0", "@vercel/analytics": "^1.2.2", "@wavesurfer/react": "^1.0.4", diff --git a/ui/src/components/Dropdown.js b/ui/src/components/Dropdown.js index 22f69f5..c5a38eb 100644 --- a/ui/src/components/Dropdown.js +++ b/ui/src/components/Dropdown.js @@ -25,7 +25,9 @@ export default function Dropdown({ return (
-

Required

+

+ Required +

+
+
+ + {" "} +

+ Required +

+
+ +
+ +
+ + {" "} +

+ Required +

+
+ +