feat: highliting sections

This commit is contained in:
TrèsAbhi committed 2024-06-03 18:02:10 -05:00
1 parent d4976f07f1
commit 5c328d0f4d
3 files changed
+2 -8

No files matched your search

-6
View File
@@ -1,13 +1,11 @@
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;
containerProps?: ComponentProps<typeof Theme>;
noFlex1?: boolean;
};
@@ -20,7 +18,6 @@ export default function PageWrapper({
noPadding = false,
noMaxWidth = false,
noFlex1 = false,
highlight = false,
containerProps,
...props
}: PageWrapperProps) {
@@ -31,9 +28,6 @@ export default function PageWrapper({
flex: noFlex1 ? undefined : 1,
display: 'flex',
flexDirection: 'column',
background: highlight
? `linear-gradient(-90deg, ${theme.colors.appBackground1}, ${theme.colors.appBackground2})`
: undefined,
...containerProps?.style,
}}
{...containerProps}