home page list

This commit is contained in:
tresabhi committed 2026-08-18 12:23:48 -05:00
1 parent 35ed716659
commit 20cc6d32a4
15 files changed
+220 -135

No files matched your search

@@ -0,0 +1,28 @@
import { GalleryList } from "../../../../components/Gallery/List";
import { GallerySearch } from "../../../../components/Gallery/Search";
import { PageWrapper } from "../../../../components/PageWrapper";
import {
LocaleProvider,
type LocaleAcceptorProps,
} from "../../../../hooks/useLocale";
import type { MaybeSkeletonComponentProps } from "../../../../types/maybeSkeletonComponentProps";
export function Page({
locale,
...props
}: LocaleAcceptorProps & MaybeSkeletonComponentProps) {
return (
<LocaleProvider locale={locale}>
<Content {...props} />
</LocaleProvider>
);
}
function Content({ skeleton }: MaybeSkeletonComponentProps) {
return (
<PageWrapper maxWidth="80rem" color="gold">
<GallerySearch skeleton={skeleton} />
<GalleryList skeleton={skeleton} />
</PageWrapper>
);
}
@@ -0,0 +1,16 @@
---
import { tools } from "../../../../constants/tools";
import ToolLayout from "../../../../layouts/ToolLayout.astro";
import type { getStaticPaths } from "../index.astro";
import { Page } from "./_index";
export { getStaticPaths } from "../index.astro";
const { locale } = Astro.props;
---
<ToolLayout {locale} tool={tools.gallery}>
<Page {locale} client:only="react">
<Page {locale} skeleton slot="fallback" />
</Page>
</ToolLayout>