Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 14 additions & 4 deletions app/components/SiteShell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,23 @@ export function SiteShell({
active,
children,
background,
frameClassName,
showProfile = true,
skipHref = "#main-content",
variant = "default",
}: {
active?: ActivePage;
children: ReactNode;
background?: ReactNode;
frameClassName?: string;
showProfile?: boolean;
skipHref?: `#${string}`;
variant?: "default" | "particle";
}) {
return (
<div className={`site-shell site-shell--${variant}`}>
{background}
<a className="skip-link" href="#main-content">
<a className="skip-link" href={skipHref}>
Skip to main content
</a>
<header className="topbar">
Expand All @@ -39,8 +45,11 @@ export function SiteShell({
</div>
</header>

<div className="site-frame">
<aside className="profile-sidebar" aria-label="Profile">
<div
className={frameClassName ? `site-frame ${frameClassName}` : "site-frame"}
>
{showProfile ? (
<aside className="profile-sidebar" aria-label="Profile">
<div className="avatar-frame">
{/* Static GitHub Pages deployment serves this pre-sized portrait directly. */}
<picture>
Expand Down Expand Up @@ -81,7 +90,8 @@ export function SiteShell({
<a href="https://github.com/130U" rel="me">GitHub</a>
</li>
</ul>
</aside>
</aside>
) : null}

<main className="content-column" id="main-content">
{children}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
.root {
position: fixed;
position: absolute;
z-index: 0;
inset: 0;
top: 0;
right: 0;
left: 0;
height: 100vh;
height: 100svh;
overflow: hidden;
pointer-events: none;
}
Expand Down
Loading
Loading