This commit is contained in:
2026-04-14 16:27:47 +08:00
commit 4b38a4c952
134 changed files with 7478 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
import { Outlet } from "react-router-dom";
export function DefaultLayout() {
return (
<div className="default-layout">
<Outlet />
</div>
);
}

View File

@@ -0,0 +1,18 @@
import { Outlet, useLocation } from "react-router-dom";
export function SidebarLayout() {
const location = useLocation();
return (
<div className="shell">
<aside className="shell__sidebar">
<div className="shell__brand">K12Study</div>
<div className="shell__hint">React </div>
</aside>
<main className="shell__content">
<header className="shell__header">{location.pathname}</header>
<Outlet />
</main>
</div>
);
}