Skip to content

Commit

Permalink
add contact page
Browse files Browse the repository at this point in the history
  • Loading branch information
anuejn committed Dec 2, 2023
1 parent 4f0e89a commit a4456ac
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/app/contact/mail.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
'use client';

import React, { useEffect, useState } from "react";

export function MailLink() {
const address = "(: tey liame cilbup gnikrow a evah tnod ew ,yrros";
const [addressState, setAdress] = useState(null as null | string);
useEffect(() => {
setTimeout(() => {
setAdress(address.split("").reverse().join(""))
}, 1000);
}, [])

return (
addressState
? <a className="underline" href={`mailto:${addressState}`}>{addressState}</a>
: <span>[email protected] (Loading...)</span>
)
}
31 changes: 31 additions & 0 deletions src/app/contact/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import React, { useEffect, useState } from 'react';
import { Metadata } from 'next';
import { Page } from '../../components/Page';
import { MailLink } from './mail';

export const metadata: Metadata = {
title: 'Contact Us',
openGraph: {
title: 'Contact Us',
},
};

export default function ContactPage() {
return (
<Page className='max-w-[600px]'>
<h1 className="text-center text-neutral-400 font-medium my-4">Have Questions?</h1>
<h2 className="text-center text-5xl font-semibold my-4">Contact Us!</h2>

<p className='pb-4 pt-10'>
If you have any questions regarding transcribee, do not hesitate to contact us.
Be it for Cooperations, custom Integrations, development of custom features, requests for
discount or anything else you can come up with.
</p>

<p className='pb-4'>
Just send us an email: <MailLink />
</p>
</Page>
);
}

0 comments on commit a4456ac

Please sign in to comment.