Skip to content

Commit 848d2f8

Browse files
feat: ✨ add a tally contact form (#684)
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
1 parent b9cd59a commit 848d2f8

4 files changed

Lines changed: 58 additions & 66 deletions

File tree

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,5 +145,8 @@
145145
"bugs": {
146146
"url": "https://github.com/fairdataihub/fairdataihub-website/issues/new/choose"
147147
},
148-
"homepage": "https://fairdataihub.org"
148+
"homepage": "https://fairdataihub.org", "volta": {
149+
"node": "20.19.0",
150+
"yarn": "1.22.22"
151+
}
149152
}

src/pages/api/contact.ts

Lines changed: 0 additions & 62 deletions
This file was deleted.

src/pages/contact-us.tsx

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
1-
import ContactForm from '@/components/contact-us/contactForm';
1+
import Head from 'next/head';
2+
23
import Seo from '@/components/seo/seo';
34

45
export default function ContactUs() {
56
return (
67
<>
8+
<Head>
9+
<script async src="https://tally.so/widgets/embed.js"></script>
10+
</Head>
11+
712
<Seo
813
templateTitle="Contact Us"
914
templateDescription="Contact us for any questions, collobaration requests or comments about the Fair Data Innovations Hub"
@@ -28,12 +33,22 @@ export default function ContactUs() {
2833
</div>
2934

3035
<section className="z-10 py-8">
31-
<div className="container mx-auto w-screen max-w-screen-md rounded-lg bg-gray-50 px-10 py-12 shadow-lg">
36+
<div className="container mx-auto w-screen max-w-screen-md rounded-lg bg-gray-50 px-10 pb-8 pt-12 shadow-lg">
3237
<h2 className="pb-5 pt-3 text-center text-3xl font-semibold sm:text-4xl">
3338
Let us know if you have any feedback or want to collaborate
3439
</h2>
3540

36-
<ContactForm />
41+
<iframe
42+
data-tally-src="https://tally.so/embed/mRqBLd?alignLeft=1&hideTitle=1&transparentBackground=1&dynamicHeight=1"
43+
loading="lazy"
44+
width="100%"
45+
height="276"
46+
title="AI-READI Contact Form"
47+
aria-label="Contact form for feedback or collaboration"
48+
>
49+
Your browser does not support iframes, or iframes are disabled.
50+
Please visit <a href="https://tally.so/r/mRqBLd" target="_blank" rel="noopener noreferrer">this link</a> to access the contact form.
51+
</iframe>
3752
</div>
3853
</section>
3954
</div>

src/styles/global.css

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,3 +348,39 @@
348348
border-radius: 15px;
349349
border: 3px solid #ffffff;
350350
}
351+
352+
.tally-page {
353+
max-width: 1000px;
354+
}
355+
356+
input[type='email']::placeholder {
357+
text-align: center;
358+
}
359+
360+
input[type='text']::placeholder {
361+
text-align: center;
362+
}
363+
364+
div[class*=' tally-block-input'] > div > div {
365+
min-width: 100%;
366+
}
367+
368+
.tally-submit-button {
369+
display: flex;
370+
justify-content: center;
371+
}
372+
373+
.tally-block-multiple-choice-option {
374+
display: flex;
375+
justify-content: center;
376+
}
377+
378+
.tally-block-label {
379+
display: flex;
380+
justify-content: center;
381+
}
382+
383+
.tally-block-text {
384+
display: flex;
385+
justify-content: center;
386+
}

0 commit comments

Comments
 (0)