MCPcopy Create free account
hub / github.com/ChurchApps/B1Admin / AuthShell

Function AuthShell

src/components/AuthShell.tsx:9–31  ·  view source on GitHub ↗
({ logoAlt, children })

Source from the content-addressed store, hash-verified

7}
8
9// Fixed 500px card on desktop; full width on a phone so the consent buttons don't run off-screen.
10export const AuthShell: React.FC<AuthShellProps> = ({ logoAlt, children }) => (
11 <Box sx={{ display: "flex", backgroundColor: "background.default", minHeight: "100vh" }}>
12 <Box sx={{ mx: "auto", pt: "20px", px: { xs: 2, sm: 0 }, width: { xs: "100%", sm: "auto" }, boxSizing: "border-box" }}>
13 <Box
14 sx={{
15 width: { xs: "100%", sm: 500 },
16 boxSizing: "border-box",
17 minHeight: 100,
18 backgroundColor: "background.paper",
19 border: "1px solid",
20 borderColor: "divider",
21 borderRadius: "var(--b1-radius-panel)",
22 padding: "10px"
23 }}
24 px="16px"
25 mx="auto">
26 <Box sx={{ textAlign: "center", m: { xs: 3, sm: "50px" } }}>
27 <img src={"/images/logo-login.png"} alt={logoAlt} style={{ maxWidth: "100%" }} />
28 </Box>
29 {children}
30 </Box>
31 </Box>
32 </Box>
33);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected