Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/sovereign-intelligence/blob/main/docs/archive/drakestapleton.com-old/src/components/Layout.tsx # sovereign-intelligence Front door to Drake Stapleton's sovereign stack. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `sovereign-intelligence / docs / archive / drakestapleton.com-old / src / components / Layout.tsx` 36 lines ยท 872 bytes Raw Blame History 1 import { useEffect, useRef } from "react"; 2 import { Outlet, useLocation } from "react-router-dom"; 3 import { SiteNav } from "./SiteNav"; 4 import { SiteFooter } from "./SiteFooter"; 5 6 function RouteFocus() { 7 const location = useLocation(); 8 const firstRender = useRef(true); 9 10 useEffect(() => { 11 if (firstRender.current) { 12 firstRender.current = false; 13 return; 14 } 15 window.scrollTo({ top: 0, left: 0, behavior: "auto" }); 16 document.querySelector("#main-content")?.focus(); 17 }, [location.pathname]); 18 19 return null; 20 } 21 22 export function Layout() { 23 return ( 24
25 26 27 Skip to main content 28 29 30
31 32
33 34
35 ); 36 }