mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +02:00
feat: bring back stats
This commit is contained in:
1 parent
42076c1317
commit
299ccef579
6 files changed
+355
-370
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user