Scroll to top button
This commit is contained in:
17
components/ScrollToTop.tsx
Normal file
17
components/ScrollToTop.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import React from 'react';
|
||||
import Image from 'next/image';
|
||||
import styles from '../styles/ScrollToTop.module.scss';
|
||||
|
||||
export const ScrollToTop = () => {
|
||||
return (
|
||||
<a className={styles.scrollToTopButton} href='#top'>
|
||||
<Image
|
||||
src='/angle-top.png'
|
||||
alt='scroll to top button'
|
||||
width={15}
|
||||
height={9}
|
||||
loading='lazy'
|
||||
/>
|
||||
</a>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user