mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +02:00
feat: equipment matrix visual start
This commit is contained in:
1 parent
ecc029402e
commit
c1253e8121
2 files changed
+37
-3
No files matched your search
@@ -12,6 +12,7 @@ import {
|
||||
} from '@radix-ui/themes';
|
||||
import { usePathname, useRouter, useSearchParams } from 'next/navigation';
|
||||
import { use, useCallback, useEffect, useMemo, useState } from 'react';
|
||||
import { EquipmentMatrixCompact } from '../../../components/EquipmentMatrixCompact';
|
||||
import PageWrapper from '../../../components/PageWrapper';
|
||||
import { equipmentDefinitions } from '../../../core/blitzkrieg/equipmentDefinitions';
|
||||
import { modelDefinitions } from '../../../core/blitzkrieg/modelDefinitions';
|
||||
@@ -230,8 +231,8 @@ export default function Page() {
|
||||
<Heading size="4">{children}</Heading>
|
||||
</Table.ColumnHeaderCell>
|
||||
|
||||
{members.map(() => (
|
||||
<Table.ColumnHeaderCell />
|
||||
{members.map((_, index) => (
|
||||
<Table.ColumnHeaderCell key={index} />
|
||||
))}
|
||||
</Table.Row>
|
||||
</Table.Header>
|
||||
@@ -338,6 +339,29 @@ export default function Page() {
|
||||
</Table.Row>
|
||||
</Table.Header>
|
||||
|
||||
<Table.Body>
|
||||
<Table.Row>
|
||||
<Table.Cell />
|
||||
|
||||
{members.map(({ equipmentMatrix }) => (
|
||||
<Table.Cell>
|
||||
<Flex
|
||||
align="center"
|
||||
justify="between"
|
||||
style={{
|
||||
width: '100%',
|
||||
height: '100%',
|
||||
}}
|
||||
>
|
||||
<EquipmentMatrixCompact
|
||||
equipmentMatrix={equipmentMatrix}
|
||||
/>
|
||||
</Flex>
|
||||
</Table.Cell>
|
||||
))}
|
||||
</Table.Row>
|
||||
</Table.Body>
|
||||
|
||||
<Title>Fire</Title>
|
||||
<Table.Body>
|
||||
<Row name="DPM" value="dpm" decimals={0} />
|
||||
|
||||
@@ -1 +1,11 @@
|
||||
export function EquipmentMatrixCompact() {}
|
||||
import { EquipmentMatrix } from '../stores/duel';
|
||||
|
||||
interface EquipmentMatrixCompactProps {
|
||||
equipmentMatrix: EquipmentMatrix;
|
||||
}
|
||||
|
||||
export function EquipmentMatrixCompact({
|
||||
equipmentMatrix,
|
||||
}: EquipmentMatrixCompactProps) {
|
||||
return null;
|
||||
}
|
||||
Reference in new issue
Block a user