Skip to content

Commit

Permalink
feat: ✨ add a contact form (#40)
Browse files Browse the repository at this point in the history
* feat: ✨ add a contact form

* fix: 🐛 more script to head tag

* fix: 🐛 update text
  • Loading branch information
megasanjay authored May 23, 2024
1 parent a6412fd commit b1160da
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 212 deletions.
1 change: 1 addition & 0 deletions src/pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class MyDocument extends Document {
src='https://umami.fairdataihub.org/mushroom'
/>
</Head>

<body
className={`!font-primary ${
process.env.NODE_ENV === 'development' ? 'debug-screens' : ''
Expand Down
212 changes: 0 additions & 212 deletions src/pages/contact/index.jsx

This file was deleted.

52 changes: 52 additions & 0 deletions src/pages/contact/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
import { SkipNavContent, SkipNavLink } from '@chakra-ui/skip-nav';
import Head from 'next/head';

import Layout from '@/components/layout/Layout';
import Seo from '@/components/Seo';

export default function ContactUs() {
return (
<>
<Head>
<script async src='https://tally.so/widgets/embed.js'></script>
</Head>

<SkipNavLink>Skip to content</SkipNavLink>

<Layout>
<Seo templateTitle='Contact Us' />

<main>
<SkipNavContent />

<section className='bg-white '>
<div className='mx-auto max-w-screen-md px-4 py-8 lg:py-16'>
<h1 className='mb-1 text-center text-3xl font-extrabold tracking-tight sm:text-4xl'>
Contact Us
</h1>

<p className='mb-6 text-center text-xl font-normal text-slate-600 sm:mb-8'>
Have a question about our project? Want to provide feedback
about our dataset or anything else? Need help using our data?
Let us know!
</p>

{/* <p className='my-12 hidden w-full rounded-lg bg-yellow-50 p-10 text-center text-xl font-normal text-slate-600 sm:mb-8'>
We are not taking any queries at this time. <br /> We hope you
can find all the necessary information on our website.
</p> */}

<iframe
data-tally-src='https://tally.so/embed/wdY71y?alignLeft=1&hideTitle=1&transparentBackground=1&dynamicHeight=1'
loading='lazy'
width='100%'
height='276'
title='AI-READI Contact Form'
></iframe>
</div>
</section>
</main>
</Layout>
</>
);
}

0 comments on commit b1160da

Please sign in to comment.