feat: move tech tree section up

This commit is contained in:
TrèsAbhi committed 2024-08-25 18:48:57 -05:00
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>
); );
+2 -2
View File
@@ -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" />}