MCPcopy Create free account
hub / github.com/antvis/AVA / PageShell

Function PageShell

site/components/PageShell.tsx:10–28  ·  view source on GitHub ↗
({ children })

Source from the content-addressed store, hash-verified

8 * (home, documentation, ...) renders the Header the same way.
9 */
10const PageShell: React.FC<{ children: React.ReactNode }> = ({ children }) => (
11 <div className="min-h-screen font-sans text-[#24212d] [--font-heading:var(--font-body)]">
12 <div
13 className="w-full bg-white
14 [&_[id]]:scroll-mt-[110px]
15 [&_:is(a,button,textarea)]:focus-visible:outline-2
16 [&_:is(a,button,textarea)]:focus-visible:outline-offset-4
17 [&_:is(a,button,textarea)]:focus-visible:outline-[color:var(--color-primary-dark)]
18 motion-reduce:[&_*]:transition-none
19 [&>header>div]:h-[84px] [&>header>div]:px-10
20 [&>header_a:hover]:text-[color:var(--color-primary-dark)]
21 [&>header_button]:rounded-[9px] [&>header_button]:bg-[#24212d] [&>header_button]:text-white
22 [&>header_button:hover]:bg-[color:var(--color-primary-dark)] [&>header_button:hover]:text-white
23 max-md:[&>header>div]:h-[70px] max-md:[&>header>div]:px-[18px]"
24 >
25 {children}
26 </div>
27 </div>
28);
29
30export default PageShell;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected