aboutsummaryrefslogtreecommitdiffstats
path: root/src/pages/contact.tsx
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-01-10 18:17:40 +0100
committerArmand Philippot <git@armandphilippot.com>2022-01-11 02:24:44 +0100
commit6315efacd6212a347877102a68f430fffa4ca4ac (patch)
treeb067fb4a1855f881b15e4e11ee161dda778150f9 /src/pages/contact.tsx
parentcd1078e3a6ddb1b1598723beec4905c123ee85a6 (diff)
refactor(sidebar): use a component to avoid styles repetition
I also fix some overflow/sticky issues. I have to set overflow auto only when there is no button-like links otherwise, with translate, the button is cropped on hover.
Diffstat (limited to 'src/pages/contact.tsx')
-rw-r--r--src/pages/contact.tsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/pages/contact.tsx b/src/pages/contact.tsx
index d9c4e4f..5e6d138 100644
--- a/src/pages/contact.tsx
+++ b/src/pages/contact.tsx
@@ -12,6 +12,7 @@ import { FormEvent, useState } from 'react';
import PostHeader from '@components/PostHeader/PostHeader';
import styles from '@styles/pages/Page.module.scss';
import { SocialMedia } from '@components/Widget';
+import Sidebar from '@components/Sidebar/Sidebar';
const ContactPage: NextPageWithLayout = () => {
const [name, setName] = useState('');
@@ -112,14 +113,14 @@ const ContactPage: NextPageWithLayout = () => {
</FormItem>
</Form>
</div>
- <aside className={styles.aside}>
+ <Sidebar>
<SocialMedia
title={t`Find me elsewhere`}
github={true}
gitlab={true}
linkedin={true}
/>
- </aside>
+ </Sidebar>
</article>
</>
);