diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-01-06 17:55:24 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-01-06 18:14:42 +0100 |
| commit | b9c1953c79688fc3f536b7927692309c9780b5da (patch) | |
| tree | 673a26c0b0a9cc587f89d1eea9af739c3f17daf2 /src/pages/contact.tsx | |
| parent | 544f8cd400f888464a18ee30836f63d4b93a0822 (diff) | |
refactor: reuse PostMeta components on single articles/pages
Diffstat (limited to 'src/pages/contact.tsx')
| -rw-r--r-- | src/pages/contact.tsx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/pages/contact.tsx b/src/pages/contact.tsx index 3ce6098..ca82f5b 100644 --- a/src/pages/contact.tsx +++ b/src/pages/contact.tsx @@ -9,6 +9,7 @@ import { loadTranslation } from '@utils/helpers/i18n'; import { GetStaticProps, GetStaticPropsContext } from 'next'; import Head from 'next/head'; import { FormEvent, useState } from 'react'; +import PostHeader from '@components/PostHeader/PostHeader'; const ContactPage: NextPageWithLayout = () => { const [name, setName] = useState(''); @@ -48,6 +49,9 @@ const ContactPage: NextPageWithLayout = () => { } }; + const title = t`Contact`; + const intro = t`Please fill the form to contact me.`; + return ( <> <Head> @@ -55,9 +59,7 @@ const ContactPage: NextPageWithLayout = () => { <meta name="description" content={seo.contact.description} /> </Head> <article> - <header> - <h1>{t`Contact`}</h1> - </header> + <PostHeader title={title} intro={intro} /> <div> <p>{t`All fields marked with * are required.`}</p> {status && <p>{status}</p>} |
