mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-07-11 00:30:06 +08:00
Auth darkMode Refactor
This commit is contained in:
@@ -1,11 +1,14 @@
|
||||
import { Box, useColorModeValue } from "@chakra-ui/react";
|
||||
|
||||
export function AuthLayout({ children }) {
|
||||
const backgroundColor = useColorModeValue("#FFFFFF", "#000000");
|
||||
return (
|
||||
<main className="flex items-center justify-center sm:py-4 subpixel-antialiased">
|
||||
<Box backgroundColor={backgroundColor} className="flex items-center justify-center sm:py-4 subpixel-antialiased">
|
||||
<div className="flex items-center w-full max-w-2xl flex-col px-4 sm:px-6">
|
||||
<div className="flex-auto items-center justify-center w-full py-10 px-4 sm:mx-0 sm:flex-none sm:rounded-2xl sm:p-4">
|
||||
{children}
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
</Box>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user