fix: better layouts

This commit is contained in:
TrèsAbhi committed 2024-10-12 22:07:59 -05:00
1 parent 201f8f94a5
commit 97b9137e9a
15 files changed
+75 -75

No files matched your search

@@ -1,8 +1,9 @@
---
import { compareTool } from '../../../constants/tools';
import ToolLayout from '../../../layouts/ToolLayout.astro';
import { Page } from './_index';
---
<ToolLayout>
<ToolLayout tool={compareTool}>
<Page client:load />
</ToolLayout>
@@ -1,8 +1,9 @@
---
import { Page } from './_index';
import { performanceTool } from '../../../constants/tools';
import ToolLayout from '../../../layouts/ToolLayout.astro';
import { Page } from './_index';
---
<ToolLayout>
<ToolLayout tool={performanceTool}>
<Page client:load />
</ToolLayout>
@@ -1,8 +1,9 @@
---
import { sessionTool } from '../../../constants/tools';
import ToolLayout from '../../../layouts/ToolLayout.astro';
import { Page } from './_index';
---
<ToolLayout>
<ToolLayout tool={sessionTool}>
<Page client:load />
</ToolLayout>
@@ -2,7 +2,7 @@
import { fetchTankDefinitions, TIER_ROMAN_NUMERALS } from '@blitzkit/core';
import strings from '@blitzkit/core/lang/en-US.json';
import type { GetStaticPaths } from 'astro';
import ToolLayout from '../../../../layouts/ToolLayout.astro';
import BaseLayout from '../../../../layouts/BaseLayout.astro';
import { Page } from './_index';
export const getStaticPaths = (async () => {
@@ -29,6 +29,6 @@ const tank = tankDefinitions.tanks[id];
{strings.common.tank_class_short[tank.class]}
</title>
<ToolLayout>
<BaseLayout>
<Page id={id} client:load />
</ToolLayout>
</BaseLayout>
@@ -1,8 +1,9 @@
---
import { tankopediaTool } from '../../../constants/tools';
import ToolLayout from '../../../layouts/ToolLayout.astro';
import { Page } from './_index';
---
<ToolLayout>
<ToolLayout tool={tankopediaTool}>
<Page client:load />
</ToolLayout>