feat: add back to top button and group with theme switcher

This commit is contained in:
grassblock 2025-05-03 20:53:47 +08:00
parent c6db8689b4
commit 350f6f3865
2 changed files with 32 additions and 1 deletions

View file

@ -2,6 +2,7 @@
import '../styles/global.css';
import Search from '../components/Search.astro';
import ThemeSwitcher from '../components/ThemeSwitcher.astro';
import BackToTop from "../components/BackToTop.astro";
import { siteConfig } from "../config";
interface Props {
@ -26,7 +27,6 @@ const { title, path = formattedPath } = Astro.props;
<title>{title}</title>
</head>
<body>
<ThemeSwitcher />
<main>
<div class="container">
<div class="terminal-path">
@ -47,6 +47,10 @@ const { title, path = formattedPath } = Astro.props;
</main>
<footer class="footer">
<div class="floating">
<BackToTop/>
<ThemeSwitcher/>
</div>
<div class="container">
Powered by <a href="https://git.gb0.dev/gb/mercury"><img src="/mercury.svg" width="16px" alt="mercury logo" /> mercury</a>
</div>