simplified page padding scheme

This commit is contained in:
tresabhi committed 2026-11-21 19:33:55 -06:00
1 parent baf42d0273
commit 9efcb55083
30 files changed
+129 -196

No files matched your search

@@ -20,11 +20,11 @@ export const getStaticPaths = mixStaticPaths(_getStaticPaths, async () => {
const { id, locale } = Astro.props;
---
<BaseLayout tool={tools.tanks} {locale} accent="violet">
<ColorScale color="ruby" />
<ColorScale color="cyan" />
<ColorScale color="green" />
<ColorRanks />
<ColorScale color="ruby" />
<ColorScale color="cyan" />
<ColorScale color="green" />
<ColorRanks />
<BaseLayout tool={tools.tanks} {locale} accent="violet">
<Page {id} {locale} client:load />
</BaseLayout>
@@ -1,17 +1,7 @@
import { TankSearch } from "../../../../components/TankSearch";
import {
LocaleProvider,
type LocaleAcceptorProps,
} from "../../../../hooks/useLocale";
import { withLocale } from "../../../../hocs/withLocale";
import type { MaybeSkeletonComponentProps } from "../../../../types/maybeSkeletonComponentProps";
export function Page({
locale,
skeleton,
}: LocaleAcceptorProps & MaybeSkeletonComponentProps) {
return (
<LocaleProvider locale={locale}>
<TankSearch skeleton={skeleton} />
</LocaleProvider>
);
}
export const Page = withLocale<MaybeSkeletonComponentProps>(({ skeleton }) => (
<TankSearch skeleton={skeleton} />
));
@@ -11,15 +11,15 @@ export { getStaticPaths } from "../index.astro";
const { locale } = Astro.props;
---
<BaseLayout tool={tools.tanks} {locale} accent="purple">
<ColorScale color="blue" />
<ColorScale color="amber" />
<ColorScale color="red" />
<ColorScale color="blue" />
<ColorScale color="amber" />
<ColorScale color="red" />
<BaseLayout tool={tools.tanks} {locale} accent="purple">
<ToolBanner {locale} tool={tools.tanks} />
<!-- TODO: eliminate all client:only's -->
<Section>
<!-- TODO: eliminate all client:only's -->
<Page {locale} client:only="react">
<Page {locale} skeleton slot="fallback" />
</Page>