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

@@ -25,7 +25,7 @@ export function HeroSection() {
justify="center" justify="center"
pt={wideFormat ? '0' : '6'} pt={wideFormat ? '0' : '6'}
style={{ style={{
background: `linear-gradient(${wideFormat ? -90 : 180}deg, ${theme.colors.appBackground1}, ${theme.colors.appBackground2})`, background: 'var(--color-surface)',
position: 'relative', position: 'relative',
height: wideFormat ? undefined : 'calc(75vh - 64px)', height: wideFormat ? undefined : 'calc(75vh - 64px)',
}} }}
@@ -133,11 +133,11 @@ export function TechTreeSection() {
style: { style: {
overflow: 'hidden', overflow: 'hidden',
marginTop: 16, marginTop: 16,
backgroundColor: 'var(--color-surface)',
}, },
}} }}
size={tank.ancestors && tank.successors ? 880 : 480} size={tank.ancestors && tank.successors ? 880 : 480}
gap="0" gap="0"
highlight
> >
{/* <Flex justify="center"> {/* <Flex justify="center">
<Heading>Tech tree</Heading> <Heading>Tech tree</Heading>
-6
View File
@@ -1,13 +1,11 @@
import { Flex, FlexProps, Theme } from '@radix-ui/themes'; import { Flex, FlexProps, Theme } from '@radix-ui/themes';
import { ComponentProps } from 'react'; import { ComponentProps } from 'react';
import { theme } from '../stitches.config';
type PageWrapperProps = FlexProps & { type PageWrapperProps = FlexProps & {
color?: ComponentProps<typeof Theme>['accentColor']; color?: ComponentProps<typeof Theme>['accentColor'];
size?: number | string; size?: number | string;
noPadding?: boolean; noPadding?: boolean;
noMaxWidth?: boolean; noMaxWidth?: boolean;
highlight?: boolean;
containerProps?: ComponentProps<typeof Theme>; containerProps?: ComponentProps<typeof Theme>;
noFlex1?: boolean; noFlex1?: boolean;
}; };
@@ -20,7 +18,6 @@ export default function PageWrapper({
noPadding = false, noPadding = false,
noMaxWidth = false, noMaxWidth = false,
noFlex1 = false, noFlex1 = false,
highlight = false,
containerProps, containerProps,
...props ...props
}: PageWrapperProps) { }: PageWrapperProps) {
@@ -31,9 +28,6 @@ export default function PageWrapper({
flex: noFlex1 ? undefined : 1, flex: noFlex1 ? undefined : 1,
display: 'flex', display: 'flex',
flexDirection: 'column', flexDirection: 'column',
background: highlight
? `linear-gradient(-90deg, ${theme.colors.appBackground1}, ${theme.colors.appBackground2})`
: undefined,
...containerProps?.style, ...containerProps?.style,
}} }}
{...containerProps} {...containerProps}