mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-12-05 07:43:49 +01:00
simplified page padding scheme
This commit is contained in:
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>
|
||||
|
||||
Reference in new issue
Block a user