Add scroll-aware back-to-top button

This commit is contained in:
2025-11-17 21:52:36 +08:00
parent 4edb5c628d
commit 83ccec5ec4
2 changed files with 39 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
import { SiteHeader } from './site-header';
import { SiteFooter } from './site-footer';
import { RightSidebar } from './right-sidebar';
import { BackToTop } from './back-to-top';
export function LayoutShell({ children }: { children: React.ReactNode }) {
return (
@@ -13,6 +14,7 @@ export function LayoutShell({ children }: { children: React.ReactNode }) {
</div>
</main>
<SiteFooter />
<BackToTop />
</div>
);
}