mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
feat: move tech tree section up
This commit is contained in:
1 parent
2e97ccd40d
commit
2b02158e19
3 files changed
+4
-35
No files matched your search
@@ -7,28 +7,6 @@ import * as Duel from '../../../../../../../stores/duel';
|
|||||||
import { Arrow } from './components/Arrow';
|
import { Arrow } from './components/Arrow';
|
||||||
import { Node } from './components/Node';
|
import { Node } from './components/Node';
|
||||||
|
|
||||||
// function Ancestry({ line }: { line: Line }) {
|
|
||||||
// return (
|
|
||||||
// <Card>
|
|
||||||
// <Flex align="center">
|
|
||||||
// {line.map((node) => {
|
|
||||||
// if (typeof node === 'number') {
|
|
||||||
// return <Node key={node} id={node} />;
|
|
||||||
// } else {
|
|
||||||
// return (
|
|
||||||
// <Flex direction="column">
|
|
||||||
// {node.map((line) => (
|
|
||||||
// <Ancestry line={line} />
|
|
||||||
// ))}
|
|
||||||
// </Flex>
|
|
||||||
// );
|
|
||||||
// }
|
|
||||||
// })}
|
|
||||||
// </Flex>
|
|
||||||
// </Card>
|
|
||||||
// );
|
|
||||||
// }
|
|
||||||
|
|
||||||
type Line = number[];
|
type Line = number[];
|
||||||
|
|
||||||
export function TechTreeSection() {
|
export function TechTreeSection() {
|
||||||
@@ -93,13 +71,10 @@ export function TechTreeSection() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Flex
|
<Flex
|
||||||
my="6"
|
|
||||||
direction="column"
|
direction="column"
|
||||||
align="center"
|
align="center"
|
||||||
gap="0"
|
gap="0"
|
||||||
style={{
|
style={{ backgroundColor: 'var(--color-surface)' }}
|
||||||
backgroundColor: 'var(--color-surface)',
|
|
||||||
}}
|
|
||||||
py="6"
|
py="6"
|
||||||
>
|
>
|
||||||
<Flex direction="column" align="center">
|
<Flex direction="column" align="center">
|
||||||
|
|||||||
@@ -8,13 +8,7 @@ export function ShotDisplaySection() {
|
|||||||
if (!shot) return null;
|
if (!shot) return null;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Flex
|
<Flex justify="center" display={{ initial: 'flex', sm: 'none' }}>
|
||||||
justify="center"
|
|
||||||
display={{
|
|
||||||
initial: 'flex',
|
|
||||||
sm: 'none',
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<ShotDisplayCard shot={shot} />
|
<ShotDisplayCard shot={shot} />
|
||||||
</Flex>
|
</Flex>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -82,14 +82,14 @@ export default function Page({ params }: { params: { id: string } }) {
|
|||||||
return (
|
return (
|
||||||
<PageWrapper p="0" noMaxWidth color="purple" size={1600} gap="9">
|
<PageWrapper p="0" noMaxWidth color="purple" size={1600} gap="9">
|
||||||
<HeroSection id={id} />
|
<HeroSection id={id} />
|
||||||
<MetaSection />
|
|
||||||
<ShotDisplaySection />
|
<ShotDisplaySection />
|
||||||
|
<MetaSection />
|
||||||
{!exempt && <AdMidSectionResponsive />}
|
{!exempt && <AdMidSectionResponsive />}
|
||||||
|
<TechTreeSection />
|
||||||
<TestingSection />
|
<TestingSection />
|
||||||
<CharacteristicsSection />
|
<CharacteristicsSection />
|
||||||
{!exempt && <AdMidSectionResponsive />}
|
{!exempt && <AdMidSectionResponsive />}
|
||||||
<GameModeSection />
|
<GameModeSection />
|
||||||
<TechTreeSection />
|
|
||||||
<VideoSection />
|
<VideoSection />
|
||||||
<HistorySection />
|
<HistorySection />
|
||||||
{!exempt && <AdMidSectionResponsive mb="6" />}
|
{!exempt && <AdMidSectionResponsive mb="6" />}
|
||||||
|
|||||||
Reference in new issue
Block a user