feat: condensed

This commit is contained in:
TrèsAbhi committed 2024-03-31 22:27:11 -05:00
1 parent 65e239a22b
commit 0b88f71f26
6 files changed
+20 -18

No files matched your search

@@ -1,5 +1,5 @@
import { Flex } from '@radix-ui/themes';
import { ReactNode } from 'react'; import { ReactNode } from 'react';
import * as styles from '../../../../page.css';
interface ConfigurationChildWrapperProps { interface ConfigurationChildWrapperProps {
children: ReactNode; children: ReactNode;
@@ -8,5 +8,9 @@ interface ConfigurationChildWrapperProps {
export function ConfigurationChildWrapper({ export function ConfigurationChildWrapper({
children, children,
}: ConfigurationChildWrapperProps) { }: ConfigurationChildWrapperProps) {
return <div className={styles.configurationChild}>{children}</div>; return (
<Flex gap="2" direction="column">
{children}
</Flex>
);
} }
@@ -61,8 +61,10 @@ export function Skills() {
</Flex> </Flex>
<Text> <Text>
<InfoCircledIcon /> Skills in yellow only apply under special <Text color="amber">
circumstances. <InfoCircledIcon /> Yellow
</Text>{' '}
skills apply under special circumstances.
</Text> </Text>
<Flex direction="column" gap="2"> <Flex direction="column" gap="2">
+6 -4
View File
@@ -65,7 +65,7 @@ export default function Page({ params }: { params: { id: string } }) {
}, [initialId, assigned]); }, [initialId, assigned]);
return ( return (
<PageWrapper color="purple" size="double"> <PageWrapper color="purple" size={1600}>
{assigned && ( {assigned && (
<> <>
<Title /> <Title />
@@ -78,7 +78,7 @@ export default function Page({ params }: { params: { id: string } }) {
justify="center" justify="center"
> >
<Flex <Flex
gap="4" gap="8"
direction="column" direction="column"
style={{ style={{
flex: 1, flex: 1,
@@ -90,15 +90,17 @@ export default function Page({ params }: { params: { id: string } }) {
<TankSandbox /> <TankSandbox />
<AntagonistBar /> <AntagonistBar />
<Flex direction="column" gap="5"> <Flex gap="5" wrap="wrap">
<Modules /> <Modules />
<Provisions /> <Provisions />
<Equipment />
<Miscellaneous /> <Miscellaneous />
<Consumables /> <Consumables />
<Flex gap="5" wrap="wrap">
<Equipment />
<Skills /> <Skills />
</Flex> </Flex>
</Flex> </Flex>
</Flex>
<Flex style={{ width: wideFormat ? 320 : '100%' }}> <Flex style={{ width: wideFormat ? 320 : '100%' }}>
<Characteristics /> <Characteristics />
-6
View File
@@ -74,12 +74,6 @@ export const characteristics = style({
}, },
}); });
export const configurationChild = style({
display: 'flex',
gap: 8,
flexDirection: 'column',
});
export const configuration = style({ export const configuration = style({
display: 'flex', display: 'flex',
flexDirection: 'column', flexDirection: 'column',
+1 -1
View File
@@ -8,7 +8,7 @@ export default function Page() {
const router = useRouter(); const router = useRouter();
return ( return (
<PageWrapper size="double" color="purple"> <PageWrapper size={1200} color="purple">
<TankSearch <TankSearch
onSelect={(tank) => { onSelect={(tank) => {
router.push(`./tankopedia/${tank.id}`); router.push(`./tankopedia/${tank.id}`);
+3 -3
View File
@@ -3,13 +3,13 @@ import { ComponentProps } from 'react';
interface PageWrapperProps extends ComponentProps<typeof Flex> { interface PageWrapperProps extends ComponentProps<typeof Flex> {
color?: ComponentProps<typeof Theme>['accentColor']; color?: ComponentProps<typeof Theme>['accentColor'];
size?: 'regular' | 'wide' | 'double'; size?: number;
} }
export default function PageWrapper({ export default function PageWrapper({
style, style,
color, color,
size = 'regular', size = 800,
...props ...props
}: PageWrapperProps) { }: PageWrapperProps) {
return ( return (
@@ -19,7 +19,7 @@ export default function PageWrapper({
gap="4" gap="4"
style={{ style={{
width: '100%', width: '100%',
maxWidth: size === 'regular' ? 800 : size === 'double' ? 1200 : 960, maxWidth: size,
margin: 'auto', margin: 'auto',
padding: 16, padding: 16,
boxSizing: 'border-box', boxSizing: 'border-box',