diff --git a/site/src/components/Header.astro b/site/src/components/Header.astro index 535aa01..6937fc7 100644 --- a/site/src/components/Header.astro +++ b/site/src/components/Header.astro @@ -49,7 +49,61 @@ import { Icon } from 'astro-icon/components' + + diff --git a/site/src/components/ToTop.astro b/site/src/components/ToTop.astro new file mode 100644 index 0000000..a1bc303 --- /dev/null +++ b/site/src/components/ToTop.astro @@ -0,0 +1,80 @@ +--- +import { Icon } from 'astro-icon/components' + +/** + * ToTop Component + * + * @description A button in the bottom right that scrolls back to the top once the page is scrolled a screen down + */ +--- + + + + + + diff --git a/site/src/layouts/DefaultLayout.astro b/site/src/layouts/DefaultLayout.astro index 7006022..7395b0b 100644 --- a/site/src/layouts/DefaultLayout.astro +++ b/site/src/layouts/DefaultLayout.astro @@ -4,6 +4,7 @@ import '../assets/scss/index.scss' import SiteMeta from '@components/SiteMeta.astro' import Header from '@components/Header.astro' import Footer from '@components/Footer.astro' +import ToTop from '@components/ToTop.astro' import { ClientRouter } from 'astro:transitions' const { @@ -32,15 +33,20 @@ const {