feat: revamp

This commit is contained in:
TrèsAbhi committed 2024-05-03 12:57:04 -05:00
1 parent 468308ad22
commit e3d69ab83c
4 files changed
+137 -198

No files matched your search

+6 -2
View File
@@ -4,6 +4,8 @@ import { ComponentProps } from 'react';
type PageWrapperProps = FlexProps & {
color?: ComponentProps<typeof Theme>['accentColor'];
size?: number | string;
noPadding?: boolean;
noMaxWidth?: boolean;
};
export default function PageWrapper({
@@ -11,6 +13,8 @@ export default function PageWrapper({
color,
size = 800,
children,
noPadding = false,
noMaxWidth = false,
...props
}: PageWrapperProps) {
return (
@@ -27,9 +31,9 @@ export default function PageWrapper({
gap="4"
style={{
width: '100%',
maxWidth: size,
maxWidth: noMaxWidth ? undefined : size,
margin: 'auto',
padding: 16,
padding: noPadding ? 0 : 16,
boxSizing: 'border-box',
flex: 1,
...style,