More refactoring and clean-up.

This commit is contained in:
Mike Cao committed 2023-02-10 03:26:57 -08:00
1 parent f062cdbed2
commit c815e7cd51
16 files changed
+101 -134

No files matched your search

+2 -1
View File
@@ -2,6 +2,7 @@ import { Container } from 'react-basics';
import Head from 'next/head';
import NavBar from 'components/layout/NavBar';
import useRequireLogin from 'hooks/useRequireLogin';
import { UI_LAYOUT_BODY } from 'lib/constants';
import styles from './AppLayout.module.css';
export default function AppLayout({ title, children }) {
@@ -19,7 +20,7 @@ export default function AppLayout({ title, children }) {
<div className={styles.nav}>
<NavBar />
</div>
<div className={styles.body} id="layout-body">
<div className={styles.body} id={UI_LAYOUT_BODY}>
<Container>
<main>{children}</main>
</Container>
-16
View File
@@ -1,16 +0,0 @@
import classNames from 'classnames';
import styles from './ButtonLayout.module.css';
export default function ButtonLayout({ className, children, align = 'center' }) {
return (
<div
className={classNames(styles.buttons, className, {
[styles.left]: align === 'left',
[styles.center]: align === 'center',
[styles.right]: align === 'right',
})}
>
{children}
</div>
);
}
-21
View File
@@ -1,21 +0,0 @@
.buttons {
display: flex;
align-items: center;
width: 100%;
}
.buttons button + * {
margin-left: 10px;
}
.center {
justify-content: center;
}
.left {
justify-content: flex-start;
}
.right {
justify-content: flex-end;
}
+1 -1
View File
@@ -2,7 +2,7 @@
flex: 1;
display: flex;
flex-direction: column;
padding: 30px;
background: var(--base50);
position: relative;
padding: 30px;
}