feat: avatars search bar ui

This commit is contained in:
TrèsAbhi committed 2026-01-15 14:13:34 -06:00
1 parent 6ec7a50320
commit 63ce327458
11 files changed
+79 -39

No files matched your search

@@ -1,6 +1,8 @@
import { useMemo } from "react";
import { AvatarCard } from "../../../components/AvatarCard";
import { AvatarControls } from "../../../components/AvatarControls";
import { IncrementalLoader } from "../../../components/IncrementalLoader";
import { Section } from "../../../components/Section";
import { api } from "../../../core/api/dynamic";
import { useAwait } from "../../../hooks/useAwait";
import { useGameStrings } from "../../../hooks/useGameStrings";
@@ -75,13 +77,21 @@ function Content({}: ContentProps) {
}, []);
return (
<div className="avatars">
<IncrementalLoader
initial={40}
intermediate={10}
data={ordered}
Component={AvatarCard}
/>
</div>
<>
<Section>
<AvatarControls />
</Section>
<Section>
<div className="avatars">
<IncrementalLoader
initial={40}
intermediate={10}
data={ordered}
Component={AvatarCard}
/>
</div>
</Section>
</>
);
}
@@ -1,5 +1,4 @@
---
import Section from "../../../components/Section.astro";
import ToolBanner from "../../../components/ToolBanner.astro";
import { tools } from "../../../core/tools/tools";
import BaseLayout from "../../../layouts/BaseLayout.astro";
@@ -21,9 +20,7 @@ const { locale } = Astro.props;
<BaseLayout {locale} accent="gold">
<ToolBanner {locale} tool={tools.avatars} slot="pre-app" />
<Section>
<Page {locale} client:only="react">
<Page {locale} skeleton slot="fallback" />
</Page>
</Section>
<Page {locale} client:only="react">
<Page {locale} skeleton slot="fallback" />
</Page>
</BaseLayout>
@@ -4,7 +4,7 @@ import "@radix-ui/colors/amber-dark.css";
import type { GetStaticPaths } from "astro";
import ColorScale from "../../components/ColorScale.astro";
import HomeHero from "../../components/HomeHero.astro";
import Section from "../../components/Section.astro";
import Section from "../../components/Section";
import ToolCard from "../../components/ToolCard.astro";
import { tools } from "../../core/tools/tools";
import BaseLayout from "../../layouts/BaseLayout.astro";