mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +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 { 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[];
|
||||
|
||||
export function TechTreeSection() {
|
||||
@@ -93,13 +71,10 @@ export function TechTreeSection() {
|
||||
|
||||
return (
|
||||
<Flex
|
||||
my="6"
|
||||
direction="column"
|
||||
align="center"
|
||||
gap="0"
|
||||
style={{
|
||||
backgroundColor: 'var(--color-surface)',
|
||||
}}
|
||||
style={{ backgroundColor: 'var(--color-surface)' }}
|
||||
py="6"
|
||||
>
|
||||
<Flex direction="column" align="center">
|
||||
|
||||
@@ -8,13 +8,7 @@ export function ShotDisplaySection() {
|
||||
if (!shot) return null;
|
||||
|
||||
return (
|
||||
<Flex
|
||||
justify="center"
|
||||
display={{
|
||||
initial: 'flex',
|
||||
sm: 'none',
|
||||
}}
|
||||
>
|
||||
<Flex justify="center" display={{ initial: 'flex', sm: 'none' }}>
|
||||
<ShotDisplayCard shot={shot} />
|
||||
</Flex>
|
||||
);
|
||||
|
||||
@@ -82,14 +82,14 @@ export default function Page({ params }: { params: { id: string } }) {
|
||||
return (
|
||||
<PageWrapper p="0" noMaxWidth color="purple" size={1600} gap="9">
|
||||
<HeroSection id={id} />
|
||||
<MetaSection />
|
||||
<ShotDisplaySection />
|
||||
<MetaSection />
|
||||
{!exempt && <AdMidSectionResponsive />}
|
||||
<TechTreeSection />
|
||||
<TestingSection />
|
||||
<CharacteristicsSection />
|
||||
{!exempt && <AdMidSectionResponsive />}
|
||||
<GameModeSection />
|
||||
<TechTreeSection />
|
||||
<VideoSection />
|
||||
<HistorySection />
|
||||
{!exempt && <AdMidSectionResponsive mb="6" />}
|
||||
|
||||
Reference in new issue
Block a user