feat: animations on hove

This commit is contained in:
TrèsAbhi committed 2023-12-01 12:23:17 -06:00
1 parent 7ea5e444b3
commit bda0c4ef1b
4 files changed
+148 -126

No files matched your search

+4 -2
View File
@@ -3,28 +3,30 @@ import { ComponentProps } from 'react';
interface PageWrapperProps extends ComponentProps<typeof Flex> {
color?: ComponentProps<typeof Theme>['accentColor'];
size?: 'regular' | 'wide';
}
export default function PageWrapper({
style,
color,
size = 'regular',
...props
}: PageWrapperProps) {
return (
<Theme accentColor={color}>
<Flex
{...props}
direction="column"
gap="4"
style={{
width: '100%',
maxWidth: 800,
maxWidth: size === 'regular' ? 800 : 880,
margin: 'auto',
padding: 16,
boxSizing: 'border-box',
...style,
}}
{...props}
/>
</Theme>
);