MCPcopy Create free account
hub / github.com/OpenSIST/OpenSIST.github.io / AuthCard

Function AuthCard

src/Components/Auth/AuthShared.jsx:21–50  ·  view source on GitHub ↗
({children, ...formProps})

Source from the content-addressed store, hash-verified

19}
20
21export function AuthCard({children, ...formProps}) {
22 return (
23 <Box sx={{
24 minHeight: 'calc(100vh - 60px)',
25 display: 'flex',
26 alignItems: 'center',
27 justifyContent: 'center',
28 px: 2,
29 py: 4,
30 }}>
31 <Paper
32 component={Form}
33 elevation={0}
34 {...formProps}
35 sx={{
36 width: '100%',
37 maxWidth: 430,
38 bgcolor: (theme) => theme.palette.surface,
39 borderRadius: 3,
40 p: {xs: 3, sm: 4},
41 display: 'flex',
42 flexDirection: 'column',
43 gap: 2,
44 }}
45 >
46 {children}
47 </Paper>
48 </Box>
49 );
50}
51
52export function AuthHeader({subtitle}) {
53 const dark = useTheme().palette.mode === 'dark';

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected