diff --git a/src/components/ScrollButton.astro b/src/components/ScrollButton.astro new file mode 100644 index 0000000..9e73fac --- /dev/null +++ b/src/components/ScrollButton.astro @@ -0,0 +1,91 @@ + + + diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 49eded4..d958ee6 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -6,6 +6,7 @@ import MobileHeader from '@/components/MobileHeader.astro' import Navigation from '@/components/Navbar.astro' import PhotoSwipe from '@/components/PhotoSwipe.astro' import Scrollbar from '@/components/Scrollbar.astro' +import ScrollButton from '@/components/ScrollButton.astro' import ThemeToggle from '@/components/ThemeToggle.astro' import themeConfig from '@/config' import Head from '@/layouts/Head.astro' @@ -27,7 +28,7 @@ const { isHome, isPost } = getPagePath(Astro.url.pathname); @@ -53,5 +54,6 @@ const { isHome, isPost } = getPagePath(Astro.url.pathname); +