feat: login form as a client component, theme toggle
This commit is contained in:
7
components/PageContainer/PageContainer.module.css
Normal file
7
components/PageContainer/PageContainer.module.css
Normal file
@ -0,0 +1,7 @@
|
||||
.container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: rem(10);
|
||||
min-height: 70vh;
|
||||
background-color: transparent;
|
||||
}
|
||||
24
components/PageContainer/PageContainer.tsx
Normal file
24
components/PageContainer/PageContainer.tsx
Normal file
@ -0,0 +1,24 @@
|
||||
import { CSSProperties, FC, ReactNode } from "react";
|
||||
import styles from "./PageContainer.module.css";
|
||||
|
||||
type Props = {
|
||||
children: ReactNode;
|
||||
style?: CSSProperties;
|
||||
center?: boolean;
|
||||
};
|
||||
|
||||
const PageContainer: FC<Props> = ({ children, style, center }) => {
|
||||
return (
|
||||
<div
|
||||
className={styles.container}
|
||||
style={{
|
||||
...style,
|
||||
alignItems: center ? "center" : "",
|
||||
justifyContent: center ? "center" : "",
|
||||
}}>
|
||||
{children}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default PageContainer;
|
||||
Reference in New Issue
Block a user