feat: bring back stats

This commit is contained in:
TrèsAbhi committed 2024-05-04 13:46:57 -05:00
1 parent 42076c1317
commit 299ccef579
6 files changed
+355 -370

No files matched your search

+6
View File
@@ -1,11 +1,13 @@
import { Flex, FlexProps, Theme } from '@radix-ui/themes';
import { ComponentProps } from 'react';
import { theme } from '../stitches.config';
type PageWrapperProps = FlexProps & {
color?: ComponentProps<typeof Theme>['accentColor'];
size?: number | string;
noPadding?: boolean;
noMaxWidth?: boolean;
highlight?: boolean;
};
export default function PageWrapper({
@@ -15,6 +17,7 @@ export default function PageWrapper({
children,
noPadding = false,
noMaxWidth = false,
highlight = false,
...props
}: PageWrapperProps) {
return (
@@ -24,6 +27,9 @@ export default function PageWrapper({
flex: 1,
display: 'flex',
flexDirection: 'column',
background: highlight
? `linear-gradient(-90deg, ${theme.colors.appBackground1}, ${theme.colors.appBackground2})`
: undefined,
}}
>
<Flex